public frmTherm(FIA_Biosum_Manager.frmDialog p_frmDialog, string p_strClient) { InitializeComponent(); m_frmDialog = p_frmDialog; this.m_strClient = p_strClient; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); }
public TemplateOkCancelButtons(FIA_Biosum_Manager.frmDialog p_frmDialog, System.Windows.Forms.GroupBox p_grpbox) { this.btnOK = new Button(); this.btnCancel = new Button(); // // btnCancel // this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(88, 48); this.btnCancel.Text = "Cancel"; this.btnCancel.Click += new System.EventHandler(p_frmDialog.btnCancel_Click); // // btnOK // this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(88, 48); this.btnOK.Text = "OK"; this.btnOK.Click += new System.EventHandler(p_frmDialog.btnOK_Click); p_grpbox.Controls.Add(this.btnOK); p_grpbox.Controls.Add(this.btnCancel); }
private void BtnTreeSpeciesGroups_Click(object sender, EventArgs e) { frmMain.g_oFrmMain.ActivateStandByAnimation( frmMain.g_oFrmMain.WindowState, frmMain.g_oFrmMain.Left, frmMain.g_oFrmMain.Height, frmMain.g_oFrmMain.Width, frmMain.g_oFrmMain.Top); // Initialize Tree Species Group form this.m_frmTreeSpeciesGroups = new frmDialog(_frmProcessorScenario, frmMain.g_oFrmMain); this.m_frmTreeSpeciesGroups.MaximizeBox = false; this.m_frmTreeSpeciesGroups.BackColor = System.Drawing.SystemColors.Control; this.m_frmTreeSpeciesGroups.Text = "Processor: Tree Species Groups"; this.m_frmTreeSpeciesGroups.Initialize_Processor_Tree_Species_Groups(); this.m_frmTreeSpeciesGroups.Height = 0; this.m_frmTreeSpeciesGroups.Width = 0; if (this.m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Top + m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Height > this.m_frmTreeSpeciesGroups.ClientSize.Height + 2) { for (int x = 1; ; x++) { this.m_frmTreeSpeciesGroups.Height = x; if (m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Top + m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Height < this.m_frmTreeSpeciesGroups.ClientSize.Height) { break; } } } if (m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Left + m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Width > this.m_frmTreeSpeciesGroups.ClientSize.Width + 2) { for (int x = 1; ; x++) { this.m_frmTreeSpeciesGroups.Width = x; if (m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Left + m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.Width < this.m_frmTreeSpeciesGroups.ClientSize.Width) { break; } } } if (ReferenceProcessorScenarioForm.m_bTreeGroupsFirstTime == true && ReferenceProcessorScenarioForm.m_bTreeGroupsCopied == false) { ReferenceProcessorScenarioForm.LoadTreeGroupings(); } m_frmTreeSpeciesGroups.uc_processor_scenario_tree_spc_groups1.loadvalues(); frmMain.g_oFrmMain.DeactivateStandByAnimation(); this.m_frmTreeSpeciesGroups.Left = 0; this.m_frmTreeSpeciesGroups.Top = 0; this.m_frmTreeSpeciesGroups.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; this.m_frmTreeSpeciesGroups.Show(); }
public TemplateGroupBox(FIA_Biosum_Manager.frmDialog p_frmDialog) { // // groupBox1 // p_frmDialog.Controls.Add(this); this.Dock = System.Windows.Forms.DockStyle.Fill; this.Location = new System.Drawing.Point(0, 0); this.Name = "groupBox1"; this.Size = new System.Drawing.Size(432, 368); this.TabIndex = 3; this.TabStop = false; this.Text = ""; }
public frmDialog(FIA_Biosum_Manager.frmDialog p_frmDialogCallingForm) { strCallingFormType = "G"; //generic InitializeComponent(); this.m_frmDialogCallingForm = p_frmDialogCallingForm; LastWindowState = this.WindowState; InitializeUserControls(); // // TODO: Add any constructor code after InitializeComponent call // }
private void BtnTreeDiameterGroups_Click(object sender, EventArgs e) { frmMain.g_oFrmMain.ActivateStandByAnimation( frmMain.g_oFrmMain.WindowState, frmMain.g_oFrmMain.Left, frmMain.g_oFrmMain.Height, frmMain.g_oFrmMain.Width, frmMain.g_oFrmMain.Top); // Initialize Tree Diameter form this.m_frmTreeDiamGroups = new frmDialog(_frmProcessorScenario, frmMain.g_oFrmMain); this.m_frmTreeDiamGroups.MaximizeBox = false; this.m_frmTreeDiamGroups.BackColor = System.Drawing.SystemColors.Control; this.m_frmTreeDiamGroups.Text = "Processor: Tree Diameter Groups"; // @ToDo: Not sure if we need this //this.m_frmTreeDiam.MdiParent = ofrmProcessorScenario; this.m_frmTreeDiamGroups.Initialize_Plot_Tree_Diam_User_Control(); this.m_frmTreeDiamGroups.Height = 0; this.m_frmTreeDiamGroups.Width = 0; if (this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Top + this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Height > this.m_frmTreeDiamGroups.ClientSize.Height + 2) { for (int x = 1; ; x++) { this.m_frmTreeDiamGroups.Height = x; if (this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Top + this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Height < this.m_frmTreeDiamGroups.ClientSize.Height) { break; } } } if (this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Left + this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Width > this.m_frmTreeDiamGroups.ClientSize.Width + 2) { for (int x = 1; ; x++) { this.m_frmTreeDiamGroups.Width = x; if (this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Left + this.m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.Width < this.m_frmTreeDiamGroups.ClientSize.Width) { break; } } } if (ReferenceProcessorScenarioForm.m_bTreeGroupsFirstTime == true && ReferenceProcessorScenarioForm.m_bTreeGroupsCopied == false) { ReferenceProcessorScenarioForm.LoadTreeGroupings(); } m_frmTreeDiamGroups.uc_processor_scenario_tree_diam_groups_list1.loadvalues(); frmMain.g_oFrmMain.DeactivateStandByAnimation(); this.m_frmTreeDiamGroups.Show(); this.m_frmTreeDiamGroups.Left = 0; this.m_frmTreeDiamGroups.Top = 0; this.m_frmTreeDiamGroups.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; }