本文整理汇总了C#中Controls.MarkErrorAsHandled方法的典型用法代码示例。如果您正苦于以下问题:C# Controls.MarkErrorAsHandled方法的具体用法?C# Controls.MarkErrorAsHandled怎么用?C# Controls.MarkErrorAsHandled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controls
的用法示例。
在下文中一共展示了Controls.MarkErrorAsHandled方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCustomersDataSourceLoadedData
private void OnCustomersDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
{
if (e.HasError)
{
e.MarkErrorAsHandled();
return;
}
this.masterGridView.SelectedItem = this.masterGridView.Items[0];
}
示例2: OnCategoriesDataSourceLoadedData
private void OnCategoriesDataSourceLoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
{
if (e.HasError)
{
e.MarkErrorAsHandled();
}
else
{
this.categoriesLoaded = true;
}
}
示例3: OnDataSourceLoadedData
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: MyRadDomainDataSource_LoadedData
private void MyRadDomainDataSource_LoadedData(object sender, Controls.DomainServices.LoadedDataEventArgs e)
{
if (e.HasError)
{
e.MarkErrorAsHandled();
return;
}
}