protected string GetValidationError(string propertyName) { if (Array.IndexOf(ValidatedProperties, propertyName) < 0) { return(null); } string error = null; switch (propertyName) { case "Passo": { error = InputCheck.MaggioreDiZero(Passo.ToString()); } break; default: Debug.Fail("Unexpected property : " + propertyName); break; } return(error); }
public void Anterior() { if (CurrentView != "InicioConfiguracao") { CurrentView = GetPreviewiousView(); //EventAggregator.Publish(new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); //EventAggregationProvider.Aggregator.Publish<AppMessage>(new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); EventAggregationProvider.Aggregator.Publish( new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); Passo -= 1; Progresso = "Passo: " + Passo.ToString(CultureInfo.InvariantCulture) + " de 4"; } //ActivateItem(Items.SingleOrDefault(p => p.DisplayName == CurrentView)); }
public void Seguinte() { //if (CurrentView == "FimConfiguracao") return; CurrentView = GetNextView(); //ActivateItem(Items.SingleOrDefault(p => p.DisplayName == CurrentView)); //EventAggregator.Publish(new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); //EventAggregationProvider.Aggregator.Publish<AppMessage>(new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); EventAggregationProvider.Aggregator.Publish( new AppMessage((AppMessageType)Enum.Parse(typeof(AppMessageType), CurrentView))); if ((CurrentView != "InicioConfiguracao") && (CurrentView != "ListaTerminais")) { Passo += 1; Progresso = "Passo: " + Passo.ToString(CultureInfo.InvariantCulture) + " de 4"; } }