@@ -215,7 +215,7 @@ private async void AnalogyMainForm_Load(object sender, EventArgs e)
215
215
foreach ( FactoryContainer fc in FactoriesManager . Instance . Factories
216
216
. Where ( factory => ! FactoriesManager . Instance . IsBuiltInFactory ( factory . Factory ) &&
217
217
factory . FactorySetting . Status != DataProviderFactoryStatus . Disabled
218
- && ( factory . DataProvidersFactories . Any ( d=> d . DataProviders . Any ( )
218
+ && ( factory . DataProvidersFactories . Any ( d => d . DataProviders . Any ( )
219
219
|| factory . UserControlsFactories . Any ( ) ) ) ) )
220
220
{
221
221
CreateDataSource ( fc , 3 ) ;
@@ -273,7 +273,7 @@ private async void AnalogyMainForm_Load(object sender, EventArgs e)
273
273
}
274
274
if ( settings . ShowWhatIsNewAtStartup )
275
275
{
276
- //settings.ShowWhatIsNewAtStartup = false;
276
+ //settings.ShowWhatIsNewAtStartup = false;
277
277
}
278
278
}
279
279
@@ -331,7 +331,7 @@ private void PopulateGlobalTools()
331
331
var allFactories = FactoriesManager . Instance . Factories . ToList ( ) ;
332
332
allFactories . AddRange ( FactoriesManager . Instance . BuiltInFactories ) ;
333
333
foreach ( FactoryContainer fc in allFactories
334
- . Where ( factory => factory . FactorySetting . Status != DataProviderFactoryStatus . Disabled
334
+ . Where ( factory => factory . FactorySetting . Status != DataProviderFactoryStatus . Disabled
335
335
&& factory . CustomActionsFactories . Any ( ) ) )
336
336
{
337
337
var actionFactories = fc . CustomActionsFactories ;
@@ -419,15 +419,15 @@ private void SetupEventHandlers()
419
419
{
420
420
Utils . OpenLink ( "https://www.binance.com/en/register?ref=V8P114PE" ) ;
421
421
} ;
422
- dockManager1 . ClosingPanel += ( s , e ) =>
422
+ dockManager1 . ClosingPanel += ( s , e ) =>
423
423
{
424
- Control control = e . Panel . ActiveControl ;
425
- if ( control != null )
426
- {
427
- control . Dispose ( ) ;
428
- }
429
- var workspace = Utils . GetLogWindows < IAnalogyWorkspace > ( this ) ;
430
- workspace ? . SaveCurrentWorkspace ( ) ;
424
+ Control control = e . Panel . ActiveControl ;
425
+ if ( control != null )
426
+ {
427
+ control . Dispose ( ) ;
428
+ }
429
+ var workspace = Utils . GetLogWindows < IAnalogyWorkspace > ( this ) ;
430
+ workspace ? . SaveCurrentWorkspace ( ) ;
431
431
} ;
432
432
bbtnSponsorOpenCollection . ItemClick +=
433
433
( s , e ) => Utils . OpenLink ( "https://opencollective.com/analogy-log-viewer" ) ;
@@ -566,9 +566,9 @@ private void SetupEventHandlers()
566
566
Show ( ) ;
567
567
}
568
568
} ;
569
-
569
+
570
570
bbiBookmarks . ItemClick += ( s , e ) => OpenBookmarkLog ( ) ;
571
-
571
+
572
572
}
573
573
574
574
private async Task OpenOfflineLogs ( RibbonPage ribbonPage , string [ ] filenames ,
@@ -577,7 +577,7 @@ private async Task OpenOfflineLogs(RibbonPage ribbonPage, string[] filenames,
577
577
{
578
578
OpenedWindows ++ ;
579
579
await FactoriesManager . Instance . InitializeIfNeeded ( dataProvider ) ;
580
- string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } { ( title == null ? "" : $ " ({ title } )") } ";
580
+ string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } { ( title == null ? "" : $ " ({ title } )") } ";
581
581
UserControl offlineUC = new LocalLogFilesUC ( dataProvider , filenames , title : fullTitle ) ;
582
582
var page = dockManager1 . AddPanel ( DockingStyle . Float ) ;
583
583
page . DockedAsTabbedDocument = true ;
@@ -1460,7 +1460,7 @@ async Task OpenOffline(string titleOfDataSource, IAnalogyOfflineDataProvider dat
1460
1460
{
1461
1461
OpenedWindows ++ ;
1462
1462
await FactoriesManager . Instance . InitializeIfNeeded ( dataProvider ) ;
1463
- string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } ({ titleOfDataSource } )";
1463
+ string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } ({ titleOfDataSource } )";
1464
1464
UserControl offlineUC = new LocalLogFilesUC ( dataProvider , files , initialFolder , title : fullTitle ) ;
1465
1465
var page = dockManager1 . AddPanel ( DockingStyle . Float ) ;
1466
1466
page . DockedAsTabbedDocument = true ;
@@ -1486,7 +1486,7 @@ async Task OpenExternalDataSource(string titleOfDataSource, IAnalogyOfflineDataP
1486
1486
}
1487
1487
1488
1488
async Task OpenFilePooling ( string titleOfDataSource , IAnalogyOfflineDataProvider dataProvider ,
1489
- string initialFolder , string file , string initialFile )
1489
+ string initialFolder , string file , string initialFile )
1490
1490
{
1491
1491
1492
1492
OpenedWindows ++ ;
@@ -1591,8 +1591,8 @@ void OnXtcLogsOnControlRemoved(object sender, DockPanelEventArgs arg)
1591
1591
{
1592
1592
//add Open files entry
1593
1593
BarSubItem openFiles = new BarSubItem ( ) ;
1594
- openFiles . Caption = "Open Files " ;
1595
- group . ItemLinks . Add ( openFiles ) ;
1594
+ openFiles . Caption = "Open File " ;
1595
+ group . ItemLinks . Insert ( 0 , openFiles ) ;
1596
1596
openFiles . ImageOptions . Image = Resources . Article_16x16 ;
1597
1597
openFiles . ImageOptions . LargeImage = Resources . Article_32x32 ;
1598
1598
openFiles . RibbonStyle = RibbonItemStyles . All ;
@@ -1684,7 +1684,7 @@ await OpenOffline(dataProvider.OptionalTitle, dataProvider,
1684
1684
filePoolingBtn . Caption = caption ;
1685
1685
filePoolingBtn . SuperTip =
1686
1686
Utils . GetSuperTip ( caption , "Monitor file for changes in real time and reload the file automatically" ) ;
1687
- group . ItemLinks . Add ( filePoolingBtn ) ;
1687
+ group . ItemLinks . Insert ( 1 , filePoolingBtn ) ;
1688
1688
filePoolingBtn . ImageOptions . Image = images ? . GetSmallFilePoolingImage ( factoryId ) ?? Resources . FilePooling_16x16 ;
1689
1689
filePoolingBtn . ImageOptions . LargeImage = images ? . GetLargeFilePoolingImage ( factoryId ) ?? Resources . FilePooling_32x32 ;
1690
1690
filePoolingBtn . RibbonStyle = RibbonItemStyles . All ;
@@ -1718,7 +1718,7 @@ await OpenFilePooling(dataProvider.OptionalTitle, dataProvider,
1718
1718
1719
1719
1720
1720
//add recent
1721
- group . ItemLinks . Add ( recentBar ) ;
1721
+ group . ItemLinks . Insert ( 2 , recentBar ) ;
1722
1722
foreach ( var dataProvider in offlineProviders )
1723
1723
{
1724
1724
var recents = settings . GetRecentFiles ( dataProvider . Id )
@@ -1824,7 +1824,7 @@ async Task OpenOffline(string titleOfDataSource, string initialFolder, string[]
1824
1824
{
1825
1825
OpenedWindows ++ ;
1826
1826
await FactoriesManager . Instance . InitializeIfNeeded ( offlineAnalogy ) ;
1827
- string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } ({ titleOfDataSource } )";
1827
+ string fullTitle = $ "{ offlineTitle } #{ OpenedWindows } ({ titleOfDataSource } )";
1828
1828
UserControl offlineUC = new LocalLogFilesUC ( offlineAnalogy , files , initialFolder , title : fullTitle ) ;
1829
1829
var page = dockManager1 . AddPanel ( DockingStyle . Float ) ;
1830
1830
page . DockedAsTabbedDocument = true ;
@@ -1851,11 +1851,11 @@ async Task OpenExternalDataSource(string titleOfDataSource, IAnalogyOfflineDataP
1851
1851
1852
1852
}
1853
1853
1854
- void OpenFilePooling ( string titleOfDataSource , string initialFolder , string file , string initialFile )
1854
+ void OpenFilePooling ( string titleOfDataSource , string initialFolder , string file , string initialFile )
1855
1855
{
1856
1856
1857
1857
OpenedWindows ++ ;
1858
- string fullTitle = $ "{ filePoolingTitle } #{ filePooling ++ } ({ titleOfDataSource } )";
1858
+ string fullTitle = $ "{ filePoolingTitle } #{ filePooling ++ } ({ titleOfDataSource } )";
1859
1859
UserControl filepoolingUC = new FilePoolingUCLogs ( offlineAnalogy , file , initialFile , initialFolder , title : fullTitle ) ;
1860
1860
var page = dockManager1 . AddPanel ( DockingStyle . Float ) ;
1861
1861
page . DockedAsTabbedDocument = true ;
@@ -1963,8 +1963,8 @@ void OnXtcLogsOnControlRemoved(object sender, DockPanelEventArgs arg)
1963
1963
{
1964
1964
//add Open files entry
1965
1965
BarButtonItem openFiles = new BarButtonItem ( ) ;
1966
- openFiles . Caption = "Open Files " ;
1967
- group . ItemLinks . Add ( openFiles ) ;
1966
+ openFiles . Caption = "Open File " ;
1967
+ group . ItemLinks . Insert ( 0 , openFiles ) ;
1968
1968
openFiles . ImageOptions . Image = offlineAnalogy . SmallImage ?? Resources . Article_16x16 ;
1969
1969
openFiles . ImageOptions . LargeImage = offlineAnalogy . LargeImage ?? Resources . Article_32x32 ;
1970
1970
openFiles . RibbonStyle = RibbonItemStyles . All ;
@@ -1990,7 +1990,7 @@ void OnXtcLogsOnControlRemoved(object sender, DockPanelEventArgs arg)
1990
1990
filePoolingBtn . Caption = caption ;
1991
1991
filePoolingBtn . SuperTip =
1992
1992
Utils . GetSuperTip ( caption , "Monitor file for changes in real time and reload the file automatically" ) ;
1993
- group . ItemLinks . Add ( filePoolingBtn ) ;
1993
+ group . ItemLinks . Insert ( 1 , filePoolingBtn ) ;
1994
1994
filePoolingBtn . ImageOptions . Image = images ? . GetSmallFilePoolingImage ( factoryId ) ?? Resources . FilePooling_16x16 ;
1995
1995
filePoolingBtn . ImageOptions . LargeImage = images ? . GetLargeFilePoolingImage ( factoryId ) ?? Resources . FilePooling_32x32 ;
1996
1996
filePoolingBtn . RibbonStyle = RibbonItemStyles . All ;
@@ -2024,7 +2024,7 @@ void OnXtcLogsOnControlRemoved(object sender, DockPanelEventArgs arg)
2024
2024
}
2025
2025
2026
2026
//add recent
2027
- group . ItemLinks . Add ( recentBar ) ;
2027
+ group . ItemLinks . Insert ( 2 , recentBar ) ;
2028
2028
var recents = settings . GetRecentFiles ( offlineAnalogy . Id )
2029
2029
. Select ( itm => itm . FileName ) . ToList ( ) ;
2030
2030
AddRecentFiles ( ribbonPage , recentBar , offlineAnalogy , title , recents ) ;
0 commit comments