public FormAddOrderDetail(Order ord, OrderService os, FormOrderDetail fm)
 {
     InitializeComponent();
     this.ord = ord;
     this.os  = os;
     this.fm  = fm;
 }
Пример #2
0
 private void ViewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (dataGridView1.SelectedRows.Count == 1)
         {
             Order           ord  = dataGridView1.SelectedRows[0].DataBoundItem as Order;
             FormOrderDetail fmOD = new FormOrderDetail(this, ord.Id);
             fmOD.Show();
         }
         else
         {
             throw new ApplicationException("尚未选择项目或选择了多行");
         }
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }
Пример #3
0
 public FormAddOrderDetail(Order ord, FormOrderDetail fm)
 {
     InitializeComponent();
     this.ord = ord;
     this.fm  = fm;
 }