public MainWindowNew() { InitializeComponent(); notifier = new NotifierIcon(this); this.AllowDrop = true; this.Drop += new System.Windows.DragEventHandler(MainWindowNew_Drop); VersionLabel.Content = Strings.GetLabelString("MASGAUAboutVersion",Core.ProgramVersion.ToString()); if(Core.Ready) this.DataContext = Core.settings; TranslationHelpers.translateWindow(this); if (SynchronizationContext.Current == null) SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(this.Dispatcher)); _context = SynchronizationContext.Current; CommunicationHandler.addReceiver(this); WPFCommunicationHelpers.default_progress_color = progress.Foreground; // Insert code required on object creation below this point. appMenu.SmallImageSource = this.Icon; this.Loaded += new System.Windows.RoutedEventHandler(WindowLoaded); this.Closing += new CancelEventHandler(Window_Closing); AllUsersModeButton.ToolTip = Strings.GetToolTipString("AllUserModeButton"); SingleUserModeButton.ToolTip = Strings.GetToolTipString("SingleUserModeButton"); masgau = new MainProgramHandler(new Location.LocationsHandler()); setupJumpList(); }
public MainWindowNew() { InitializeComponent(); gamesLst.TemplateItem = new GameListViewItem(); ArchiveList.TemplateItem = new ArchiveListViewItem(); notifier = new NotifierIcon(this); this.AllowDrop = true; this.Drop += new System.Windows.DragEventHandler(MainWindowNew_Drop); VersionLabel.Content = Strings.GetLabelString("MASGAUAboutVersion", Core.ProgramVersion.ToString()); if (Core.Ready) { this.DataContext = Core.settings; } TranslationHelpers.translateWindow(this); //if (SynchronizationContext.Current == null) // SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext(this.Dispatcher)); //_context = SynchronizationContext.Current; //CommunicationHandler.addReceiver(this); WPFCommunicationHelpers.default_progress_color = progress.Foreground; // Insert code required on object creation below this point. appMenu.SmallImageSource = this.Icon; this.Loaded += new System.Windows.RoutedEventHandler(WindowLoaded); this.Closing += new CancelEventHandler(Window_Closing); AllUsersModeButton.ToolTip = Strings.GetToolTipString("AllUserModeButton"); SingleUserModeButton.ToolTip = Strings.GetToolTipString("SingleUserModeButton"); masgau = new MainProgramHandler(new Location.LocationsHandler()); setupJumpList(); }