/// <summary>User has pressed one of our shortcut keys.</summary> /// <param name="sender">Event sender</param> /// <param name="e">Event arguments</param> private void OnShortcutKeyPress(object sender, KeysArgs e) { if (e.Keys == ConsoleKey.F5) { contextMenu.RunAPSIM(sender, null); } }
/// <summary>User has pressed one of our shortcut keys.</summary> /// <param name="sender">Event sender</param> /// <param name="e">Event arguments</param> private void OnShortcutKeyPress(object sender, KeysArgs e) { if (e.Keys == System.Windows.Forms.Keys.F5) { ContextMenu contextMenu = new ContextMenu(this); contextMenu.RunAPSIM(sender, null); } }
/// <summary>User has pressed one of our shortcut keys.</summary> /// <param name="sender">Event sender</param> /// <param name="e">Event arguments</param> private void OnShortcutKeyPress(object sender, KeysArgs e) { if (e.Keys == ConsoleKey.F5) { ContextMenu contextMenu = new ContextMenu(this); ApsimXFile.Links.Resolve(contextMenu); contextMenu.RunAPSIM(sender, null); } }
/// <summary>User has pressed one of our shortcut keys.</summary> /// <param name="sender">Event sender</param> /// <param name="e">Event arguments</param> private void OnShortcutKeyPress(object sender, KeysArgs e) { if (e.Keys == ConsoleKey.F5) { ContextMenu contextMenu = new ContextMenu(this); contextMenu.RunAPSIM(sender, null); } }