private void btnAdd_Click(object sender, EventArgs e) { FormCreateStockoutPlan createStockoutPlan = new FormCreateStockoutPlan(); createStockoutPlan.StartPosition = FormStartPosition.CenterScreen; createStockoutPlan.f = this; createStockoutPlan.ShowDialog(); }
private void gridControl1_MouseDoubleClick(object sender, MouseEventArgs e) { StockoutPlanData data = gridView1.GetFocusedRow() as StockoutPlanData; FormCreateStockoutPlan createStockoutPlan = new FormCreateStockoutPlan(); createStockoutPlan.planID = data.planID; createStockoutPlan.note = data.note; createStockoutPlan.poNumber = data.poNumber; createStockoutPlan.StartPosition = FormStartPosition.CenterScreen; createStockoutPlan.Show(); }