Пример #1
0
        void FireChanegCommandByDirectMode()
        {
            ProcsScriptCategorySelectForm form = (ProcsScriptCategorySelectForm)InputFormRef.JumpFormLow <ProcsScriptCategorySelectForm>();
            DialogResult dr = form.ShowDialog();

            if (dr != System.Windows.Forms.DialogResult.OK)
            {
                //直接編集モードだったら、キャンセルされた場合は、コントロールパネルも消す.
                HideFloatingControlpanel();
                return;
            }

            EventScript.Script script = form.Script;

            //選択した命令を代入
            byte[] selectedByteData = script.Data;
            this.ASMTextBox.Text     = U.convertByteToStringDump(selectedByteData);
            this.ScriptCodeName.Text = EventScript.makeCommandComboText(script, false);

            //イベントを逆アセンブルして確定する.
            OneLineDisassembler();
            //値1を自動選択
            if (ParamSrc1.Visible)
            {
                ParamSrc1.Focus();
            }
        }
Пример #2
0
        private void ScriptChangeButton_Click(object sender, EventArgs e)
        {
            ProcsScriptCategorySelectForm form = (ProcsScriptCategorySelectForm)InputFormRef.JumpFormLow <ProcsScriptCategorySelectForm>();
            DialogResult dr = form.ShowDialog();

            if (dr != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            EventScript.Script script = form.Script;

            //選択した命令を代入
            byte[] selectedByteData = script.Data;
            this.ASMTextBox.Text     = U.convertByteToStringDump(selectedByteData);
            this.ScriptCodeName.Text = EventScript.makeCommandComboText(script, false);

            //イベントを逆アセンブルして確定する.
            OneLineDisassembler();
            //値1を自動選択
            if (ParamSrc1.Visible)
            {
                ParamSrc1.Focus();
            }
        }