예제 #1
0
 private void VariablesButton_Click(object sender, EventArgs e)
 {
     if (VariablesWindow == null)
     {
         VariablesWindow = new VariablesWindow(Variables);
         VariablesWindow.OnInsertVariable += InsertVariable;
         VariablesWindow.Location          = new Point(Bounds.Right + 20, Bounds.Top);
         VariablesWindow.Size              = new Size(VariablesWindow.Size.Width, Size.Height);
         VariablesWindow.FormClosed       += OnClosedVariablesWindow;
         VariablesWindow.Show(this);
     }
     else
     {
         VariablesWindow.Close();
         VariablesWindow = null;
     }
 }
		private void VariablesButton_Click(object sender, EventArgs e)
		{
			if(VariablesWindow == null)
			{
				VariablesWindow = new VariablesWindow(Variables);
				VariablesWindow.OnInsertVariable += InsertVariable;
				VariablesWindow.Location = new Point(Bounds.Right + 20, Bounds.Top);
				VariablesWindow.Size = new Size(VariablesWindow.Size.Width, Size.Height);
				VariablesWindow.FormClosed += OnClosedVariablesWindow;
				VariablesWindow.Show(this);
			}
			else
			{
				VariablesWindow.Close();
				VariablesWindow = null;
			}
		}
		private void OnClosedVariablesWindow(object sender, EventArgs e)
		{
			VariablesWindow = null;
		}
예제 #4
0
 private void OnClosedVariablesWindow(object sender, EventArgs e)
 {
     VariablesWindow = null;
 }