Exemple #1
0
        public void UpdateTasks(Category c)
        {
            _curCat = c;
            var fap = new FormAsyncProgressBar(RefreshListView, "Refreshing form");

            fap.ShowDialog();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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();
            }
        }
Exemple #4
0
        /// <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();
        }