public ViewModelLocator() { ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); DCR = new DataConfigResponse(); SimpleIoc.Default.Register <MainViewModel>(); SimpleIoc.Default.Register <ViewModelConfig>(); }
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]; }
private void SendPacket() { DataConfigResponse DCR = new DataConfigResponse(); DCR._configArray = ConfigsDataPacket(); Messenger.Default.Send <DataConfigResponse>(DCR); DCR = null; }