Exemplo n.º 1
0
        public mainForm(string gameSelected, gameSelection gsF)
        {
            currentGame    = gameSelected;
            gameSelectForm = gsF;
            bgwListBuilder.WorkerReportsProgress = true;
            bgwListBuilder.DoWork             += new DoWorkEventHandler(bgwListBuilder_DoWork);
            bgwListBuilder.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgwListBuilder_RunWorkerCompleted);
            InitializeComponent();
            tb_search.Edit.KeyDown += new KeyEventHandler(tb_search_KeyDown);
            setImage();
            // Initialize hot item style
            this.hotItemStyle1.ForeColor = highlightCellColor;
            RowBorderDecoration rbd = new RowBorderDecoration();

            rbd.BorderPen                 = new Pen(primaryCellColor, 0.5f);
            rbd.FillBrush                 = new SolidBrush(Color.FromArgb(32, Color.White));
            rbd.CornerRounding            = 0;
            rbd.BoundsPadding             = new Size(0, 0);
            rbd.LeftColumn                = 1;
            this.hotItemStyle1.Decoration = rbd;
            HeaderFormatStyle headerstyle = new HeaderFormatStyle();

            headerstyle.SetBackColor(headerBackColor);
            filelistview.HeaderFormatStyle = headerstyle;
        }
Exemplo n.º 2
0
 private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.Invoke((MethodInvoker) delegate
     {
         this.Hide();
         var gameSelectForm     = new gameSelection(rdrEnabled, mp3_xboxEnabled, mcEnabled, gtavEnabled);
         gameSelectForm.Closed += (sender2, args) => this.Close();
         gameSelectForm.Show();
     });
 }
Exemplo n.º 3
0
 public mainForm(string gameSelected, gameSelection gsF)
 {
     currentGame = gameSelected;
     gameSelectForm = gsF;
     bgwListBuilder.WorkerReportsProgress = true;
     bgwListBuilder.DoWork += new DoWorkEventHandler(bgwListBuilder_DoWork);
     bgwListBuilder.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgwListBuilder_RunWorkerCompleted);
     InitializeComponent();
     tb_search.Edit.KeyDown += new KeyEventHandler(tb_search_KeyDown);
     setImage();
     // Initialize hot item style
     this.hotItemStyle1.ForeColor = highlightCellColor;
     RowBorderDecoration rbd = new RowBorderDecoration();
     rbd.BorderPen = new Pen(primaryCellColor, 0.5f);
     rbd.FillBrush = new SolidBrush(Color.FromArgb(32, Color.White));
     rbd.CornerRounding = 0;
     rbd.BoundsPadding = new Size(0, 0);
     rbd.LeftColumn = 1;
     this.hotItemStyle1.Decoration = rbd;
     HeaderFormatStyle headerstyle = new HeaderFormatStyle();
     headerstyle.SetBackColor(headerBackColor);
     filelistview.HeaderFormatStyle = headerstyle;
 }
Exemplo n.º 4
0
 private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.Invoke((MethodInvoker)delegate
     {
         this.Hide();
         var gameSelectForm = new gameSelection(rdrEnabled, mp3_xboxEnabled, mcEnabled, gtavEnabled);
         gameSelectForm.Closed += (sender2, args) => this.Close();
         gameSelectForm.Show();
     });
 }