コード例 #1
0
        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);
        }
コード例 #2
0
        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)
                {
                }
            }
        }