private void bbMinimalProfitSpread_ItemClick(object sender, ItemClickEventArgs e)
        {
            TickerCollection collection = (TickerCollection)this.bbTryArbitrage.Tag;
            ArbitrageInfo    info       = collection.Arbitrage;
            CalculatorForm   form       = new CalculatorForm();

            if (info != null && info.LowestAskTicker != null)
            {
                form.Text      = info.LowestAskTicker.Name;
                form.Amount    = Convert.ToDouble(info.LowestAskTicker.MarketCurrencyBalance);
                form.BuyPrice  = Convert.ToDouble(info.LowestAskTicker.LowestAsk);
                form.SellPrice = Convert.ToDouble(info.LowestAskTicker.HighestBid);
                form.UsdRate   = Convert.ToDouble(info.UsdTicker.Last);
            }
            form.Show();
        }
Beispiel #2
0
 private void biCalculator_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (CalculatorForm form = new CalculatorForm()) {
         form.ShowDialog();
     }
 }