public frmDatabaseEditor(frmTemplates_editImport parentForm) { frmParent = parentForm; InitializeComponent(); loadColumns(); }
private void changeTemplatesToolStripMenuItem_Click(object sender, EventArgs e) { if (this.ActiveMdiChild != null) { this.ActiveMdiChild.Close(); } fTemplates = new frmTemplates_editImport(); fTemplates.WindowState = FormWindowState.Maximized; fTemplates.MdiParent = this; fTemplates.Show(); toolStripStatusLabel1.Text = "Update Import Templates"; }
private void button2_Click(object sender, EventArgs e) { if (!validateInputs(panel1)) { return; } //create the template string templateID = string.Empty; try { templateID = tempMethods.createTemplate(cbSuppliers.SelectedValue.ToString(), txtTemplateName.Text, cbDirection.Text); } catch (Exception ee) { MessageBox.Show(ee.Message); return; } //open the template editor child form switch (cbDirection.Text) { case "IMPORT": { frmTemplates_editImport f = new frmTemplates_editImport(); f.supplierID = cbSuppliers.SelectedValue.ToString(); f.templateID = templateID; START._parent.loadChildForm(f); } break; case "EXPORT": { frmTemplates_editExport f = new frmTemplates_editExport(); f.supplierID = cbSuppliers.SelectedValue.ToString(); f.templateID = templateID; START._parent.loadChildForm(f); } break; } }
public frmCalculationEditor(frmTemplates_editImport parentForm) { frmParent = parentForm; InitializeComponent(); }
public frmConditionalFormattingEditor(frmTemplates_editImport parentForm) { frmParent = parentForm; InitializeComponent(); }