Пример #1
0
 private void CountDataSourceOnSubmittedChanges(object sender, SubmittedChangesEventArgs submittedChangesEventArgs)
 {
     if (submittedChangesEventArgs.HasError)
     {
         MessageBox.Show(submittedChangesEventArgs.Error.ToString());
     }
 }
Пример #2
0
 private void bloodDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         e.MarkErrorAsHandled();
     }
 }
        void satisfacaoClienteSetDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
        {
            satisfacaoClienteSetDomainDataSource.Load();
            satisfacaoClienteSetDataGrid.ItemsSource = satisfacaoClienteSetDomainDataSource.Data;
            pgrSatisfacaoCliente.Source = satisfacaoClienteSetDomainDataSource.Data;

        }
Пример #4
0
 private void DomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         MessageBox.Show(e.Error.ToString(), "Submit Changes Error", MessageBoxButton.OK);
         e.MarkErrorAsHandled();
     }
 }
Пример #5
0
 void OnSubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         // Prevents the application from throwing an exception
         e.MarkErrorAsHandled();
     }
 }
Пример #6
0
 private void DomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         MessageBox.Show(string.Format("Submit Failed: {0}", e.Error.Message));
         e.MarkErrorAsHandled();
     }
 }
 void OnSubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         // Prevents the application from throwing an exception
         e.MarkErrorAsHandled();
     }
 }
        protected void DomainDataSourceSubmittedChanges(object sender, SubmittedChangesEventArgs e)
        {
            this._ddsSubmittedChanges++;
            string messagePrefix = !string.IsNullOrEmpty(this._asyncEventFailureMessage) ? this._asyncEventFailureMessage + "; " : "";

            Assert.IsTrue(this._ddsSubmittedChanges <= this._ddsSubmittedChangesExpected,
                          messagePrefix + "There should only be {0} SubmittedChanges events.", this._ddsSubmittedChangesExpected);
        }
Пример #9
0
 private void LibraryDataSource_OnSubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         System.Diagnostics.Debug.WriteLine(e.Error.ToString());
         e.MarkErrorAsHandled();
     }
     libraryDataSource.Load();
 }
Пример #10
0
 private void CarDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         MessageBox.Show("Submit Failed: Data Input Errors Appear In RED");
         e.MarkErrorAsHandled();
         railCarDomainDataSource.RejectChanges();
     }
 }
Пример #11
0
 void source_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     if (e.HasError)
     {
         e.MarkErrorAsHandled();
         ShowMessage("Error", e.Error.Message);
     }
     if (!e.Cancelled && !e.HasError)
     {
         ShowMessage("Info", "All changes successfully accepted.");
     }
 }
 void servicoMedicoSetDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     servicoMedicoSetDomainDataSource.Load();
     servicoMedicoSetDataGrid.ItemsSource = servicoMedicoSetDomainDataSource.Data;
     pgrServicoMedico.Source = servicoMedicoSetDomainDataSource.Data;
 }
Пример #13
0
 void satisfacaoClienteSetDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     satisfacaoClienteSetDomainDataSource.Load();
     satisfacaoClienteSetDataGrid.ItemsSource = satisfacaoClienteSetDomainDataSource.Data;
     pgrSatisfacaoCliente.Source = satisfacaoClienteSetDomainDataSource.Data;
 }
Пример #14
0
 void servicoMedicoSetDomainDataSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     servicoMedicoSetDomainDataSource.Load();
     servicoMedicoSetDataGrid.ItemsSource = servicoMedicoSetDomainDataSource.Data;
     pgrServicoMedico.Source = servicoMedicoSetDomainDataSource.Data;
 }
Пример #15
0
 void ZamowienieSource_SubmittedChanges(object sender, SubmittedChangesEventArgs e)
 {
     KoszykGrid.ItemsSource = null;
     AktualneZamowienie = null;
     AktualneZamowienieID = 0;
     KoszykSource.Clear();
     PustyKoszykTextBlock.Visibility = System.Windows.Visibility.Visible;
 }