private DockItem LoadDockItem(object obj) { if (Textbox1.GetType().ToString().Equals(obj)) { return(Textbox1); } else if (FileExplorer.GetType().ToString().Equals(obj)) { return(FileExplorer); } else if (Jishu.GetType().ToString().Equals(obj)) { return(Jishu); } else if (Xitong.GetType().ToString().Equals(obj)) { return(Xitong); } else { return(obj as DockItem); } }
private void BtnSecManager_Click(object sender, RoutedEventArgs e) { Xitong.Activate(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\MainWindow.xaml" ((WpfApp2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.RibbonWindow_Closing); #line default #line hidden #line 11 "..\..\MainWindow.xaml" ((WpfApp2.MainWindow)(target)).Activated += new System.EventHandler(this.RibbonWindow_Activated); #line default #line hidden return; case 2: this.ribbon = ((Fluent.Ribbon)(target)); return; case 3: this.BtnQueryUser = ((Fluent.Button)(target)); #line 36 "..\..\MainWindow.xaml" this.BtnQueryUser.Click += new System.Windows.RoutedEventHandler(this.BtnQueryUser_Click); #line default #line hidden return; case 4: this.BtnAddUser = ((Fluent.Button)(target)); #line 37 "..\..\MainWindow.xaml" this.BtnAddUser.Click += new System.Windows.RoutedEventHandler(this.BtnAddUser_Click); #line default #line hidden return; case 5: this.BtnModifyUser = ((Fluent.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.BtnModifyUser.Click += new System.Windows.RoutedEventHandler(this.BtnModifyUser_Click); #line default #line hidden return; case 6: this.SAVE = ((Fluent.Button)(target)); #line 44 "..\..\MainWindow.xaml" this.SAVE.Click += new System.Windows.RoutedEventHandler(this.SAVE_Click); #line default #line hidden return; case 7: this.READ = ((Fluent.Button)(target)); #line 45 "..\..\MainWindow.xaml" this.READ.Click += new System.Windows.RoutedEventHandler(this.READ_Click); #line default #line hidden return; case 8: this.DEFAULT = ((Fluent.Button)(target)); #line 46 "..\..\MainWindow.xaml" this.DEFAULT.Click += new System.Windows.RoutedEventHandler(this.DEFAULT_Click); #line default #line hidden return; case 9: this.BtnQueryDept = ((Fluent.Button)(target)); #line 52 "..\..\MainWindow.xaml" this.BtnQueryDept.Click += new System.Windows.RoutedEventHandler(this.BtnQueryDept_Click); #line default #line hidden return; case 10: this.BtnAddDept = ((Fluent.Button)(target)); #line 53 "..\..\MainWindow.xaml" this.BtnAddDept.Click += new System.Windows.RoutedEventHandler(this.BtnAddDept_Click); #line default #line hidden return; case 11: this.BtnModifyDept = ((Fluent.Button)(target)); #line 54 "..\..\MainWindow.xaml" this.BtnModifyDept.Click += new System.Windows.RoutedEventHandler(this.BtnModifyDept_Click); #line default #line hidden return; case 12: this.BtnSecManager = ((Fluent.Button)(target)); #line 60 "..\..\MainWindow.xaml" this.BtnSecManager.Click += new System.Windows.RoutedEventHandler(this.BtnSecManager_Click); #line default #line hidden return; case 13: this.BtnModifyPassword = ((Fluent.Button)(target)); #line 61 "..\..\MainWindow.xaml" this.BtnModifyPassword.Click += new System.Windows.RoutedEventHandler(this.BtnModifyPassword_Click); #line default #line hidden return; case 14: this.c1 = ((DevZest.Windows.Docking.DockControl)(target)); #line 80 "..\..\MainWindow.xaml" this.c1.Loaded += new System.Windows.RoutedEventHandler(this.c1_Loaded); #line default #line hidden return; case 15: this.Jishu = ((WpfApp2.Jishu)(target)); return; case 16: this.Textbox1 = ((WpfApp2.Textbox1)(target)); return; case 17: this.FileExplorer = ((WpfApp2.FileExplorer)(target)); return; case 18: this.Xitong = ((WpfApp2.Xitong)(target)); return; } this._contentLoaded = true; }