Exemplo n.º 1
0
        private void DoEdit()
        {
            Debug.Assert(_clientLogic.CurrentScript != null);

            // used to rename if changed
            string originalName = _clientLogic.CurrentScript.Name;

            ScriptAddEdit scriptEdit = new ScriptAddEdit(_clientLogic, _clientLogic.CurrentScript, false);

            scriptEdit.Owner = this;

            if ((scriptEdit.ShowDialog() == true) && (!_clientLogic.CurrentScript.IsReadOnly))
            {
                _clientLogic.AdminAddScript(_clientLogic.CurrentScript, originalName, true);
            }

            _actionOnScriptReady = ActionOnScriptReady.None;
        }