Beispiel #1
0
        private void ToolStripButton5_Click(object sender, EventArgs e)
        {
            if (Dgv1.RowCount == 0)
            {
                return;
            }
            if (Dgv1.SelectedRows.Count == 0)
            {
                Dgv1.CurrentRow.Selected = true;
            }
            int nbut = 6;

            if (sender.ToString() == "Перенос на другой месяц")
            {
                nbut = 13;
            }
            if (!my.isFormInMdi("frmVibRabPeriod", nbut, this))
            {
                frmVibRabPeriod fr = new frmVibRabPeriod();
                fr.Tag    = nbut;
                fr.DGVKol = Dgv1.SelectedRows;
                my.Nbut   = (int)fr.Tag;
                my.Pform  = this;
                //fr.MdiParent = my.MDIForm;
                fr.ShowDialog();
            }
            MessageBox.Show("Готово!");
        }
Beispiel #2
0
 private void button9_Click(object sender, EventArgs e)
 {
     my.Nbut = 2;
     my.Szap = IdF3.ToString();
     if (!my.isFormInMdi("frmVibRabPeriod", my.Nbut, this))
     {
         frmVibRabPeriod fr = new frmVibRabPeriod();
         fr.Tag   = my.Nbut;
         my.Pform = this;
         //fr.MdiParent = my.MDIForm;
         fr.ShowDialog();
     }
     //MessageBox.Show("Готово!");
 }