public MainWindow() { InitializeComponent(); Style = (Style)FindResource(typeof(ModernWindow)); links = this.MenuLinkGroups[0].Links; instance = this; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainWindowInst = ((MochaEditor.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.MainWindowInst.Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.MainWindowInst.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.MainWindowInst.Initialized += new System.EventHandler(this.Window_Initialized); #line default #line hidden #line 9 "..\..\MainWindow.xaml" this.MainWindowInst.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.ModernWindow_KeyDown_1); #line default #line hidden return; case 2: this.MochaLinkGroup = ((FirstFloor.ModernUI.Presentation.LinkGroup)(target)); return; } this._contentLoaded = true; }