private void OnCustomersDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); return; } this.masterGridView.SelectedItem = this.masterGridView.Items[0]; }
private void OnCategoriesDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); } else { this.categoriesLoaded = true; } }
private void OnDataSourceLoadedData(object sender, Controls.DataServices.LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); this.debugTextBox.Text = string.Format("<-- Server returned the following error: {0}\r\n" , e.Error); } else if (e.Cancelled) { this.debugTextBox.Text = string.Format("<-- Load operation was cancelled\r\n"); } else { TimeSpan elapsedTime = DateTime.Now - this.startTime; this.debugTextBox.Text += string.Format("<-- Server replied in {0} ms\r\n" , elapsedTime.Milliseconds); } }
private void MyRadDomainDataSource_LoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); return; } }