private void functionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FunctionPicker functionPicker = new FunctionPicker(GlobalScope.FunctionList, SelectetVariable);

            if (functionPicker.ShowDialog() == DialogResult.OK)
            {
                if (functionPicker.Function == null)
                {
                    return;
                }
                FunctionCall functionCall = new FunctionCall(functionPicker.Function, LocalVariables);
                ThreeAddressInstruction.LeftInstruction = functionPicker.Function;
                LeftPanel.Controls.Clear();
                LeftPanel.Controls.Add(functionCall);
            }
        }
コード例 #2
0
        private void functionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FunctionPicker functionPicker = new FunctionPicker(GlobalScope.FunctionList, Variable);

            if (functionPicker.ShowDialog() == DialogResult.OK)
            {
                if (functionPicker.Function == null)
                {
                    return;
                }
                FunctionCall functionCall = new FunctionCall(functionPicker.Function, ScopeVariables);
                SingleInstruction.Instruction = functionPicker.Function;
                Panel.Controls.Clear();
                Panel.Controls.Add(functionCall);
            }
        }
コード例 #3
0
        private void userDefinedToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FunctionPicker functionPicker = new FunctionPicker(GlobalScope.FunctionList);

            if (functionPicker.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            if (functionPicker.Function == null)
            {
                return;
            }
            FunctionCall functionCall = new FunctionCall(functionPicker.Function, Scope.LocalVariables);

            ScopePanel.Controls.Add(functionCall);
            UpdateScope();
        }