Exemple #1
0
 private void newOrderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FCainzOrderD m = new FCainzOrderD();
     PublicTools.RecoverFormSize(m);
     m.StartPosition = FormStartPosition.CenterParent;
     this.Visible = false;
     m.ShowDialog();
     PublicTools.RecoverFormSize(this);
     this.Visible = true;
     btnSearch_Click(null, null);
 }
Exemple #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     var order = (entity.CainzOrder)cainzOrderBindingSource.Current;
     if (order != null)
     {
         FCainzOrderD m = new FCainzOrderD(order);
         PublicTools.RecoverFormSize(m);
         this.Visible = false;
         Application.DoEvents();
         m.ShowDialog();
         PublicTools.RecoverFormSize(this);
         this.Visible = true;
     }
     btnSearch_Click(null, null);
 }