예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #4
0
 private void btnNewFreight_ItemClick(object sender, ItemClickEventArgs e)
 {
     FreightForm ff = new FreightForm(null);
     AddTab(ff, "Novo Frete", false);
 }