예제 #1
0
        private void DoStartEdit()
        {
            StackHashScriptFileData currentScriptData = listViewScripts.SelectedItem as StackHashScriptFileData;

            if (currentScriptData != null)
            {
                if ((_clientLogic.CurrentScript == null) ||
                    (string.Compare(currentScriptData.Name, _clientLogic.CurrentScript.Name, StringComparison.OrdinalIgnoreCase) != 0))
                {
                    // need to load the script first
                    _actionOnScriptReady = ActionOnScriptReady.Edit;
                    _clientLogic.AdminGetScript(currentScriptData.Name);
                }
                else
                {
                    DoEdit();
                }
            }
        }