void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.FRCS = ((ProcessDesigner.frmFRCS)(target)); #line 16 "..\..\frmFRCS.xaml" this.FRCS.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.AddNewButton = ((System.Windows.Controls.Button)(target)); return; case 3: this.EditButton = ((System.Windows.Controls.Button)(target)); return; case 4: this.SaveButton = ((System.Windows.Controls.Button)(target)); return; case 5: this.PrintButton = ((System.Windows.Controls.Button)(target)); return; case 6: this.RefreshButton = ((System.Windows.Controls.Button)(target)); return; case 7: this.SearchButton = ((System.Windows.Controls.Button)(target)); return; case 8: this.CopyButton = ((System.Windows.Controls.Button)(target)); return; case 9: this.StandardNoteButton = ((System.Windows.Controls.Button)(target)); return; case 10: this.CloseButton = ((System.Windows.Controls.Button)(target)); return; case 11: this.dtpDateRecd = ((ProcessDesigner.UserControls.DatePickerCus)(target)); return; case 12: this.lblZone = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.ltbZone = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 14: this.lblDateRecd = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.lblCIReference = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.lblCustomer = ((System.Windows.Controls.TextBlock)(target)); return; case 17: this.lblPlant = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.lblRemarks = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.ltbCIReference = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 20: this.ltbCustomer = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 21: this.ltbLocation = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 22: this.chkFeasible = ((System.Windows.Controls.CheckBox)(target)); return; case 23: this.txtRemarks = ((System.Windows.Controls.TextBox)(target)); return; case 24: this.lblProductDescription = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.lblCustomerPartNo = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.lblDwgIssueNo = ((System.Windows.Controls.TextBlock)(target)); return; case 27: this.lblDate = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.lblCheeseWt = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.lblFinishWt = ((System.Windows.Controls.TextBlock)(target)); return; case 30: this.txtProdDesc = ((System.Windows.Controls.TextBox)(target)); return; case 31: this.txtCustDwgNo = ((System.Windows.Controls.TextBox)(target)); return; case 32: this.txtCustDwgIssueNo = ((System.Windows.Controls.TextBox)(target)); return; case 33: this.txtFRCSDate = ((ProcessDesigner.UserControls.DatePickerCus)(target)); return; case 34: this.txtCheeseWt = ((ProcessDesigner.UserControls.DecimalTextBox)(target)); return; case 35: this.btnBrowseCheeseWeightCalculation = ((System.Windows.Controls.Button)(target)); return; case 36: this.txtFinishWt = ((ProcessDesigner.UserControls.DecimalTextBox)(target)); return; case 37: this.btnBrowseFinishWeightCalculation = ((System.Windows.Controls.Button)(target)); return; case 38: this.lblCustomerDwgOrStdNo = ((System.Windows.Controls.TextBlock)(target)); return; case 39: this.lblDwgDate = ((System.Windows.Controls.TextBlock)(target)); return; case 40: this.lblOff = ((System.Windows.Controls.TextBlock)(target)); return; case 41: this.lblSFLShare = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.lblPotential = ((System.Windows.Controls.TextBlock)(target)); return; case 43: this.lblPreparedBy = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.txtCustStdNo = ((System.Windows.Controls.TextBox)(target)); return; case 45: this.txtCustDwgDate = ((ProcessDesigner.UserControls.DatePickerCus)(target)); return; case 46: this.txtOff = ((ProcessDesigner.UserControls.DecimalTextBox)(target)); return; case 47: this.txtSflShare = ((ProcessDesigner.UserControls.DecimalTextBox)(target)); return; case 48: this.txtPotential = ((ProcessDesigner.UserControls.DecimalTextBox)(target)); return; case 49: this.ltbResponsible = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 50: this.ssStandardNotes = ((Microsoft.Windows.Controls.DataGrid)(target)); return; case 51: this.StandatedNotesSaveButton = ((System.Windows.Controls.Button)(target)); return; case 52: this.StandatedNotesIncludeButton = ((System.Windows.Controls.Button)(target)); return; case 53: this.StandatedNotesCloseButton = ((System.Windows.Controls.Button)(target)); return; case 54: this.fraRejectReason = ((System.Windows.Controls.GroupBox)(target)); return; case 55: this.txtRejectReason = ((System.Windows.Controls.TextBox)(target)); return; case 56: this.fraCostNotes = ((System.Windows.Controls.GroupBox)(target)); return; case 57: this.txtCostNotes = ((System.Windows.Controls.TextBox)(target)); return; case 58: this.ssCostDetails = ((Microsoft.Windows.Controls.DataGrid)(target)); #line 552 "..\..\frmFRCS.xaml" this.ssCostDetails.KeyDown += new System.Windows.Input.KeyEventHandler(this.ssCostDetails_KeyDown); #line default #line hidden #line 552 "..\..\frmFRCS.xaml" this.ssCostDetails.KeyUp += new System.Windows.Input.KeyEventHandler(this.ssCostDetails_KeyUp); #line default #line hidden #line 552 "..\..\frmFRCS.xaml" this.ssCostDetails.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.ssCostDetails_PreviewKeyDown); #line default #line hidden return; case 59: this.lblRM = ((System.Windows.Controls.TextBlock)(target)); return; case 60: this.lblFinish = ((System.Windows.Controls.TextBlock)(target)); return; case 61: this.ltbRawMaterial = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 62: this.ltbFinish = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 63: this.lblTopCoat = ((System.Windows.Controls.TextBlock)(target)); return; case 64: this.ltbCoating = ((ProcessDesigner.UserControls.ComboBoxCus)(target)); return; case 65: this.lblRMCostCaption = ((System.Windows.Controls.TextBlock)(target)); return; case 66: this.lblNotes = ((System.Windows.Controls.TextBlock)(target)); return; case 67: this.lblRmCost = ((System.Windows.Controls.TextBlock)(target)); return; case 68: this.txtNotes = ((System.Windows.Controls.TextBox)(target)); return; case 69: this.lblCostfor100Pcs = ((System.Windows.Controls.TextBlock)(target)); return; case 70: this.txtStartingNo = ((System.Windows.Controls.TextBox)(target)); return; case 71: this.lblPcs = ((System.Windows.Controls.TextBlock)(target)); return; case 72: this.lblCost = ((System.Windows.Controls.TextBlock)(target)); return; case 73: this.lblRealisation = ((System.Windows.Controls.TextBlock)(target)); return; case 74: this.txtRealisation = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
public void ModifyUsers(DataRowView selecteditem) { try { //if (selecteditem != null && calledfromparentform.IsNotNullOrEmpty() && calledfromparentform == "MainWindow") //{ // Window win = new Window(); // IconBitmapDecoder ibd = new IconBitmapDecoder(new Uri(@"pack://application:,,/Images/logo.ico", UriKind.RelativeOrAbsolute), BitmapCreateOptions.None, BitmapCacheOption.Default); // win.Title = ApplicationTitle + " - " + "Cost Sheet Preparation"; // win.Icon = ibd.Frames[0]; // win.ResizeMode = ResizeMode.NoResize; // CI_INFO_PK = selecteditem["CI_INFO_PK"].ToValueAsString().ToIntValue(); // System.Windows.Controls.UserControl userControl = new ProcessDesigner.frmFRCS(_userInformation, win, CI_INFO_PK, OperationMode.Edit); // win.Content = userControl; // win.Height = userControl.Height + 50; // win.Width = userControl.Width + 10; // win.ShowInTaskbar = false; // win.WindowStartupLocation = WindowStartupLocation.CenterScreen; // win.ShowDialog(); //} //else if (selecteditem != null && calledfromparentform.IsNotNullOrEmpty() && calledfromparentform == "frmFRCS") //{ // CI_INFO_PK = selecteditem["CI_INFO_PK"].ToValueAsString().ToIntValue(); // CloseAction(); //} if (selecteditem == null) { return; } MdiChild mdiCostSheet = new MdiChild(); if (MainMDI.IsFormAlreadyOpen("Cost Sheet Preparation") == true) { mdiCostSheet = (MdiChild)MainMDI.GetFormAlreadyOpened("Cost Sheet Preparation"); mdiCostSheet.Close(); } CI_INFO_PK = selecteditem["CI_INFO_PK"].ToValueAsString().ToIntValue(); ProcessDesigner.frmFRCS userControl = new ProcessDesigner.frmFRCS(_userInformation, mdiCostSheet, CI_INFO_PK, OperationMode.Edit); //frmCostSheetSearch frmCostSheetSearch = new frmCostSheetSearch(_userInformation, mdiCostSheetSearch, ActiveEntity.IDPK, OperationMode.View, "frmFRCS"); mdiCostSheet.Title = ApplicationTitle + " - Cost Sheet Preparation"; mdiCostSheet.Content = userControl; mdiCostSheet.Height = userControl.Height + 40; mdiCostSheet.Width = userControl.Width + 20; mdiCostSheet.MinimizeBox = true; mdiCostSheet.MaximizeBox = true; mdiCostSheet.Resizable = false; MainMDI.Container.Children.Add(mdiCostSheet); //} //else //{ // mdiCostSheet = (MdiChild)MainMDI.GetFormAlreadyOpened("Cost Sheet Preparation"); // //toolschedule = (frmToolSchedule_new)mdiCostSheetSearch.Content; // MainMDI.SetMDI(mdiCostSheet); //} } catch (Exception ex) { throw ex.LogException(); } }