/// <summary> /// Handles the MouseDown event of the Then button /// </summary> /// <param name="sender">Object that fired the event</param> /// <param name="e">.NET supplied event parameters</param> private void btnThen_MouseDown(object sender, MouseEventArgs e) { CurrentContextMenuType = CommandContextMenuType.Then; BuildCommandContextMenu().Show((Control)sender, e.Location); }
/// <summary> /// Handles the MouseDown event of the Else Function button /// </summary> /// <param name="sender">Object that fired the event</param> /// <param name="e">.NET supplied event parameters</param> private void btnFunctionElse_MouseDown(object sender, MouseEventArgs e) { CurrentContextMenuType = CommandContextMenuType.Else; BuildFunctionContextMenu().Show((Control)sender, e.Location); }
private void txtCondition_MouseDown(object sender, MouseEventArgs e) { CurrentContextMenuType = CommandContextMenuType.If; }
private void txtThen_MouseDown(object sender, MouseEventArgs e) { CurrentContextMenuType = CommandContextMenuType.Then; }
/// <summary> /// Handles txtElse MouseClick event /// </summary> /// <param name="sender">Object that fired the event.</param> /// <param name="e">.NET supplied event args.</param> private void txtElse_MouseClick(object sender, MouseEventArgs e) { CurrentContextMenuType = CommandContextMenuType.Else; }