예제 #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;
        }
예제 #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();
     });
 }
예제 #3
0
파일: mainForm.cs 프로젝트: revel8n/rpftool
 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;
 }
예제 #4
0
파일: Loader.cs 프로젝트: revel8n/rpftool
 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();
     });
 }