コード例 #1
0
 public ConsumableUpdates(ConsumableStocksDetails csd, ConsumableModel cm, string consumeID, string recID)
 {
     consumableStockDetWindow = csd;
     consumeStockModel        = cm;
     consumableID             = consumeID;
     recordID = recID;
     InitializeComponent();
 }
コード例 #2
0
        private void btnViewConsumableDetails_Click(object sender, RoutedEventArgs e)
        {
            ConsumableModel consumableModel = dgvConsumableStocks.SelectedItem as ConsumableModel;

            if (consumableModel != null)
            {
                ConsumableStocksDetails csd = new ConsumableStocksDetails(this, consumableModel);
                csd.ShowDialog();
            }
            else
            {
                MessageBox.Show("No record selected!");
            }
        }
コード例 #3
0
 public ConsumableUpdates(ConsumableStocksDetails csd, ConsumableModel cm)
 {
     consumableStockDetWindow = csd;
     consumeStockModel        = cm;
     InitializeComponent();
 }