Ejemplo n.º 1
0
 public void CMDDeleteInstrument(CCmdDataDeleteInstrument deleteInstrument)
 {
     GetDBSrource(deleteInstrument.ServerId).MySQLConnector.ExecuteProcedure("transact_delete_instrument",
                                                                             "in_instrument", deleteInstrument.Instrument,
                                                                             "in_stock_exch_id", deleteInstrument.StockExchId
                                                                             );
 }
Ejemplo n.º 2
0
        private void MenuItem_Click_DeleteInstrument(object sender, RoutedEventArgs e)
        {
            int ind = DataGridInstruments.SelectedIndex;

            if (ind < 0)
            {
                return;
            }

            VMInstrument instrData = (VMInstrument)DataGridInstruments.Items[ind];


            CCmdDataDeleteInstrument cmd = new CCmdDataDeleteInstrument
            {
                Instrument  = instrData.instrument,
                StockExchId = instrData.StockExchId,
                ServerId    = instrData.ServerId
            };

            CCommands.CmdDeleteInstrument.Execute(cmd, this);
        }