示例#1
0
        private void button3_Click(object sender, RoutedEventArgs e)
        {
            Duration        duration = new Duration(TimeSpan.FromSeconds(1));
            DoubleAnimation doubleAN = new DoubleAnimation(ProgressB.Value + 20, duration);

            ProgressB.BeginAnimation(ProgressBar.ValueProperty, doubleAN);
        }
 private void Close_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ProgressB.Maximum = 10;
         Recalculate.ReCalculate_Cost_Qty(DTCurrentMonth.Rows[0], DTPreviousMonth);
         ProgressB.Value = 50;
         ProgressB.UpdateLayout();
         Recalculate.CloseMonth(DTCurrentMonth.Rows[0]);
         ProgressB.Value = 90;
         where           = "Month = '" + Month + "' and Year = '" + Year + "'";
         Classes.UpdateCell("isClosed", "1", where, "Setup_Fiscal_Period");
         ProgressB.Value = 100;
         LoadMonths();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 public ProgressThread(ProgressBar progressBar)
 {
     MyDelegate       = new ProgressB(Load);
     MyDelegate1      = new ProgressB(clear);
     this.progressBar = progressBar;
 }
 public ProgressThread(ProgressBar progressBar)
 {
     MyDelegate = new ProgressB(Load);
     MyDelegate1 = new ProgressB(clear);
     this.progressBar = progressBar; 
 }
示例#5
0
 // METODA AKTUALIZUJĄCA PASEK POSTĘPU
 public void increment()
 {
     ProgressB.Increment(1);
 }