Пример #1
0
 public LoginPage()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     uaw = new UserAgreementWindow();
     downloading_timer = new DispatcherTimer();
     downloading_timer.Interval = TimeSpan.FromSeconds(60);
     downloading_timer.Tick += new EventHandler(downloading_timer_Tick);
     NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(NetworkChange_NetworkAddressChanged);
     Application.Current.CheckAndDownloadUpdateCompleted += new CheckAndDownloadUpdateCompletedEventHandler(Current_CheckAndDownloadUpdateCompleted);
     srv.ValidateLoginCompleted += new EventHandler<ValidateLoginCompletedEventArgs>(srv_ValidateLoginCompleted);
     srv.GetLotteryTypeCompleted += new EventHandler<GetLotteryTypeCompletedEventArgs>(srv_GetLotteryTypeCompleted);
     srv.GetOverAllCfgCompleted += new EventHandler<GetOverAllCfgCompletedEventArgs>(srv_GetOverAllCfgCompleted);
     srv.GetPlayTypeInfoCompleted += new EventHandler<GetPlayTypeInfoCompletedEventArgs>(srv_GetPlayTypeInfoCompleted);
     srv.GetPlayTypeNumCompleted += new EventHandler<GetPlayTypeNumCompletedEventArgs>(srv_GetPlayTypeNumCompleted);
     srv.GetPlayTypeRadioCompleted += new EventHandler<GetPlayTypeRadioCompletedEventArgs>(srv_GetPlayTypeRadioCompleted);
     srv.GetVersionCompleted += new EventHandler<GetVersionCompletedEventArgs>(srv_GetVersionCompleted);
     uaw.Closed += new EventHandler(uaw_Closed);
     //界面初始化事件
     this.Loaded += new RoutedEventHandler(LoginPage_Loaded);        //按钮点击事件
     InstallButton.Click += InstClick;
     //Application.InstallStateChanged 事件
     //在 InstallState 属性值更改时发生。
     Application.Current.InstallStateChanged += OnInstallStateChanged;
     this.lbVer.Text = Assembly.GetExecutingAssembly().FullName.Split(',')[1].Trim().Replace("Version=", "Ver ");
     this.KeyDown += new KeyEventHandler(LoginPage_KeyDown);
 }
Пример #2
0
 public LowerList()
 {
     InitializeComponent();
     PageSum = new LowerListData();
     PageSum.UserID = "本页合计";
     PageSum.IsOnline = -1;
     TotalSum = new LowerListData();
     TotalSum.UserID = "总合计";
     TotalSum.IsOnline = -1;
     BindedLst = new List<long>();
     srv_UserList = WcfProxy.GetProxy;
     srv_UserList.GetLowerListDataCompleted += new EventHandler<LotterySrv.GetLowerListDataCompletedEventArgs>(srv_UserList_GetLowerListDataCompleted);
     srv_UserList.GetLowerListDataByUIDCompleted += new EventHandler<GetLowerListDataByUIDCompletedEventArgs>(srv_UserList_GetLowerListDataByUIDCompleted);
     BindLowerList(user.ID);
     TextBlock txtb = new TextBlock()
     {
         Text = "本级",
         Style = Resources["TextBlockStyle1"] as Style,
         Cursor=Cursors.Hand
     };
     if (user.RoleID == 3)
         btAddLower.Visibility = Visibility.Collapsed;
     txtb.Tag = user.ID;
     BindedLst.Add(user.ID);
     txtb.MouseLeftButtonDown += new MouseButtonEventHandler(TextBlock_MouseLeftButtonDown);
     NavMenu.Children.Add(txtb);
 }
Пример #3
0
 public ProfitList()
 {
     InitializeComponent();
     datePickerStart.SelectedDate = DateTime.Now;
     datePickerEnd.SelectedDate = DateTime.Now;
     BindedLst = new List<long>();
     RPageSum = new ProfitReport();
     RPageSum.UserID = "本页合计";
     RTotalSum = new ProfitReport();
     RTotalSum.UserID = "总合计";
     srv_Profit = WcfProxy.GetProxy;
     rbtLists.IsChecked = true;
     srv_Profit.GetProfitReportCompleted += new EventHandler<GetProfitReportCompletedEventArgs>(srv_Profit_GetProfitReportCompleted);
     srv_Profit.GetProfitDetailCompleted += new EventHandler<GetProfitDetailCompletedEventArgs>(srv_Profit_GetProfitDetailCompleted);
     TextBlock txtb = new TextBlock()
     {
         Text = "本级",
         Style = Resources["TextBlockStyle1"] as Style,
         Cursor = Cursors.Hand
     };
     txtb.Tag = user.ID;
     txtb.MouseLeftButtonDown += new MouseButtonEventHandler(txtb_MouseLeftButtonDown);
     NavMenu.Children.Add(txtb);
     cbxProfitType.ItemsSource = Constant.ProfitTypeInfos;
     cbxProfitType.SelectedIndex = 0;
     cbxProfitType.SelectionChanged += new SelectionChangedEventHandler(cbxProfitType_SelectionChanged);
     BindProfitReportList(user.ID);
     BindedLst.Add(user.ID);
     BindProfitDetailList(user.UserId);
 }
Пример #4
0
 public DealInfoWindow(Int64 RecordID)
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     srv.GetOrderContentCompleted += new EventHandler<LotterySrv.GetOrderContentCompletedEventArgs>(srv_GetOrderContentCompleted);
     srv.GetOrderContentAsync(RecordID);
     border_Processing.Visibility = Visibility.Visible;
 }
Пример #5
0
 public ZSSC()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     srv.GetPlayTypeCompleted += new EventHandler<GetPlayTypeCompletedEventArgs>(srv_GetPlayTypeCompleted);
     srv.GetPlayTypeRadioCompleted += new EventHandler<GetPlayTypeRadioCompletedEventArgs>(srv_GetPlayTypeRadioCompleted);
     srv.GetPlayTypeNumCompleted += new EventHandler<GetPlayTypeNumCompletedEventArgs>(srv_GetPlayTypeNumCompleted);
     this.Loaded += new RoutedEventHandler(ZSSC_Loaded);
 }
Пример #6
0
 public MainBet()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     this.gridLottery.LoadingRow += new EventHandler<DataGridRowEventArgs>(gridLottery_LoadingRow);
     srv.GetBetRecordCompleted += new EventHandler<GetBetRecordCompletedEventArgs>(srv_GetBetRecordCompleted);
     srv.GetTopTenWinInfoCompleted += new EventHandler<GetTopTenWinInfoCompletedEventArgs>(srv_GetTopTenWinInfoCompleted);
     this.Loaded += new RoutedEventHandler(MainBet_Loaded);
 }
Пример #7
0
 public LowerWindow()
 {
     InitializeComponent();
     lowerInfo = new LowerInfo();
     srv = WcfProxy.GetProxy;
     srv.GetOverAllCfgCompleted += new EventHandler<GetOverAllCfgCompletedEventArgs>(srv_GetOverAllCfgCompleted);
     srv.AddLowerInfoCompleted += new EventHandler<AddLowerInfoCompletedEventArgs>(srv_AddLowerInfoCompleted);
     srv.EditLowerInfoCompleted += new EventHandler<EditLowerInfoCompletedEventArgs>(srv_EditLowerInfoCompleted);
 }
Пример #8
0
 public N3D()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     srv.GetPlayTypeCompleted += new EventHandler<GetPlayTypeCompletedEventArgs>(srv_GetPlayTypeCompleted);
     srv.GetPlayTypeRadioCompleted += new EventHandler<GetPlayTypeRadioCompletedEventArgs>(srv_GetPlayTypeRadioCompleted);
     srv.GetPlayTypeNumCompleted += new EventHandler<GetPlayTypeNumCompletedEventArgs>(srv_GetPlayTypeNumCompleted);
     srv.GetOddsCompleted += new EventHandler<GetOddsCompletedEventArgs>(srv_GetOddsCompleted);
     srv.GetCurrenIssuNoCompleted += new EventHandler<GetCurrenIssuNoCompletedEventArgs>(srv_GetCurrenIssuNoCompleted);
     this.Loaded += new RoutedEventHandler(N3D_Loaded);
 }
Пример #9
0
 public MoneyWindow()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     srv.ValidateBankPasswordCompleted += new EventHandler<ValidateBankPasswordCompletedEventArgs>(srv_ValidateBankPasswordCompleted);
     srv.GetCarrierBankInfoCompleted += new EventHandler<GetCarrierBankInfoCompletedEventArgs>(srv_GetCarrierBankInfoCompleted);
     srv.GetCapitalInfoCompleted += new EventHandler<GetCapitalInfoCompletedEventArgs>(srv_GetCapitalInfoCompleted);
     this.lbMinMoney.Text = string.Format("最小提现金额{0}元", Constant.MinOutMoneyOneTime);
     this.lbMoneyTimes.Text = string.Format("每日提现最多{0}次,最多{1}元", Constant.MaxOutMoneyTimesOneDay, Constant.MaxOutMoneyOneDay);
     srv.GetCarrierBankInfoCompleted += new EventHandler<GetCarrierBankInfoCompletedEventArgs>(srv_GetCarrierBankInfoCompleted);
     timerShowInvalidTime = new DispatcherTimer();
     timerShowInvalidTime.Tick += new EventHandler(timerShowInvalidTime_Tick);
     rbtMoneyOut.IsChecked = true;
 }
 public KaijiangContainer()
 {
     InitializeComponent();
     _srv = WcfProxy.GetProxy;
     timer_kaijiang.Interval = TimeSpan.FromSeconds(1);
     timer_kaijiang.Tick += new EventHandler(timer_kaijiang_Tick);
     MainPage.kaijiang_timer = timer_kaijiang;
     _srv.GetCurrenIssuNoCompleted += new EventHandler<GetCurrenIssuNoCompletedEventArgs>(_srv_GetCurrenIssuNoCompleted);
     _srv.GetLastLotteryNumCompleted += new EventHandler<GetLastLotteryNumCompletedEventArgs>(_srv_GetLastLotteryNumCompleted);
     _srv.GetRecentlyLotteryNumCompleted += new EventHandler<GetRecentlyLotteryNumCompletedEventArgs>(_srv_GetRecentlyLotteryNumCompleted);
     this.LotteryNumsGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(LotteryNumsGrid_LoadingRow);
     _srv.GetPfLoss_YKCompleted += _srvProxy_GetPfLoss_YKCompleted;
     _srv.GetOddsCompleted += srv_GetOddsCompleted;
 }
Пример #11
0
 public ChgPwd()
 {
     InitializeComponent();
     srv = WcfProxy.GetProxy;
     srv.GetBankInfoCompleted += new EventHandler<GetBankInfoCompletedEventArgs>(srv_GetBankInfoCompleted);
     srv.ValidateLoginCompleted += new EventHandler<ValidateLoginCompletedEventArgs>(srv_ValidateLoginCompleted);
     srv.ValidateBankPasswordCompleted += new EventHandler<ValidateBankPasswordCompletedEventArgs>(srv_ValidateBankPasswordCompleted);
     srv.ModifyPasswordCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(srv_ModifyPasswordCompleted);
     srv.ModifyBankPwdCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(srv_ModifyBankPwdCompleted);
     srv.SetBankInfoCompleted += new EventHandler<SetBankInfoCompletedEventArgs>(srv_SetBankInfoCompleted);
     rbtChgPwd.IsChecked = true;
     user = App.Session[Constant.USERINFO_SESSION] as User;
     BindBankInfo();
 }
Пример #12
0
 public MainPage()
 {
     InitializeComponent();
     PersonalControl = this.gridUserInfo;
     _layRoot = this.LayoutRoot;
     CreateVodio();
     _srvProxy = WcfProxy.GetProxy;
     RefreshTimer = new DispatcherTimer();
     RefreshTimer.Interval = TimeSpan.FromSeconds(40);
     RefreshTimer.Tick += new EventHandler(RefreshTimer_Tick);
     this.Loaded += new RoutedEventHandler(MainPage_Loaded);
     LayoutRoot.SizeChanged += new SizeChangedEventHandler(LayoutRoot_SizeChanged);
     _srvProxy.GetBankInfoCompleted += new EventHandler<GetBankInfoCompletedEventArgs>(_srvProxy_GetBankInfoCompleted);
     _srvProxy.GetLotteryTypeCompleted += new EventHandler<GetLotteryTypeCompletedEventArgs>(_srvProxy_GetLotteryTypeCompleted);
     //_srvProxy.GetPfLoss_YKCompleted += new EventHandler<GetPfLoss_YKCompletedEventArgs>(_srvProxy_GetPfLoss_YKCompleted);
     _srvProxy.GetPfLoss_CZandTXCompleted += new EventHandler<GetPfLoss_CZandTXCompletedEventArgs>(_srvProxy_GetPfLoss_CZandTXCompleted);
     _srvProxy.GetPfLoss_TX_PctCompleted += new EventHandler<GetPfLoss_TX_PctCompletedEventArgs>(_srvProxy_GetPfLoss_TX_PctCompleted);
     _srvProxy.GetOverAllCfgCompleted += new EventHandler<GetOverAllCfgCompletedEventArgs>(_srvProxy_GetOverAllCfgCompleted);
     //_srvProxy.GetRejectOrderIDCompleted += new EventHandler<GetRejectOrderIDCompletedEventArgs>(_srvProxy_GetRejectOrderIDCompleted);
     RefreshTimer.Start();
     Connection();
 }
Пример #13
0
 public GameRecord()
 {
     InitializeComponent();
     rbtLists.IsChecked = true;
     datePickerStart.SelectedDate = DateTime.Now;
     datePickerEnd.SelectedDate = DateTime.Now;
     BindedLst = new List<long>();
     RPageSum = new StatReport();
     RPageSum.UserID = "本页合计";
     RTotalSum = new StatReport();
     RTotalSum.UserID = "总合计";
     DPageSum = new ReportDetail();
     DPageSum.RecordID = "本页合计";
     DPageSum.IsWin = -1;
     DPageSum.Direction = -1;
     DPageSum.ResultStatus = -1;
     DTotalSum = new ReportDetail();
     DTotalSum.RecordID = "总合计";
     DTotalSum.IsWin = -1;
     DTotalSum.Direction = -1;
     DTotalSum.ResultStatus = -1;
     srv_GameRecord = WcfProxy.GetProxy;
     srv_GameRecord.GetStatReportCompleted += new EventHandler<GetStatReportCompletedEventArgs>(srv_GameRecord_GetStatReportCompleted);
     srv_GameRecord.GetReportDetailCompleted += new EventHandler<GetReportDetailCompletedEventArgs>(srv_GameRecord_GetReportDetailCompleted);
     TextBlock txtb = new TextBlock()
     {
         Text = "本级",
         Style = Resources["TextBlockStyle1"] as Style,
         Cursor = Cursors.Hand
     };
     txtb.Tag = user.ID;
     BindedLst.Add(user.ID);
     txtb.MouseLeftButtonDown += new MouseButtonEventHandler(txtb_MouseLeftButtonDown);
     NavMenu.Children.Add(txtb);
     BindReportDetailList(user.UserId);
 }