public void UpdateTasks(Category c) { _curCat = c; var fap = new FormAsyncProgressBar(RefreshListView, "Refreshing form"); fap.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { NewTasks = new List <Task>(); if (nupStart.Value > nupEnd.Value) { return; } var fap = new FormAsyncProgressBar(AddTheTasks, "Generating Tasks"); fap.ShowDialog(); Close(); }
private void batchAddToolStripMenuItem_Click(object sender, EventArgs e) { var f = new FormBatchAdd(); f.ShowDialog(); if (f.NewTasks != null) { _batchAddTaskList = f.NewTasks; var fap = new FormAsyncProgressBar(AddTheTasks, "Adding the tasks"); fap.ShowDialog(); UpdateTasks(); } }
/// <summary> /// Stores the currently loaded db in a binary file /// </summary> public void SaveDb() { var fap = new FormAsyncProgressBar(SaveDbAsync, "Saving database", ProgressBarStyle.Marquee); fap.ShowDialog(); }