Пример #1
0
        private void ModifyDM_WHBLB()
        {
            Curwhbl = this.treeView_menu.SelectedNode.Tag as DM_WHBLB;
            DM_WHBLBEDIT frm = new DM_WHBLBEDIT();

            frm.ShowInTaskbar = false;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ParentID      = (int)Curwhbl.PARENTID;
            frm.SetData(Curwhbl);
            frm.ShowDialog();
            this.LoadDM_WHBLB();
        }
Пример #2
0
        private void NewDM_WHBLB()
        {
            var parenetmenu = this.treeView_menu.SelectedNode.Tag as DM_WHBLB;

            Curwhbl = new DM_WHBLB();
            int pid = -1;

            if (parenetmenu != null)
            {
                pid = Curwhbl.Id;
            }
            DM_WHBLBEDIT frm = new DM_WHBLBEDIT();

            frm.ShowInTaskbar = false;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ParentID      = pid;
            Curwhbl.PARENTID  = pid;
            frm.SetData(Curwhbl);
            frm.ShowDialog();
            this.LoadDM_WHBLB();
        }