Пример #1
0
        private void New()
        {
            frmEditDevice F = new frmEditDevice();

            F.strType = tvType.SelectedNode.Text;
            F.New();
            if (F.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            F.Dispose();
        }
Пример #2
0
        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();
        }