예제 #1
0
 private void delButton_Click(object sender, EventArgs e)
 {
     try
     {
         string selecionado = ordersList.SelectedCells[0].Value.ToString();
         int    id          = Int32.Parse(selecionado);
         bankAProxy.deleteOrder(id);
         atualizaLista(bankAProxy.getOrders().ToList());
     }
     catch (Exception exc)
     {
         Console.WriteLine("Exception: " + exc.Message);
         MessageBox.Show("No order selected", "Error");
     }
 }
예제 #2
0
        public ClientForm()
        {
            proxy      = new InterBankOpsClient();
            bankAProxy = new BankAOpsClient();

            InitializeComponent();
            atualizaLista(bankAProxy.getOrders().ToList());
        }