private void PreviousBuildOrder() { BuildOrders.Previous(); string message = BuildOrders.Current?.Title; if (message == null) { message = Strings.Title_NoBuildOrder; } PingTitle(message, 2000); UpdateScrollPosition(); }
public BuildOrderGroup(BuildOrderData buildOrderData) { Author = buildOrderData.Author; Date = buildOrderData.Date; Revision = buildOrderData.Revision; for (int i = 0; i < buildOrderData.GameVersions.Length; i++) { GameVersions.Add(buildOrderData.GameVersions[i]); } for (int i = 0; i < buildOrderData.BuildOrders.Length; i++) { BuildOrders.Add(new DynamicBuildOrder(buildOrderData.BuildOrders[i])); } }
protected override async System.Threading.Tasks.Task OnLoadAsync(int Model) { DateTime start, stop; start = DateTime.Now; await ProduceOrders.LoadAsync(); await HarvestOrders.LoadAsync(); await BuildOrders.LoadAsync(); await Cells.LoadAsync(); await Workers.LoadAsync(); await Buildings.LoadAsync(); await MapItems.LoadAsync(Cells.Union <ILocationViewModel>(Buildings).Union(Workers)); stop = DateTime.Now; LoadDuration = stop - start; }
public async void SetDefaultBO() { if (Settings.LastBO == null) { BuildOrders.SetCurrentBuildOrder(BuildOrders.List[0]); } else { var bo = BuildOrders.List.FirstOrDefault((x) => x.Title == Settings.LastBO); if (bo == null) { BuildOrders.SetCurrentBuildOrder(BuildOrders.List[0]); } else { BuildOrders.SetCurrentBuildOrder(bo); } } if (BuildOrders.Current != null) { PingTitle(BuildOrders.Current.Title, 2000); } }