Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Le Roy <beleroy@microsoft.com>2018-02-02 20:37:38 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2018-02-05 21:47:00 +0300
commit09589ce1520ecd28479110e1e8cb281da499faa7 (patch)
tree99d798e574360bae3296a0202f14eb35481b501e /Xamarin.PropertyEditing.Windows.Standalone
parenta5309ec7543d600096deb461f0f257ffc8eb0362 (diff)
Suffix async method names with "Async"
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs4
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs12
2 files changed, 8 insertions, 8 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
index 1b1c6ee..00224af 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml.cs
@@ -35,8 +35,8 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
inspectedObject = mockedControl.MockedControl;
if (mockedControl is MockedSampleControlButton mockedButton) {
IObjectEditor editor = await this.panel.EditorProvider.GetObjectEditorAsync (inspectedObject);
- await mockedButton.SetBrushInitialValue (editor, new CommonSolidBrush (20, 120, 220, 240, "sRGB"));
- await mockedButton.SetReadOnlyBrushInitialValue (editor, new CommonSolidBrush (240, 220, 15, 190));
+ await mockedButton.SetBrushInitialValueAsync (editor, new CommonSolidBrush (20, 120, 220, 240, "sRGB"));
+ await mockedButton.SetReadOnlyBrushInitialValueAsync (editor, new CommonSolidBrush (240, 220, 15, 190));
}
}
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
index a793c3d..5a7765e 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
@@ -23,23 +23,23 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
MockedControl.AddProperty<CommonBrush> (this.readOnlyBrushPropertyInfo);
}
- public async Task SetBrushInitialValue (IObjectEditor editor, CommonBrush brush)
+ public async Task SetBrushInitialValueAsync (IObjectEditor editor, CommonBrush brush)
{
if (this.brushSet) return;
await editor.SetValueAsync (this.brushPropertyInfo, new ValueInfo<CommonBrush> { Value = brush });
this.brushSet = true;
}
- public async Task SetReadOnlyBrushInitialValue (IObjectEditor editor, CommonBrush brush)
+ public async Task SetReadOnlyBrushInitialValueAsync (IObjectEditor editor, CommonBrush brush)
{
if (this.readOnlyBrushSet) return;
await editor.SetValueAsync (this.readOnlyBrushPropertyInfo, new ValueInfo<CommonBrush> { Value = brush });
this.readOnlyBrushSet = true;
}
- IPropertyInfo brushPropertyInfo;
- IPropertyInfo readOnlyBrushPropertyInfo;
- bool brushSet = false;
- bool readOnlyBrushSet = false;
+ private IPropertyInfo brushPropertyInfo;
+ private IPropertyInfo readOnlyBrushPropertyInfo;
+ private bool brushSet = false;
+ private bool readOnlyBrushSet = false;
}
}