Exemplo n.º 1
0
        private void DeleteAllCommand()
        {
            SqlConnectTasks spam = new SqlConnectTasks();

            spam.DeleteAllTask();

            flag_for_prohibition_of_repeated = false;
            tasks = new DataTable("Tasks");
            adapter.Fill(tasks);
            RaisePropertiesChanged(nameof(Tasks));
            flag_for_prohibition_of_repeated = true;
        }
Exemplo n.º 2
0
        private void AddFunc()
        {
            validate();
            if (IsCanCalcylate)
            {
                TaskModel test = new TaskModel();
                this.Set_Fields(test);
                SqlConnectTasks sqlConnectTasks = new SqlConnectTasks();
                sqlConnectTasks.InsertTasks(test);
                Clear_Fields();

                flag_for_prohibition_of_repeated = false;
                tasks = new DataTable("Tasks");
                adapter.Fill(tasks);
                RaisePropertiesChanged(nameof(Tasks));
                flag_for_prohibition_of_repeated = true;
            }
            IsCanCalcylate = true;
        }