Exemple #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)//新增
        {
            DataRow r = this.ytTreeView_Main.getSelectRow();

            if (r != null)
            {
                EQDict_Add ks = new EQDict_Add(r, true);
                ks.WZDM = this;
                ks.ShowDialog();
            }

            else
            {
                WJs.alert("请选择要增加的设备类别!");
            }
        }
Exemple #2
0
        private void dataGView_Main_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataRow r = this.dataGView_Main.GetRowData();

            if (r != null)
            {
                rowid = this.dataGView_Main.CurrentRow.Index;
                EQDict_Add ks = new EQDict_Add(r, false, true);
                ks.WZDM = this;
                ks.ShowDialog();
            }

            else
            {
                WJs.alert("请选择要浏览的设备信息");
            }
        }
Exemple #3
0
        private void toolStripButton5_Click(object sender, EventArgs e)//修改
        {
            DataRow r = this.dataGView_Main.GetRowData();

            if (r != null)
            {
                rowid = this.dataGView_Main.CurrentRow.Index;
                EQDict_Add ks = new EQDict_Add(r, false);
                ks.WZDM = this;
                ks.ShowDialog();
            }

            else
            {
                WJs.alert("请选择要编辑的设备信息");
            }
        }