protected virtual void ValidateMode(string moduleType, PerformanceViewMode mode) { if (moduleType != Modules.Dashboard) { throw new NotImplementedException(); } }
protected override void ValidateMode(string moduleType, PerformanceViewMode mode) { if (moduleType == Modules.Products || moduleType == Modules.Sectors || moduleType == Modules.Regions) { return; } throw new NotImplementedException(); }
protected PerformanceAreaChartViewModel(string moduleType, PerformanceViewMode mode) { ValidateMode(moduleType, mode); ModuleType = moduleType; Mode = mode; if (Mode == PerformanceViewMode.Daily) { InitializeInDailyMode(); } else { InitializeInMonthlyMode(); } SelectedDate = DateTime.Now; UpdateVolumeLables(); }
protected PerformanceBarChartViewModel(string moduleType, PerformanceViewMode mode) : base(moduleType, mode) { }
public static new PerformanceBarChartViewModel Create(string moduleType, PerformanceViewMode mode) { return(ViewModelSource.Create(() => new PerformanceBarChartViewModel(moduleType, mode))); }