public StockUpdate(string SNo) {//修改 InitializeComponent(); currentSelectedGID = SNo; _instance = this; isAdd = false; }
public StockUpdate() {//新增 InitializeComponent(); currentSelectedGID = null; isAdd = true; _instance = this; }
private void AddBtn_Click(object sender, EventArgs e) { StockUpdate stockUpdate = new StockUpdate(); stockUpdate.Show(); }
private void UpdateBtn_Click(object sender, EventArgs e) { StockUpdate stockUpdate = new StockUpdate(currentSelectedSNo); stockUpdate.Show(); }