private void _tsi_b_Click(MTPA_OrdrActn act) { try { Prof.PlaceOrder( new OrderParams { action = act, category = MTPA_OrdrCtgry.eMTPA_OC_Market, contracts = 1, tif = MTPA_OrdrTimeInForce.eMTPA_TIF_GTC }); } catch (Exception e) { MessageBox.Show(e.Message); } }