Exemplo n.º 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();
        }
Exemplo n.º 2
0
        /// <summary>
        ///   添加数据
        /// </summary>
        private void button1_Click(object sender, EventArgs e)
        {
            FoodServer.checkedUnit.CheckedUnit.AlarmParameter temp = new FoodServer.checkedUnit.CheckedUnit.AlarmParameter();
            temp.fuc   = "insert";
            temp.Title = "insert";
            UserInfo add = new UserInfo(temp, this);

            add.Owner = this;
            add.Show();
        }
Exemplo n.º 3
0
        /// <summary>
        ///   修改数据
        /// </summary>

        private void button2_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;
                UserInfo add = new UserInfo(temp, this);
                add.Owner = this;
                add.Show();
            }
            catch
            {
                MessageBox.Show("请选择要修改的行数据");
            }
        }