diff --git a/CarManagerV3/MainForm.cs b/CarManagerV3/MainForm.cs index b674f18..4592b55 100644 --- a/CarManagerV3/MainForm.cs +++ b/CarManagerV3/MainForm.cs @@ -19,6 +19,7 @@ namespace CarManagerV3 { InitializeComponent(); + // Open the most recent file if it exists. Otherwise, use default filepath. List recentFiles = SafeManager.GetRecentPaths(); if(recentFiles.Count > 0) { @@ -33,6 +34,11 @@ namespace CarManagerV3 } + /// + /// Refreshes the cars displayed in the flow layout panel. + /// + /// The cars. + /// if set to true [update global]. private async void refreshCars(List _cars, bool updateGlobal = true) { @@ -143,6 +149,13 @@ namespace CarManagerV3 detailsForm.ShowDialog(); } + /// + /// Filters the cars by a search query. + /// + /// The search query. + /// + /// A list of objects that match the query. + /// List filterCarsByQuery(string query) { List results = new List(); @@ -156,6 +169,10 @@ namespace CarManagerV3 return results; } + /// + /// Searches the list of cars by a query and refreshes the display. + /// + /// The query. void searchList(string query) { List results = filterCarsByQuery(query); @@ -327,11 +344,15 @@ namespace CarManagerV3 } } + // TODO: Unbind and remove this. private void recentFilesToolStripMenuItem_Click(object sender, EventArgs e) { } + /// + /// Refreshes the recently opened files menu. + /// private void refreshRecents() { recentFilesToolStripMenuItem.DropDownItems.Clear();