private void New() { frmEditDevice F = new frmEditDevice(); F.strType = tvType.SelectedNode.Text; F.New(); if (F.ShowDialog() == DialogResult.OK) { BindData(); } F.Dispose(); }
private void Edit() { if (gvBase.FocusedRowHandle < 0) { return; } DataRow dr = gvBase.GetDataRow(gvBase.FocusedRowHandle); frmEditDevice F = new frmEditDevice(); F.Edit(dr["F_ID"].ToString()); if (F.ShowDialog() == DialogResult.OK) { BindData(); } F.Dispose(); }