private void variableToolStripMenuItem_Click(object sender, EventArgs e) { VariablePicker variablePicker = new VariablePicker(ScopeVariables, Variable); if (variablePicker.ShowDialog() == DialogResult.OK) { if (variablePicker.Variable == null) { return; } VariableDataControl vvariable = new VariableDataControl(variablePicker.Variable, ScopeVariables); SingleInstruction.Instruction = variablePicker.Variable; Panel.Controls.Clear(); Panel.Controls.Add(vvariable); } }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { VariablePicker variablePicker = new VariablePicker(LocalVariables, SelectetVariable); if (variablePicker.ShowDialog() == DialogResult.OK) { if (variablePicker.Variable == null) { return; } VariableDataControl vvariable = new VariableDataControl(variablePicker.Variable, LocalVariables); ThreeAddressInstruction.RightInstruction = variablePicker.Variable; RightPanel.Controls.Clear(); RightPanel.Controls.Add(vvariable); } }