예제 #1
0
 private void addCalculation(StringBuilder stringbuilder)
 {
     if (stringbuilder.Length > 0)
     {
         stringbuilder.Remove(stringbuilder.Length - 1, 1);
     }
     Calculation.EmployeeIdList = stringbuilder.ToString();
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     calculationService.AddCalculation((res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         HideBusyIndicator();
         if (exp == null)
         {
             Calculation = res;
             appController.ShowMessage("محاسبه با موفقیت اضافه شد.");
             appController.Publish(new UpdateCalculationListArgs());
             appController.Close(this);
         }
         else
         {
             appController.HandleException(exp);
         }
     }), Calculation);
 }
예제 #2
0
 protected override void OnRequestClose()
 {
     base.OnRequestClose();
     appController.Close(this);
 }