Пример #1
0
        void ButtonAddOptionsClick(object sender, EventArgs e)
        {
            //新参数
            FormProgOption tF = new FormProgOption();

            tF.Text = "系统参数-新增";
            tF.ShowDialog();
            RefreshOptions();
        }
Пример #2
0
 void ButtonModifyOptionsClick(object sender, EventArgs e)
 {
     //修改
     if (dataGridViewWareHouse.CurrentRow != null)
     {
         FormProgOption tF = new FormProgOption();
         tF.i_OptionsID = Convert.ToInt32(dataGridViewOptions.CurrentRow.Cells[0].Value.ToString());
         tF.Text        = "系统参数-修改";
         tF.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择要修改的系统参数!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     RefreshOptions();
 }