Example #1
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     if (bdgFreights.Current != null)
     {
         FreightForm ff = new FreightForm((freight)bdgFreights.Current);
         desk.AddTab(ff, "Edição de Frete", true);
     }
 }
Example #2
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     if (bdgFreights.Current != null)
     {
         FreightForm ff = new FreightForm((freight)bdgFreights.Current);
         desk.AddTab(ff, "Edição de Frete", true);
     }
 }
Example #3
0
 private void gridControl_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (bdgFreights.Current != null)
         {
             FreightForm ff = new FreightForm((freight)bdgFreights.Current);
             desk.AddTab(ff, "Edição de Frete", true);
         }
         this.gridControl.KeyDown -= new System.Windows.Forms.KeyEventHandler(this.gridControl_KeyDown);
     }
 }
Example #4
0
 private void btnNewFreight_ItemClick(object sender, ItemClickEventArgs e)
 {
     FreightForm ff = new FreightForm(null);
     AddTab(ff, "Novo Frete", false);
 }