public void GettingRunningStrategy() { strategylist = new List <StrategyClass> { }; for (int p = 0; p < TotalNumberOfStrategy; p++) { StrategyClass sc = new StrategyClass(); string script_prefix = GetMorningOrNightVars(1);//2 return total strat number, 1 return strategy name prefix morning_strat or night_strat sc.strategyid = p; sc.strategypathname = System.Configuration.ConfigurationManager.AppSettings.Get(script_prefix + p); sc.strategyinterval = Convert.ToInt16(System.Configuration.ConfigurationManager.AppSettings.Get(script_prefix + p + "_interval")); strategylist.Add(sc); listInformation.Items.Add("StrategyName:" + sc.strategypathname.Split('\\').Last() + "," + " Interval:" + sc.strategyinterval + "min");//Spacing not working, debug later, util.Space(20 - sc.strategypathname.Split('\\').Last().Length) } listInformation.SelectedIndex = listInformation.Items.Count - 1; }
public override int GetHashCode() => unchecked (StrategyClass.GetHashCode() + ServedType.GetHashCode() + DeclaredFor.GetHashCode());
public void SetSortStrategy(StrategyClass sortstrategy) { this._sortstrategy = sortstrategy; }