Example #1
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            if (this.dgv_custMat.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_custMat.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            string sysid_ = this.dgv_custMat.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();

            if (sysid_ == "")
            {
                return;
            }


            FormCustMatAdd fca = new FormCustMatAdd();

            fca.Cmsysid            = sysid_;
            fca.type               = "edit";
            fca.custmatFormChange += new FormCustMatAdd.CustMatFormChange(ref_CustMat_lst);
            fca.ShowDialog();
        }
Example #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FormCustMatAdd fca = new FormCustMatAdd();

            fca.type = "add";
            fca.custmatFormChange += new FormCustMatAdd.CustMatFormChange(ref_CustMat_lst);
            fca.ShowDialog();
        }