private void C_SelectedClientInfoEvent1(object sender, SelectedClientInfoEventArgs e) { var fullClient = DbMs.GetClientFullInfo((Set10ExchangeLoyClient)e.Client.Clone()); fullClient.Ammounts = new ObservableCollection <Set10ExchangeLoyAmmounts>(DbPg.GetBonus(fullClient.Client)); var currentClient = new ClientInfoTabItemViewModel(fullClient); AddItem(currentClient); }
public void Go() { var dbConnection = DbPg.GetConnection(); var dbMsConnection = DbMs.GetConnection(); var clients = DbMs.AllChangedClients(); foreach (var cli in clients) { var kit = DbMs.GetClientFullInfo(cli, dbMsConnection); try { Sync(kit, dbConnection); DbMs.UpdateClientKitIsLoadToSet10(cli.Uid, true); } catch (Exception) { } } }