Esempio n. 1
0
        private void DoDelete()
        {
            Debug.Assert(_clientLogic.CurrentScript != null);

            if (_clientLogic.CurrentScript != null)
            {
                if (StackHashMessageBox.Show(this,
                                             string.Format(CultureInfo.CurrentCulture,
                                                           Properties.Resources.ScriptManager_DeleteScriptMBMessage,
                                                           _clientLogic.CurrentScript.Name),
                                             Properties.Resources.ScriptManager_DeleteScriptMBTitle,
                                             StackHashMessageBoxType.YesNo,
                                             StackHashMessageBoxIcon.Question) == StackHashDialogResult.Yes)
                {
                    _clientLogic.AdminRemoveScript(_clientLogic.CurrentScript.Name);
                    _actionOnScriptReady = ActionOnScriptReady.None;
                }
            }
        }