Example #1
0
        private void addTaskToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            outToolStripMenuItem.Visible        = true;
            removeTaskToolStripMenuItem.Visible = true;

            AllFunctions.AddElement(Tasks);
        }
Example #2
0
        //SEARCH
        private void button1_Click(object sender, EventArgs e)
        {
            AllFunctions.ReturnVisible(dataGridView1);


            if (tbData.Text.Length != 0)
            {
                string str1 = tbData.Text.ToString();
                AllFunctions.SearchForData(dataGridView1, Tasks, str1);
            }

            if (tbTitle.Text.Length != 0)
            {
                string str2 = tbTitle.Text.ToString();
                AllFunctions.SearchForTitle(dataGridView1, Tasks, str2);
            }

            if (tbPerformer.Text.Length != 0)
            {
                string str3 = tbPerformer.Text.ToString();
                AllFunctions.SearchForPerformer(dataGridView1, Tasks, str3);
            }

            if (tbTags.Text.Length != 0)
            {
                string str4 = tbTags.Text.ToString();

                AllFunctions.SearchForTegs(dataGridView1, Tasks, str4);
            }
        }
Example #3
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Tasks = AllFunctions.ReadTasks(Tasks);

            outToolStripMenuItem.Visible = true;
            outToolStripMenuItem.PerformClick();
            removeTaskToolStripMenuItem.Visible = true;
        }
Example #4
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AllFunctions.EditElements(dataGridView1, Tasks);
 }
Example #5
0
 private void removeTaskToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     AllFunctions.RemoveElements(dataGridView1, Tasks);
 }
Example #6
0
 private void Form1_Activated(object sender, EventArgs e)
 {
     AllFunctions.OutElements(dataGridView1, Tasks);
 }
Example #7
0
 // Save and Read
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AllFunctions.SaveTasks(Tasks);
 }