void timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)(() =>
     {
         if (pgbCrimeM.Value < 43)
         {
             pgbCrimeM.Value += 1;
         }
         else
         {
             timer.Stop();
             CrimeManagementWindow cmw = new CrimeManagementWindow();
             this.Hide();
             this.Close();
             cmw.ShowDialog();
         }
     }));
 }
Beispiel #2
0
 public CadCaso(CrimeManagementWindow info)
 {
     InitializeComponent();
     crimeWindow = info;
 }