Example #1
0
        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);
        }
Example #2
0
        protected override void OnCreated()
        {
            base.OnCreated();

            using (IDataContextWrapper dataContext = _dataContextLocator())
                GroupName = dataContext.Table <Group>().First(g => g.Id == GroupId).GroupName;

            RefreshClients();
            SelectedClient = ClientsList.FirstOrDefault();
        }