private void btnNewOrderOut_Click(object sender, EventArgs e) { var form = new OrderOutWizardForm(); form.CustomerPID = CustomerPID; if (DialogResult.Yes == form.ShowDialog()) { tcMain.SelectedTab = tabOrder; } }
private void btnSell_Click(object sender, EventArgs e) { var form = new OrderOutWizardForm(); var result = form.ShowDialog(); this.initSearch(); this.orderInStaticTableAdapter.Fill(this.farmManageDataSet.OrderInStatic); this.orderOutStaticTableAdapter.Fill(this.farmManageDataSet.OrderOutStatic); this.cowStaticTableAdapter.Fill(this.farmManageDataSet.CowStatic); }