示例#1
0
 private void skinButtonSearch_Click(object sender, EventArgs e)
 {
     this.CurrentList = null;
     this.Page = 0;
     this.CurrentDataSize = 0;
     this.CurrentCriteria = null;
     if (this.ExecuteSearch() == 0)
     {
         this.dgReplays.DataSource = null;
         this.skinLabelPage.Text = Loc.Get("<LOC>No Results");
     }
 }
示例#2
0
 public DlgSearchReplays(FrmMain mainForm) : base(mainForm)
 {
     this.components = null;
     this.Page = 0;
     this.CurrentList = null;
     this.CurrentDataSize = 0;
     this.CurrentCriteria = null;
     this.LastPage = null;
     this.InitializeComponent();
     this.Construct();
     this.ResetForm();
 }
示例#3
0
 private void LoadGlobalReplayLists()
 {
     EventHandler handler = null;
     MappedObjectList<ReplayList> objects = DataAccess.GetObjects<ReplayList>("GetGlobalReplayLists", new object[0]);
     int num = 0;
     int num2 = 0;
     int num3 = this.gpgLabelTopRated.Height + 4;
     foreach (ReplayList list2 in objects)
     {
         GPGLabel label = new GPGLabel();
         label.AutoSize = true;
         label.TextStyle = TextStyles.Link;
         label.Text = Loc.Get(list2.Title);
         label.Top = num2 * num3;
         if (num == 0)
         {
             label.Left = this.gpgLabelTopRated.Left;
             label.Anchor = AnchorStyles.Left | AnchorStyles.Top;
         }
         else if (num == 1)
         {
             label.Left = this.gpgLabelTopDownload.Left;
             label.Anchor = AnchorStyles.Top;
         }
         else if (num == 2)
         {
             label.Left = this.gpgLabelMostRecent.Left;
             label.Anchor = AnchorStyles.Right | AnchorStyles.Top;
         }
         label.Tag = list2;
         if (handler == null)
         {
             handler = delegate (object s, EventArgs e) {
                 this.Page = 0;
                 this.CurrentList = (s as Control).Tag as ReplayList;
                 this.ExecuteList();
             };
         }
         label.Click += handler;
         this.gpgPanelReplayLists.Controls.Add(label);
         num++;
         if (num > 2)
         {
             num = 0;
             num2++;
         }
     }
 }