Exemplo n.º 1
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!Misc.UI.Confirm(I18N.ConfirmDeleteControl))
     {
         return;
     }
     Cleanup();
     servers.DeleteServerByConfig(GetConfig());
 }
Exemplo n.º 2
0
        private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Misc.UI.Confirm(I18N.ConfirmDeleteControl))
            {
                return;
            }

            var csc = this.coreServCtrl;

            this.coreServCtrl = null;
            ReleaseCoreCtrlEvents(csc);
            var config = csc?.GetConfiger()?.GetConfig() ?? "";

            servers.DeleteServerByConfig(config);
        }