예제 #1
0
        private void MainActionPage_PageUnload(object sender, PageChangeEventArgs e)
        {
            if (e.PageToBeLoaded == Program.PageAWelcome)
            {
                InstallationInfo.ProgramMode = ProgramMode.None;
                return;
            }

            if (__installRad.Checked)
            {
                InstallationInfo.ProgramMode = ProgramMode.InstallPackage;
            }
            else if (__uninstallRad.Checked)
            {
                InstallationInfo.ProgramMode = ProgramMode.UninstallPackage;
            }
            else if (__toolsRad.Checked)
            {
                InstallationInfo.ProgramMode = ProgramMode.InstallTools;
            }
            else
            {
                InstallationInfo.ProgramMode = ProgramMode.None;
            }
        }
예제 #2
0
            public virtual void OnActivePageChanged()
            {
                PageChangeEventArgs e = new PageChangeEventArgs {
                };

                if (ActivePage != null && ActivePageChanged != null)
                {
                    ActivePageChanged(this, e);
                }
                ;
            }
예제 #3
0
        private void InstallationOptionsPage_PageUnload(object sender, PageChangeEventArgs e)
        {
            if (e.PageToBeLoaded == Program.PageCGInstalling)
            {
                if (__i386.Checked)
                {
                    String i386Path = __i386Path.Text;
                    if (!ValidateCDImagePath(i386Path))
                    {
                        e.Cancel = true;

                        MessageBox.Show(this, InstallerResources.GetString("C_F_pathInvalidI386"), "Anolis Installer", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);

                        return;
                    }
                }

                if (__backup.Checked)
                {
                    String backupPath = __backupPath.Text;
                    if (backupPath.Length == 0 || !Path.IsPathRooted(backupPath))
                    {
                        e.Cancel = true;

                        MessageBox.Show(this, InstallerResources.GetString("C_F_pathInvalidBackup"), "Anolis Installer", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);

                        return;
                    }

                    DirectoryInfo dir = new DirectoryInfo(backupPath);

                    if (dir.Exists && !dir.IsEmpty())
                    {
                        e.Cancel = true;

                        MessageBox.Show(this, InstallerResources.GetString("C_F_pathExistsBackup"), "Anolis Installer", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);

                        return;
                    }
                }

                PackageInfo.BackupPath = __backup.Checked ? __backupPath.Text : null;

                PackageInfo.I386Install = __i386.Checked;
                if (__i386.Checked)
                {
                    PackageInfo.I386Directory = new System.IO.DirectoryInfo(__i386Path.Text);
                }
            }

            WizardForm.NextText = _oldNextText;
        }
 /// <summary>
 /// 分页点击
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void PagerControl1_PageIndexChanged(object sender, PageChangeEventArgs e)
 {
     try
     {
         thisGridParma.PageIndex = e.PageIndex;
         thisGridParma.PageSize  = e.PageSize;
         LoadData();
     }
     catch (Exception ex)
     {
         (this.Page as BasePage).AjaxAlert(ex);
     }
 }
예제 #5
0
        private void pbBar_PageChanging(object sender, PageChangeEventArgs e)
        {
            try
            {
                DataCollectionResponse <Order> data = null;
                if (this.currentQueryType == QUERY_TYPE_ID)
                {
                    data = this.orderService.GetById(e.GetParameter <string>("id"));
                }
                else if (this.currentQueryType == QUERY_TYPE_OTHER)
                {
                    data = ServiceContainer.GetService <OrderService>().GetByAll(e.GetParameter <string>("PopBuyerId"),
                                                                                 e.GetParameter <string>("ReceiverMobile"), e.GetParameter <string>("ReceiverName"), e.GetParameter <string>("ReceiverAddress"),
                                                                                 e.GetParameter <DateTime>("StartTime"), e.GetParameter <DateTime>("EndTime"), e.GetParameter <string>("DeliveryCompany"),
                                                                                 e.GetParameter <string>("DeliveryNumber"), e.GetParameter <OrderState>("OrderState"), PopPayType.None, e.GetParameter <string>("Vendor"),
                                                                                 e.GetParameter <string>("Number"), e.GetParameter <string>("Size"), e.GetParameter <ColorFlag[]>("Flags"), e.GetParameter <int>("ParseResult"),
                                                                                 e.GetParameter <string>("SellerComment"), e.GetParameter <long>("ShopId"), e.GetParameter <OrderCreateType>("CreateType"), e.GetParameter <OrderType>("Type"), e.GetParameter <string>("Shipper"),
                                                                                 e.CurrentPage - 1, e.PageSize);
                }

                this.pbBar.Total        = data.Total;
                this.pbBar.CurrentCount = data.Datas.Count;
                this.pbBar.TitleMessage = "当前页金额:" + data.Datas.Select(obj => obj.PopSellerGetMoney).Sum();
                var ordervms = data.Datas.Select(new Func <Order, OrderViewModel>(obj => new OrderViewModel(obj))).ToArray();
                this.lstItems.ItemsSource = ordervms;
                foreach (var item in ordervms)
                {
                    if (item.Source.Type == OrderType.SHUA)
                    {
                        item.Background = Brushes.Yellow;
                    }
                    else
                    {
                        item.Background = new SolidColorBrush(new Color {
                            ScA = 1, ScR = 0xDB, ScG = 0xEA, ScB = 0xF9
                        });
                    }
                }
                if (ordervms.Length > 0)
                {
                    this.lstItems.ScrollIntoView(ordervms[0]);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
            }
        }
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     ShoveGridPager pager = (ShoveGridPager)Sender;
     if (pager.ID == "gPager")
     {
         this.hdCurDiv.Value = "divMyFollowSchemes";
         this.BindData();
     }
     else if (pager.ID == "gPagerSetFollowScheme")
     {
         this.hdCurDiv.Value = "divSetMyFollowSchemes";
         this.BindDataForFriendFollowScheme();
     }
 }
예제 #7
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        ShoveGridPager pager = (ShoveGridPager)Sender;

        if (pager.ID == "gPager")
        {
            this.hdCurDiv.Value = "divMyFollowSchemes";
            this.BindData();
        }
        else if (pager.ID == "gPagerSetFollowScheme")
        {
            this.hdCurDiv.Value = "divSetMyFollowSchemes";
            this.BindDataForFriendFollowScheme();
        }
    }
예제 #8
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        ShoveGridPager pager = (ShoveGridPager)Sender;

        if (pager.ID == "gPagerHistory")
        {
            this.hdCurDiv.Value = "divHistory";
            this.BindHistoryData();
        }
        else if (pager.ID == "gPager_Reward")
        {
            this.hdCurDiv.Value = "divReward";
            this.BindDataReward();
        }
    }
예제 #9
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        string iD = ((ShoveGridPager)Sender).ID;

        if (iD != null)
        {
            if (!(iD == "gPager"))
            {
                if (!(iD == "gPagerHistory"))
                {
                    if (!(iD == "gPagerReward"))
                    {
                        if (!(iD == "gPagerUserPay"))
                        {
                            if (!(iD == "gPagergDistills"))
                            {
                                if (iD == "gPagerScoring")
                                {
                                    this.hdCurDiv.Value = "divScoring";
                                    this.BindScoring();
                                }
                                return;
                            }
                            this.hdCurDiv.Value = "divUserDistills";
                            this.BindDistills();
                            return;
                        }
                        this.hdCurDiv.Value = "divUserPay";
                        this.BindUserPayData();
                        return;
                    }
                    this.hdCurDiv.Value = "divReward";
                    this.BindRewardData();
                    return;
                }
            }
            else
            {
                this.hdCurDiv.Value = "divAccountDetail";
                this.BindData();
                return;
            }
            this.hdCurDiv.Value = "divBuy";
            this.BindHistoryData();
        }
    }
예제 #10
0
    /// <summary>
    /// 实现IPostBackEventHandler.RaisePostBackEvent方法
    /// </summary>
    /// <param name="eventArgument"></param>
    void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
    {
        if (PageChange != null)
        {
            int pageIndex;
            if (!int.TryParse(eventArgument, out pageIndex))
            {
                pageIndex = 0;
            }

            PageIndex = pageIndex;

            PageChangeEventArgs pageEventArgs = new PageChangeEventArgs();
            pageEventArgs.PageIndex = pageIndex;
            PageChange(new object(), pageEventArgs);

            //Draw();
        }
    }
예제 #11
0
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     long userID = -1L;
     try
     {
         userID = _Convert.StrToLong(Utility.GetRequest("id"), -1L);
     }
     catch
     {
     }
     if (userID < 1L)
     {
         PF.GoError(1, "参数错误", base.GetType().FullName);
     }
     else if (!new Lottery().ValidID(this.LotteryID))
     {
         PF.GoError(1, "参数错误!(彩种)", base.GetType().FullName);
     }
     else
     {
         this.BindData(userID, this.LotteryID);
     }
 }
예제 #12
0
    protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
    {
        long userID = -1L;

        try
        {
            userID = _Convert.StrToLong(Utility.GetRequest("id"), -1L);
        }
        catch
        {
        }
        if (userID < 1L)
        {
            PF.GoError(1, "参数错误", base.GetType().FullName);
        }
        else if (!new Lottery().ValidID(this.LotteryID))
        {
            PF.GoError(1, "参数错误!(彩种)", base.GetType().FullName);
        }
        else
        {
            this.BindData(userID, this.LotteryID);
        }
    }
예제 #13
0
 protected void gPagerWin_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindWin(null);
 }
예제 #14
0
 protected void gPagerInvest_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindInvest(null);
 }
예제 #15
0
 protected void PageBar_PageChange(object sender, PageChangeEventArgs e)
 {
     BindData(e.PageIndex);
 }
예제 #16
0
 protected void gPager1_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindCobuyRecord();
 }
 protected void gPagerWin_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindWin(null);
 }
예제 #18
0
        public NavBar()
        {
            InitializeComponent();

            this.btnTurtle.Clicked += async(s, e) =>
            {
                var cp = this.CurrentPage;
                if (cp != TurtlePages.Main)
                {
                    var pce = new PageChangeEventArgs()
                    {
                        CurrentPage = cp,
                        Page        = TurtlePages.Main
                    };
                    this.PageChanging?.Invoke(this, pce);

                    if (pce.Block)
                    {
                        return;
                    }

                    SoundManager.Play(SoundManager.SND_CLICK);
                    await Shell.Current.GoToAsync("//" + nameof(Pages.Main), pce.Animate);

                    this.update_button_image(cp);
                }
                else
                {
                    SoundManager.Play(SoundManager.SND_ERROR);
                }
            };


            this.btnLogic.Clicked += async(s, e) =>
            {
                var cp = this.CurrentPage;
                if (cp != TurtlePages.Logic)
                {
                    var pce = new PageChangeEventArgs()
                    {
                        CurrentPage = cp,
                        Page        = TurtlePages.Main
                    };
                    this.PageChanging?.Invoke(this, pce);

                    if (pce.Block)
                    {
                        return;
                    }

                    SoundManager.Play(SoundManager.SND_CLICK);
                    await Shell.Current.GoToAsync("//" + nameof(Pages.Logic), pce.Animate);

                    this.update_button_image(cp);
                }
                else
                {
                    SoundManager.Play(SoundManager.SND_ERROR);
                }
            };
            this.btnSettings.Clicked += async(s, e) =>
            {
                var cp = this.CurrentPage;
                if (cp != TurtlePages.Settings)
                {
                    var pce = new PageChangeEventArgs()
                    {
                        CurrentPage = cp,
                        Page        = TurtlePages.Main
                    };
                    this.PageChanging?.Invoke(this, pce);

                    if (pce.Block)
                    {
                        return;
                    }

                    SoundManager.Play(SoundManager.SND_CLICK);
                    await Shell.Current.GoToAsync("//" + nameof(Pages.Settings), pce.Animate);

                    this.update_button_image(cp);
                }
                else
                {
                    SoundManager.Play(SoundManager.SND_ERROR);
                }
            };

            this.SizeChanged += NavBar_SizeChanged;
        }
예제 #19
0
 protected void gPager1_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindData();
 }
예제 #20
0
 protected void gRewardPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindDataInvestHistory();
 }
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     string iD = ((ShoveGridPager)Sender).ID;
     if (iD != null)
     {
         if (!(iD == "gPager"))
         {
             if (!(iD == "gPagerHistory"))
             {
                 if (!(iD == "gPagerReward"))
                 {
                     if (!(iD == "gPagerUserPay"))
                     {
                         if (!(iD == "gPagergDistills"))
                         {
                             if (iD == "gPagerScoring")
                             {
                                 this.hdCurDiv.Value = "divScoring";
                                 this.BindScoring();
                             }
                             return;
                         }
                         this.hdCurDiv.Value = "divUserDistills";
                         this.BindDistills();
                         return;
                     }
                     this.hdCurDiv.Value = "divUserPay";
                     this.BindUserPayData();
                     return;
                 }
                 this.hdCurDiv.Value = "divReward";
                 this.BindRewardData();
                 return;
             }
         }
         else
         {
             this.hdCurDiv.Value = "divAccountDetail";
             this.BindData();
             return;
         }
         this.hdCurDiv.Value = "divBuy";
         this.BindHistoryData();
     }
 }
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindDistills();
 }
예제 #23
0
 protected void gRewardPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindDataInvestHistory();
 }
 protected void gPagerInvest_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindInvest(null);
 }
예제 #25
0
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindUserAccount();
 }
 protected void gPager1_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindTransactionList();
 }
예제 #27
0
 /// <summary>
 /// Obsługa zmiany bieżącej strony.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">EventArgs.</param>
 private void mainDataPager_PageChanged(object sender, PageChangeEventArgs e)
 {
     Presenter.Search();
 }
예제 #28
0
 void MainWizard_ActivePageChanged(object sender, PageChangeEventArgs e)
 {
     UpdatePage();
 }
예제 #29
0
 private void OnPageChanged(object sender, PageChangeEventArgs e)
 {
     SelectPageAndUpdateButtonStates();
 }
 protected void gPager1_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindTransactionList();
 }
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindUserAccount();
 }
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindData();
 }
예제 #33
0
 protected void gPager1_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindDataForSystemMessage();
 }
예제 #34
0
 protected void gPager2_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     this.BindChaseComboData();
 }
예제 #35
0
 protected void gPager_PageWillChange(object Sender, PageChangeEventArgs e)
 {
     ShoveGridPager pager = (ShoveGridPager)Sender;
     if (pager.ID == "gPagerHistory")
     {
         this.hdCurDiv.Value = "divHistory";
         this.BindHistoryData();
     }
     else if (pager.ID == "gPager_Reward")
     {
         this.hdCurDiv.Value = "divReward";
         this.BindDataReward();
     }
 }