/// <summary>
        /// Default constructor
        /// </summary>
        public WaitingForTestViewModel()
        {
            // Set input data
            Name = new TextEntryViewModel {
                Label = "Imię", OriginalText = IoCClient.Client.Name
            };
            Surname = new TextEntryViewModel {
                Label = "Nazwisko", OriginalText = IoCClient.Client.LastName
            };

            // Listen out for test which will come from server
            IoCClient.TestHost.OnTestReceived += Update;

            // Hook to the events
            Name.ValueChanged    += Name_ValueChanged;
            Surname.ValueChanged += Surname_ValueChanged;
        }
Example #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public WaitingForTestViewModel(TestHost testHost, ClientModel clientModel)
        {
            // Inject DI services
            mTestHost    = testHost;
            mClientModel = clientModel;

            // Set input data
            Name = new TextEntryViewModel {
                Label = "Imię", OriginalText = mClientModel.Name
            };
            Surname = new TextEntryViewModel {
                Label = "Nazwisko", OriginalText = mClientModel.LastName
            };

            // Listen out for test which will come from server
            mTestHost.OnTestReceived += Update;

            // Hook to the events
            Name.ValueChanged    += Name_ValueChanged;
            Surname.ValueChanged += Surname_ValueChanged;
        }