public SecondPageViewModel(MyJsseResponse.RootObjectJSSE selecteJSSEObject)
        {
            _selecteJSSEObject = selecteJSSEObject;
            firstLabel         = selecteJSSEObject.Observer.FullName;
            SecondLabel        = selecteJSSEObject.JSSEEnteredBy;
            SelectedDate       = selecteJSSEObject.CreatedDate;

            var    assembly = typeof(ReadDataViewModel).GetTypeInfo().Assembly;
            Stream stream   = assembly.GetManifestResourceStream("ReadDataFromJson.Regionsdata.json");

            using (var reader = new System.IO.StreamReader(stream))
            {
                var json = reader.ReadToEnd();
                List <RegionsResponceData> data = JsonConvert.DeserializeObject <List <RegionsResponceData> >(json);
                rootObjectSe = data;
            }

            RegionsResponceData obj = new RegionsResponceData();

            obj.RegionName      = selecteJSSEObject.Region;
            obj.Region_ID       = selecteJSSEObject.Region_ID;
            selectedMajorGroup  = obj;
            SelectedPickerTitle = selecteJSSEObject.Region;
            OnPropertyChanged("SelectedMajorGroup");
            SelectedPickerIndex = 3;
        }
Пример #2
0
 public SecondPageViewModel(MyJsseResponse.RootObjectJSSE selecteJSSEObject)
 {
     _selecteJSSEObject = selecteJSSEObject;
     firstLabel         = selecteJSSEObject.Observer.FullName;
     SecondLabel        = selecteJSSEObject.JSSEEnteredBy;
     EntryText          = selecteJSSEObject.Observees[0].FullName;
 }
Пример #3
0
 public SecondPage(MyJsseResponse.RootObjectJSSE selecteJSSEObject)
 {
     InitializeComponent();
     this.BindingContext = new SecondPageViewModel(selecteJSSEObject);
 }