コード例 #1
0
		private void OnCustomersDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
		{
			if (e.HasError)
			{
				e.MarkErrorAsHandled();
				return;
			}
			
			this.masterGridView.SelectedItem = this.masterGridView.Items[0];
		}
コード例 #2
0
		private void OnCategoriesDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
		{
			if (e.HasError)
			{
				e.MarkErrorAsHandled();
			}
			else
			{
				this.categoriesLoaded = true;
			}
		}
コード例 #3
0
		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);
			}
		}
コード例 #4
0
		private void MyRadDomainDataSource_LoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
		{
			if (e.HasError)
			{
				e.MarkErrorAsHandled();
				return;
			}
		}