protected override void LoadState() { GroupName = (string)TombstoningContainer.GetValue(TombstoningVariables.GroupAddClientGroupName); RefreshClients(); long id = (long)TombstoningContainer.GetValue(TombstoningVariables.GroupAddClientSelectedClient); SelectedClient = ClientsList.FirstOrDefault(c => c.Id == id); }
protected override void OnCreated() { base.OnCreated(); using (IDataContextWrapper dataContext = _dataContextLocator()) GroupName = dataContext.Table <Group>().First(g => g.Id == GroupId).GroupName; RefreshClients(); SelectedClient = ClientsList.FirstOrDefault(); }