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);
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        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";
            }
        }