Ejemplo n.º 1
0
        public ViewModelLocator()
        {
            ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
            DCR = new DataConfigResponse();

            SimpleIoc.Default.Register <MainViewModel>();
            SimpleIoc.Default.Register <ViewModelConfig>();
        }
Ejemplo n.º 2
0
 public void SET_VIEWCONFIG(DataConfigResponse DCR)
 {
     Messenger.Default.Send <NotificationMessage>(new NotificationMessage("CONFIGVIEWMODEL RECIEVE DCR"));
     API      = DCR._configArray[0];
     API_KEY  = DCR._configArray[1];
     INTERVAL = DCR._configArray[2];
     DB       = DCR._configArray[3];
 }
Ejemplo n.º 3
0
        private void SendPacket()
        {
            DataConfigResponse DCR = new DataConfigResponse();

            DCR._configArray = ConfigsDataPacket();

            Messenger.Default.Send <DataConfigResponse>(DCR);

            DCR = null;
        }