public Form2(MainStrategy arg) { context = TaskScheduler.FromCurrentSynchronizationContext(); mainstratagy = arg; profit = new ProfitCalc(arg, 0.1m); BotAi = new II(arg); InitializeComponent(); }
public decimal GetProfit(decimal quantity = 0) { if (quantity == 0) { return(profit.Profit); } else { var prof = new ProfitCalc(mn, quantity); return(prof.Profit); } }
public II(MainStrategy arg) { mn = arg; profit = new ProfitCalc(mn); }