Exemplo n.º 1
0
        protected override void ExecuteCore(SelectedItemCollection selection)
        {
            Host host = selection[0].HostAncestor;

            DialogResult result = new RemoveCrashDumpsWarningDialog(host).ShowDialog(Parent);

            if (result == DialogResult.OK)
            {
                new DestroyHostCrashDumpAction(host).RunAsync();
            }
        }
        protected override void ExecuteCore(SelectedItemCollection selection)
        {
            Host host = selection[0].HostAncestor;

            DialogResult result = new RemoveCrashDumpsWarningDialog(host).ShowDialog(Parent);

            if (result == DialogResult.OK)
            {
                MainWindowCommandInterface.AllowHistorySwitch();
                new DestroyHostCrashDumpAction(host).RunAsync();
            }
        }