private void addTaskToolStripMenuItem_Click_1(object sender, EventArgs e) { outToolStripMenuItem.Visible = true; removeTaskToolStripMenuItem.Visible = true; AllFunctions.AddElement(Tasks); }
//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); } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { Tasks = AllFunctions.ReadTasks(Tasks); outToolStripMenuItem.Visible = true; outToolStripMenuItem.PerformClick(); removeTaskToolStripMenuItem.Visible = true; }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { AllFunctions.EditElements(dataGridView1, Tasks); }
private void removeTaskToolStripMenuItem_Click_1(object sender, EventArgs e) { AllFunctions.RemoveElements(dataGridView1, Tasks); }
private void Form1_Activated(object sender, EventArgs e) { AllFunctions.OutElements(dataGridView1, Tasks); }
// Save and Read private void saveToolStripMenuItem_Click(object sender, EventArgs e) { AllFunctions.SaveTasks(Tasks); }