Property | Type | Description | |
---|---|---|---|
AddMenuItem | ToolStripMenuItem | ||
AddMenuItem | ToolStripMenuItem | ||
Case_Click | void | ||
GetCommandUrlWithToken | String | ||
HideForm | void | ||
InitializeComponent | void | ||
LoadDoc | XDocument | ||
Logon | void | ||
MainForm_FormClosing | void | ||
SetForegroundWindow | bool | ||
SetWindowPos | bool | ||
ShowForm | void | ||
StartWork | void | ||
StopWork | void | ||
TextBox_LostFocus | void | ||
TryStartWork | Boolean | ||
UpdateCaseHistory | Boolean | ||
UpdateCases | Boolean | ||
UpdateFogBugzData | void | ||
UpdateMenu | Boolean | ||
UpdateName | void | ||
UpdateRecentCases | Boolean | ||
UpdateWorkingCase | Boolean | ||
aboutToolStripMenuItem_Click | void | ||
btnCancel_Click | void | ||
btnOk_Click | void | ||
exitToolStripMenuItem_Click | void | ||
logInToolStripMenuItem_Click | void | ||
menu_Click | void | ||
refreshToolStripMenuItem_Click | void | ||
showMenuInTaskBar | void | ||
startTimer | void | ||
stopWorkToolStripMenuItem_Click | void | ||
tbManualCase_Enter | void | ||
tbManualCase_KeyPress | void | ||
tray_MouseClick | void | ||
tray_MouseDoubleClick | void | ||
updateTimer_Tick | void |
Method | Description | |
---|---|---|
MainForm ( ) : System |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
Method | Description | |
---|---|---|
AddMenuItem ( ToolStripMenuItem parent, Object tag, String text, EventHandler clickHandler, Boolean isSelected ) : ToolStripMenuItem |
Adds a new menu item to the given menu item.
|
|
AddMenuItem ( ToolStripMenuItem parent, String text ) : ToolStripMenuItem |
Adds a new menu item to the given menu item.
|
|
Case_Click ( Object sender, EventArgs e ) : void |
Handles the click event of any case menu item.
|
|
GetCommandUrlWithToken ( String commandFormat ) : String |
Gets the FogBugz api request uri with the given command and the current session's authentication token.
|
|
HideForm ( ) : void |
Minimizes and hides the logon form.
|
|
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
LoadDoc ( String format ) : XDocument |
Attempts to load an XML document. If there is an exception, the method returns a document with an error response.
|
|
Logon ( ) : void |
Initiates the logon process. If it is successful, the form values are saved to the application settings.
|
|
MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void |
Handles the form's Closing event and forces the form to minimize instead of close when the "x" button is clicked on the toolbar.
|
|
SetForegroundWindow ( IntPtr hWnd ) : bool | ||
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, int flags ) : bool | ||
ShowForm ( ) : void |
Normalizes and shows the logon form.
|
|
StartWork ( Int32 caseId ) : void |
Starts the time tracking timer for the specified case.
|
|
StopWork ( ) : void |
Stops the time tracking timer for the case currently in progress.
|
|
TextBox_LostFocus ( object sender, EventArgs e ) : void |
Handles the lost focus event of the manual case entry textbox and causes the default text and styling to reappear if the textbox is empty when the user leaves it.
|
|
TryStartWork ( Int32 caseId, |
Attempts to start the time tracking timer for the specified case.
|
|
UpdateCaseHistory ( ) : Boolean |
Updates an internal list of cases that the user has resolved in the past week, which assists in determining which cases are displayed in the menu.
|
|
UpdateCases ( ) : Boolean |
Updates an internal list of cases the user is likely to be working on.
|
|
UpdateFogBugzData ( ) : void |
Calls all methods that update case and case-related data.
|
|
UpdateMenu ( ) : Boolean |
Forces an update of case data and updates the menu's lists of cases.
|
|
UpdateName ( ) : void |
Updates the user's full name from FogBugz, which is used when listing cases.
|
|
UpdateRecentCases ( ) : Boolean | ||
UpdateWorkingCase ( ) : Boolean |
Updates the internal working case record.
|
|
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void |
Handles the click event of the about menu item, which displays a modal dialog with version and other information.
|
|
btnCancel_Click ( object sender, EventArgs e ) : void | ||
btnOk_Click ( object sender, EventArgs e ) : void |
Handles the click event of the form's OK button.
|
|
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void |
Handles the click event of the Exit menu item and causes the application to exit.
|
|
logInToolStripMenuItem_Click ( object sender, EventArgs e ) : void |
Handles the click event of the "Log In" menu item.
|
|
menu_Click ( object sender, EventArgs e ) : void |
Handles the click event of the menu. This is used as a workaround to cause the manual case entry textbox to lose focus when the user clicks elsewhere.
|
|
refreshToolStripMenuItem_Click ( object sender, EventArgs e ) : void |
Handles the click event of the refresh menu item, which updates all the case data.
|
|
showMenuInTaskBar ( ContextMenuStrip menu ) : void | ||
startTimer ( ) : void | ||
stopWorkToolStripMenuItem_Click ( object sender, EventArgs e ) : void |
Handles the click event of the Stop Work menu item.
|
|
tbManualCase_Enter ( object sender, EventArgs e ) : void |
Handles the enter event of the manual case entry textbox, and causes the default text and styling in the textbox to vanish when the user enters it.
|
|
tbManualCase_KeyPress ( object sender, KeyPressEventArgs e ) : void |
Handles the KeyPress event of the manual case entry textbox in the menu.
|
|
tray_MouseClick ( object sender, MouseEventArgs e ) : void | ||
tray_MouseDoubleClick ( object sender, MouseEventArgs e ) : void |
Handles the doubleclick event of the system tray icon, which opens the FogBugz server url in the user's browser.
|
|
updateTimer_Tick ( object sender, EventArgs e ) : void |
Handles the Tick event of the form's updateTimer component, which periodically updates data from the FogBugz API.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
return | void |