Esempio n. 1
0
        // private Panel[] plis = null;

        #endregion

        private void Add_toolStripButton_Click(object sender, EventArgs e)//新增
        {
            isAdd = true;
            EQUnit_Add form = new EQUnit_Add();

            form.Main = this;
            form.ShowDialog();
            Search_button_Click(null, null);
        }
Esempio n. 2
0
        private void ModifyButton_Click(object sender, EventArgs e)//修改
        {
            isAdd = false;
            Dictionary <string, ObjItem> dr = this.dataGView1.getRowData();

            if (dr != null)
            {
                EQUnit_Add form = new EQUnit_Add(null, dr);
                form.Main = this;
                form.ShowDialog();
                Search_button_Click(null, null);
            }
            else
            {
                WJs.alert("请选择要修改的设备项目单位信息!");
            }
        }