コード例 #1
0
ファイル: Form1.cs プロジェクト: starik222/AnimeManager
 private void добавитьНаборToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Form_mass_catalog f_mass = new Form_mass_catalog();
     Form_add_all_catalog f_mass = new Form_add_all_catalog();
     f_mass.Owner = this;
     f_mass.ShowDialog();
 }
コード例 #2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if ((e.ColumnIndex == 3) && (e.RowIndex != -1))
     {
         dataGridView1.Rows.RemoveAt(e.RowIndex);
     }
     if ((e.ColumnIndex == 2) && (e.RowIndex != -1))
     {
         Form_add f_add = new Form_add();
         f_add.Owner = this;
         if (!roditel)
             f_add.name_anime = (string)dataGridView1.Rows[e.RowIndex].Cells["name"].Value;
         else
             f_add.name_anime = rod_cat;
         f_add.directory = (string)dataGridView1.Rows[e.RowIndex].Cells["fullPath"].Value;
         f_add.From_all = true;
         f_add.auto = false;
         f_add.next = false;
         f_add.ShowDialog();
         if (progress)
         {
             dataGridView1.Rows[e.RowIndex].Cells["Prog"].Value = "Да";
             dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Green;
             progress = false;
         }
     }
     if ((e.ColumnIndex == 5) && (e.RowIndex != -1))
     {
         Form_add_all_catalog f_a = new Form_add_all_catalog();
         f_a.Owner = this;
         f_a.button1.Visible = false;
         f_a.Width = 1069;
         f_a.AddToList((string)dataGridView1.Rows[e.RowIndex].Cells["fullPath"].Value);
         f_a.rod_cat = (string)dataGridView1.Rows[e.RowIndex].Cells["name"].Value;
         f_a.roditel = true;
         f_a.ShowDialog();
     }
 }