private void OpenStockInForm() { if (stockInForm == null) { //todo use datasource for stockin to help updating data stockInForm = new StockInForm(); stockInForm.ShowDialog(); stockInForm = null; InfoManager.stockInMode = false; } else { MessageBox.Show("กำลังจดเข้า stock", "Currently doing stock in", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public void setStockInForm(StockInForm stockInForm) { this.stockInForm = stockInForm; }