Exemple #1
0
 private void btnsave_Click(object sender, EventArgs e)
 {
     MacModelFormAdd macform=new MacModelFormAdd ();
     macform.type = "add";
     macform.macmodelchange += new MacModelFormAdd.MacModelChange(show_model);
     macform.ShowDialog();
 }
Exemple #2
0
        private void btnsave_Click(object sender, EventArgs e)
        {
            MacModelFormAdd macform = new MacModelFormAdd();

            macform.type            = "add";
            macform.macmodelchange += new MacModelFormAdd.MacModelChange(show_model);
            macform.ShowDialog();
        }
Exemple #3
0
 private void btnattribute_Click(object sender, EventArgs e)
 {
     if (dgv_Model.SelectedRows.Count <= 0) return;
     if (dgv_Model.SelectedRows[0].Cells["SysID"].Value.ToString() == "") return;
     string ID = this.dgv_Model.SelectedRows[0].Cells["SysID"].Value.ToString();
     if (ID == "") return;
     MacModelFormAdd macform = new MacModelFormAdd();
     macform.type = "edit";
     macform.ID = ID;
     macform.macmodelchange += new MacModelFormAdd.MacModelChange(show_model);
     macform.ShowDialog();
 }
Exemple #4
0
        private void btnattribute_Click(object sender, EventArgs e)
        {
            if (dgv_Model.SelectedRows.Count <= 0)
            {
                return;
            }
            if (dgv_Model.SelectedRows[0].Cells["SysID"].Value.ToString() == "")
            {
                return;
            }
            string ID = this.dgv_Model.SelectedRows[0].Cells["SysID"].Value.ToString();

            if (ID == "")
            {
                return;
            }
            MacModelFormAdd macform = new MacModelFormAdd();

            macform.type            = "edit";
            macform.ID              = ID;
            macform.macmodelchange += new MacModelFormAdd.MacModelChange(show_model);
            macform.ShowDialog();
        }