/// <summary> /// Bring this pane to its default state /// </summary> public static void Reset () { // TODO: reset the pane if (NewProjectPane3.IsVisited ()) { SendKeyStrokes ("{TAB}"); // Tab } currPos = TabStop.ProjectLocation; }
/// <summary> /// Select and activate the "Finish" button /// </summary> public static void Finish () { if (!NewProjectPane3.IsVisited ()) { throw new HolodeckExceptions.UnaccessableControlException (); } GoTo (TabStop.Finish); SendKeyStrokes (" "); // Space // Clean up after clicking "Finish" NewProjectPane3.CleanUp (); }
/// <summary> /// Change the focus to the next control /// </summary> private static void GoToNext () { switch (currPos) { case TabStop.ProjectLocation: { currPos = TabStop.Browse; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Browse: { if (!NewProjectPane3.IsVisited ()) { currPos = TabStop.Cancel; } else { currPos = TabStop.Finish; } SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Cancel: { currPos = TabStop.Next; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Next: { currPos = TabStop.ProjectLocation; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Finish: { currPos = TabStop.Cancel; SendKeyStrokes ("{TAB}"); // Tab break; } default: { break; } } }
/// <summary> /// Change the focus to the next control /// </summary> private static void GoToNext () { switch (currPos) { case TabStop.ProjectLocation: { currPos = TabStop.Browse; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Browse: { if (!NewProjectPane3.IsVisited ()) { currPos = TabStop.Cancel; } else { currPos = TabStop.Finish; } SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Cancel: { currPos = TabStop.Next; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Next: { currPos = TabStop.ProjectLocation; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Finish: { currPos = TabStop.Cancel; SendKeyStrokes ("{TAB}"); // Tab break; } default: { throw new HolodeckExceptions.UnaccessableControlException (); } } }
/// <summary> /// Change the focus to the next control /// </summary> private static void GoToNext () { // TODO: figure out a better way if possible switch (selectionStatus) { case Selection.Launch: { switch (currPos) { case TabStop.LaunchApplication: { currPos = TabStop.PIDs; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.AttachToApplication: // unreachable by TABs { currPos = TabStop.LaunchApplication; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.ApplicationName: { currPos = TabStop.Browse; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Browse: { currPos = TabStop.LaunchApplication; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Parameters: { if (!NewProjectPane3.IsVisited ()) { currPos = TabStop.Cancel; } else { currPos = TabStop.Finish; } SendKeyStrokes ("{TAB}"); // Tab break; } /* case TabStop.Refresh: // disabled { break; } */ case TabStop.PIDs: { currPos = TabStop.Parameters; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Cancel: { currPos = TabStop.Next; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Back: { currPos = TabStop.ApplicationName; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Next: { currPos = TabStop.Back; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Finish: { currPos = TabStop.Cancel; SendKeyStrokes ("{TAB}"); // Tab break; } default : { break; } } break; } // case Selection.Launch case Selection.Attach: { switch (currPos) { /* case TabStop.LaunchApplication: // unreachable by TABs { break; } */ case TabStop.AttachToApplication: { currPos = TabStop.PIDs; SendKeyStrokes ("{TAB}"); // Tab break; } /* case TabStop.ApplicationName: // disabled { break; } case TabStop.Browse: // disabled { break; } case TabStop.Parameters: //disabled { break; } */ case TabStop.Refresh: { if (!NewProjectPane3.IsVisited ()) { currPos = TabStop.Cancel; } else { currPos = TabStop.Finish; } SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.PIDs: { currPos = TabStop.Refresh; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Cancel: { currPos = TabStop.Next; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Back: { currPos = TabStop.LaunchApplication; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Next: { currPos = TabStop.Back; SendKeyStrokes ("{TAB}"); // Tab break; } case TabStop.Finish: { currPos = TabStop.Cancel; SendKeyStrokes ("{TAB}"); // Tab break; } default : { break; } } break; } // case Selection.Attach default: { break; } } }