static void testHistoryClient(ServerOps.ServerOpsClient proxy, int IDClient) { Stock[] stocks = proxy.GetAllStocksByClient(IDClient); Console.WriteLine("Stocks from user: " + IDClient); foreach (Stock s in stocks) { Console.WriteLine(s); } }
static void testStocksWaiting(ServerOps.ServerOpsClient proxy) { Stock[] stocks = proxy.GetAllWaitingStock(); Console.WriteLine("Stocks waiting to execute:"); foreach (Stock s in stocks) { Console.WriteLine(s); } }
public MainForm() { proxy = new ServerOps.ServerOpsClient(); InitializeComponent(); cbType.SelectedIndex = 0; cbShareType.Items.AddRange(proxy.GetAllSharesType()); cbShareType.SelectedIndex = 0; cbCurrency.Items.AddRange(proxy.GetAllCurrency()); cbCurrency.SelectedIndex = 0; }