public void SwitchTimeSpans(TimeSpans span) { AddTimeSpanButton.Trigger(); TimeManager.FlashPause(); ViewButton.SelectItem(TimeSpanMenuItemDictionary[span]); //CurrentViewType = viewType; }
public void SwitchViewType(EnergyViewType viewType) { ViewButton.Trigger(); TimeManager.FlashPause(); ViewButton.SelectItem(MenuItemDictionary[viewType]); //CurrentViewType = viewType; }