public MainForm() { InitializeComponent(); Log(1, this, () => $"{ApplName} {AssemblyVersion} on Windows {OSVersion}"); _systemMenu = new SystemMenu(this); _systemMenu.AddCommand(R.SysMenuItemAbout, onSysMenuAbout, true); _systemMenu.AddCommand(R.SysMenuItemSettings, onSysMenuBasicSettings, false); _systemMenu.AddCommand($"{R.SysMenuItemHelp}\tF1", onSysMenuHelp, false); _progress = new ProgressProcessor(progressBarPart, progressBarTrack, lblProgress); _pgaNaming = new PGANaming(Settings) { RefreshDelegate = propGridNaming.Refresh }; _converter = new AaxAudioConverter(Settings, Resources.Default); initRadionButtons(); _lvwColumnSorter = new ListViewColumnSorter { SortModifier = ListViewColumnSorter.ESortModifiers.SortByTagOrText }; listViewAaxFiles.ListViewItemSorter = _lvwColumnSorter; listViewAaxFiles.Sorting = SortOrder.Ascending; _interactionHandler = new InteractionCallbackHandler <EInteractionCustomCallback> (this, customInteractionHandler); }
public MainForm() { using (new ResourceGuard(x => _resizeFlag = x)) InitializeComponent(); Log(1, this, () => $"{ApplName} {AssemblyVersion} as {(Is64BitProcess ? "64" : "32")}bit process on Windows {OSVersion} {(Is64BitOperatingSystem ? "64" : "32")}bit"); _systemMenu = new SystemMenu(this); _systemMenu.AddCommand(R.SysMenuItemAbout, onSysMenuAbout, true); _systemMenu.AddCommand(R.SysMenuItemSettings, onSysMenuBasicSettings, false); _systemMenu.AddCommand($"{R.SysMenuItemHelp}\tF1", onSysMenuHelp, false); _progress = new ProgressProcessor(progressBarPart, progressBarTrack, lblProgress); _pgaNaming = new PGANaming(Settings) { RefreshDelegate = propGridNaming.Refresh, IsInSplitChapterMode = () => Settings.ConvMode == EConvMode.splitChapters }; presetListView(); Settings.FixNarrator(); _converter = new AaxAudioConverter(Settings, Resources.Default); initRadionButtons(); _lvwColumnSorter = new ListViewColumnSorter { SortModifier = ListViewColumnSorter.ESortModifiers.SortByTagOrText }; listViewAaxFiles.ListViewItemSorter = _lvwColumnSorter; listViewAaxFiles.Sorting = SortOrder.Ascending; _lvwColumnSorter.Order = SortOrder.Ascending; _interactionHandler = new InteractionCallbackHandler <EInteractionCustomCallback> (this, customInteractionHandler); _perfHandler = new PerformanceHandler(vprogbarNumProc, vprogbarCpu, toolTip1); _perfProgress = new Progress <IPerfCallback> (_perfHandler.Update); _perfMonitor = new PerformanceMonitor { Callback = _perfProgress.Report }; _resizeTimer.Tick += resizeTimer_Tick; _resizeTimer.Interval = 100; }