示例#1
0
        private void button_Add_Click(object sender, EventArgs e)
        {
            FoodServer.checkedUnit.CheckedUnit.AlarmParameter temp = new FoodServer.checkedUnit.CheckedUnit.AlarmParameter();
            AddCheck add = new AddCheck(temp, this);

            add.Owner = this;
            add.Show();
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     FoodServer.checkedUnit.CheckedUnit.AlarmParameter temp = new FoodServer.checkedUnit.CheckedUnit.AlarmParameter();
     temp.fuc   = "update";
     temp.Title = "update";
     try
     {
         temp.selectIndex = dataGridView1.CurrentCell.RowIndex;
         AddCheck add = new AddCheck(temp, this);
         add.Owner = this;
         add.Show();
     }
     catch
     {
         MessageBox.Show("请选择要修改的行数据");
     }
 }