コード例 #1
0
 private void newProductToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _home             = null;
     _category         = null;
     _customer         = null;
     _supplier         = null;
     _purchase         = null;
     _sales            = null;
     _reportOnPurchase = null;
     _reportOnSales    = null;
     _purchaseShow     = null;
     _salesViewUi      = null;
     _stockInUi        = null;
     if (_product == null)
     {
         _product = new ProductUI();
         OpenForm(_product);
     }
 }
コード例 #2
0
 private void stockInToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //MessageBox.Show(@"This functionality does not available at this moment", @"Error", MessageBoxButtons.OK,
     //    MessageBoxIcon.Error);
     _home             = null;
     _category         = null;
     _product          = null;
     _customer         = null;
     _supplier         = null;
     _purchase         = null;
     _sales            = null;
     _reportOnPurchase = null;
     _reportOnSales    = null;
     _purchaseShow     = null;
     _salesViewUi      = null;
     if (_stockInUi == null)
     {
         _stockInUi = new StockInUI();
         OpenForm(_stockInUi);
     }
 }