Esempio n. 1
0
        private void buttonX3_Click(object sender, EventArgs e)
        {
            RibbonForm2 Detalis1 = new RibbonForm2();

            this.Opacity    = 0.5;
            Detalis1.idvite = 0;
            Detalis1.ShowDialog();
            this.Opacity = 1;
        }
Esempio n. 2
0
 private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         RibbonForm2 Detalis1 = new RibbonForm2();
         this.Opacity    = 0.5;
         Detalis1.idvite = ClassConvert.Convint(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value);
         Detalis1.ShowDialog();
         this.Opacity = 1;
     }
 }
 private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1)
     {
         RibbonForm2 Bibo = new RibbonForm2();
         Bibo.idvite = Convert.ToInt32(dataGridViewX1.Rows[e.RowIndex].Cells[0].Value);
         if (Bibo.ShowDialog() == System.Windows.Forms.DialogResult.Abort)
         {
             dataGridViewX1.Rows.RemoveAt(e.RowIndex);
         }
         Bibo.Dispose();
     }
 }
Esempio n. 4
0
        private void SerchNameBynameRetu_KeyDown(object sender, KeyEventArgs e)
        {
            if ((e.Control && e.KeyCode == Keys.F) || (e.KeyCode == Keys.Enter))
            {
                NameSrc();
            }

            else if (e.Control && e.KeyCode == Keys.N)
            {
                RibbonForm2 RibbonForm2 = new RibbonForm2();

                RibbonForm2.ShowDialog();
            }
        }