Esempio n. 1
0
        protected override void OnDelete(SyncStatus status)

        {
            if (!UIErrorHelper.Confirm(MMCUIConstants.CONFIRM_DELETE))
            {
                return;
            }



            base.OnDelete(status);

            var zoneNode = this.ScopeNode as VMDNSZoneEntryNode;

            if (zoneNode != null)

            {
                int entriesIndex = (int)this.SelectedNodes[0].Tag;

                zoneNode.DeleteRecord(this.Entries[entriesIndex]);

                var node = this.SelectedNodes[0] as ResultNode;

                this.ResultNodes.Remove(node);

                this.Refresh();
            }
        }
        protected override void OnDelete(SyncStatus status)

        {
            UIErrorHelper.CheckedExec(delegate()

            {
                if (!UIErrorHelper.Confirm(MMCUIConstants.CONFIRM_DELETE))
                {
                    return;
                }

                this.ServerNode.ServerDTO.DNSClient.DeleteZone(this.DisplayName);

                Parent.Children.Remove(this);

                base.OnDelete(status);
            });
        }