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

            fap.ShowDialog();
        }
示例#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();
        }
示例#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();
            }
        }
示例#4
0
文件: FormMain.cs 项目: flubbes/ToDo
        /// <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();
        }