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();
         }
     }));
 }
Пример #2
0
 public CadCaso(CrimeManagementWindow info)
 {
     InitializeComponent();
     crimeWindow = info;
 }