Пример #1
0
        protected override void OnEdit(object sender, EventArgs args)
        {
            //base.OnEdit(sender, args);
            EditListViewOperationFrm frm = new EditListViewOperationFrm();
            frm.UpdateItem((ListViewOperationType)this.DataInfo);
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.Children.Clear();

                foreach (OperationItemType op in this.dataInfo.MyOperationItems)
                {
                    OperationItemNode opNode = new OperationItemNode();
                    opNode.Name = op.Name.Value;
                    opNode.Parent = this;
                }
            }
        }
Пример #2
0
        protected override void OnEdit(object sender, EventArgs args)
        {
            //base.OnEdit(sender, args);
            EditListViewOperationFrm frm = new EditListViewOperationFrm();

            frm.UpdateItem((ListViewOperationType)this.DataInfo);
            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.Children.Clear();

                foreach (OperationItemType op in this.dataInfo.MyOperationItems)
                {
                    OperationItemNode opNode = new OperationItemNode();
                    opNode.Name   = op.Name.Value;
                    opNode.Parent = this;
                }
            }
        }