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:
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs22
1 files changed, 1 insertions, 21 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs
index b7e68d3..44a61a8 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/TypeEditorControl.cs
@@ -92,11 +92,6 @@ namespace Xamarin.PropertyEditing.Mac
private readonly NSButton selectType;
private readonly NSLayoutConstraint buttonConstraint;
- private void OnCreateInstanceExecutableChanged (object sender, EventArgs e)
- {
- UpdateCreateInstanceCommand ();
- }
-
private void OnTypeRequested (object sender, TypeRequestedEventArgs e)
{
e.SelectedType = e.RequestAt (HostResources, this.selectType, ViewModel.AssignableTypes);
@@ -120,23 +115,8 @@ namespace Xamarin.PropertyEditing.Mac
private void OnSelectPressed (object sender, EventArgs e)
{
+ Window.MakeFirstResponder (this.selectType);
ViewModel.SelectTypeCommand.Execute (null);
}
-
- private class PopoverDelegate<T>
- : NSPopoverDelegate
- {
- public PopoverDelegate (TaskCompletionSource<T> tcs)
- {
- this.tcs = tcs;
- }
-
- public override void WillClose (NSNotification notification)
- {
- this.tcs.TrySetCanceled ();
- }
-
- private readonly TaskCompletionSource<T> tcs;
- }
}
}