Exemplo n.º 1
0
        public void Show(MainWindow me, Boolean about)
        {
            this._MainWindow = me;
            this.Abouted     = about;
            this.Viewed      = true;
            this.Position(me);
            if (!about)
            {
                ImageAbout.Source      = MainWindow.GetImage("Initialize.png");
                GridAbout.Visibility   = Visibility.Hidden;
                GridPreload.Visibility = Visibility.Visible;

                _SyncGame = new BackgroundWorker();
                _SyncGame.WorkerReportsProgress      = true;
                _SyncGame.WorkerSupportsCancellation = true;
                _SyncGame.DoWork             += new DoWorkEventHandler(_SyncGame_DoWork);
                _SyncGame.ProgressChanged    += new ProgressChangedEventHandler(_SyncGame_ProgressChanged);
                _SyncGame.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_SyncGame_RunWorkerCompleted);
                _SyncGame.RunWorkerAsync();
            }
            else
            {
                ImageAbout.Source      = MainWindow.GetImage("About.png");
                GridAbout.Visibility   = Visibility.Visible;
                GridPreload.Visibility = Visibility.Hidden;
            }
            this.Topmost = true;
            this.ShowDialog();
        }
Exemplo n.º 2
0
 private void GridScreenshot_MouseLeave(object sender, MouseEventArgs e)
 {
     GridDetails.Visibility    = Visibility.Visible;
     GridScreenshot.Margin     = new Thickness(-95, GridScreenshot.Margin.Top, GridScreenshot.Margin.Right, GridScreenshot.Margin.Bottom);
     GridScreenshot.Background = new SolidColorBrush(Color.FromArgb(1, 0, 0, 0));
     ImagePreview.Source       = MainWindow.GetImage("ViewerBackground.png");
 }