private void OpenStaffDetailWindow(string mode, string title) { var win = GetSelectedStaff(); if (win == null && mode != FormModes.New) { Message(MessageTypes.Error, "Please Select to "+mode+ " Staff Detail"); return; } if (mode == FormModes.New) win = new UsersDetail(); var view = new ucStaffDetailView(mode, win.UserID); view.ParentContainer = this; OpenPopUp(view, title, 650,550); }
private void OpenStaffDetailWindow(string mode, string title) { var win = GetSelectedStaff(); if (win == null && mode != FormModes.New) { Message(MessageTypes.Error, "Please Select to " + mode + " Staff Detail"); return; } if (mode == FormModes.New) { win = new UsersDetail(); } var view = new ucStaffDetailView(mode, win.UserID); view.ParentContainer = this; OpenPopUp(view, title, 650, 550); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.StaffDetailUserControl = ((ES.UI.Setups.ucStaffDetailView)(target)); return; case 2: this.tabStaffPersionInfo = ((Telerik.Windows.Controls.RadTabItem)(target)); return; case 3: this.tabStaffEducationalInfo = ((Telerik.Windows.Controls.RadTabItem)(target)); return; case 4: this.btnAddNewEducation = ((Telerik.Windows.Controls.RadButton)(target)); #line 150 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnAddNewEducation.Click += new System.Windows.RoutedEventHandler(this.btnAddNewEducation_Click); #line default #line hidden return; case 5: this.gvEducationListView = ((Telerik.Windows.Controls.RadGridView)(target)); return; case 6: this.colEduInstitution = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 7: this.colEduDescription = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 8: this.colEduPassingYear = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 9: this.colEduScore = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 10: this.btnRowEduEdit = ((Telerik.Windows.Controls.RadMenuItem)(target)); #line 168 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnRowEduEdit.Click += new Telerik.Windows.RadRoutedEventHandler(this.btnRowEduEdit_Click); #line default #line hidden return; case 11: this.btnRowEduDelete = ((Telerik.Windows.Controls.RadMenuItem)(target)); #line 169 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnRowEduDelete.Click += new Telerik.Windows.RadRoutedEventHandler(this.btnRowEduDelete_Click); #line default #line hidden return; case 12: this.tabStaffExperienceInfo = ((Telerik.Windows.Controls.RadTabItem)(target)); return; case 13: this.btnAddNewExperience = ((Telerik.Windows.Controls.RadButton)(target)); #line 188 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnAddNewExperience.Click += new System.Windows.RoutedEventHandler(this.btnAddNewExperience_Click); #line default #line hidden return; case 14: this.gvStaffExpListView = ((Telerik.Windows.Controls.RadGridView)(target)); return; case 15: this.colExpIntitution = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 16: this.colExpDescription = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 17: this.colExpStartDate = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 18: this.colExpEndDate = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 19: this.colEXpTotalExperience = ((Telerik.Windows.Controls.GridViewDataColumn)(target)); return; case 20: this.btnRowExpEdit = ((Telerik.Windows.Controls.RadMenuItem)(target)); #line 211 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnRowExpEdit.Click += new Telerik.Windows.RadRoutedEventHandler(this.btnRowExpEdit_Click); #line default #line hidden return; case 21: this.btnRowExpDelete = ((Telerik.Windows.Controls.RadMenuItem)(target)); #line 212 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnRowExpDelete.Click += new Telerik.Windows.RadRoutedEventHandler(this.btnRowExpDelete_Click); #line default #line hidden return; case 22: this.btnStaffSave = ((Telerik.Windows.Controls.RadButton)(target)); #line 270 "..\..\..\..\Setups\ucStaffDetailView.xaml" this.btnStaffSave.Click += new System.Windows.RoutedEventHandler(this.btnStaffSave_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.StaffDetailUserControl = ((ES.UI.Setups.ucStaffDetailView)(target)); return; case 2: this.tabControl = ((Wpf.Controls.TabControl)(target)); return; case 3: this.btnAddNewEducation = ((System.Windows.Controls.Button)(target)); #line 191 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" this.btnAddNewEducation.Click += new System.Windows.RoutedEventHandler(this.btnAddNewEducation_Click); #line default #line hidden return; case 4: this.gvEducationListView = ((ExtendedGrid.ExtendedGridControl.ExtendedDataGrid)(target)); return; case 5: #line 215 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnRowEduEdit_Click); #line default #line hidden return; case 6: #line 216 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnRowEduDelete_Click); #line default #line hidden return; case 7: this.btnAddNewExperience = ((System.Windows.Controls.Button)(target)); #line 234 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" this.btnAddNewExperience.Click += new System.Windows.RoutedEventHandler(this.btnAddNewExperience_Click); #line default #line hidden return; case 8: this.gvStaffExpListView = ((ExtendedGrid.ExtendedGridControl.ExtendedDataGrid)(target)); return; case 9: #line 256 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnRowExpEdit_Click); #line default #line hidden return; case 10: #line 257 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnRowExpDelete_Click); #line default #line hidden return; case 11: this.btnStaffSave = ((System.Windows.Controls.Button)(target)); #line 325 "..\..\..\..\..\Setups\Staff\ucStaffDetailView.xaml" this.btnStaffSave.Click += new System.Windows.RoutedEventHandler(this.btnStaffSave_Click); #line default #line hidden return; } this._contentLoaded = true; }