|
@@ -14,49 +14,49 @@ public class PopupWindow : IPopupWindow
|
|
|
|
|
|
public string Title
|
|
|
{
|
|
|
- get => Interop.get_window_title(windowHandle);
|
|
|
- set => Interop.set_window_title(windowHandle, value);
|
|
|
+ get => Native.get_window_title(windowHandle);
|
|
|
+ set => Native.set_window_title(windowHandle, value);
|
|
|
}
|
|
|
|
|
|
public void Show()
|
|
|
{
|
|
|
- Interop.show_window(windowHandle);
|
|
|
+ Native.show_window(windowHandle);
|
|
|
}
|
|
|
|
|
|
public void Close()
|
|
|
{
|
|
|
- Interop.close_window(windowHandle);
|
|
|
+ Native.close_window(windowHandle);
|
|
|
}
|
|
|
|
|
|
public AsyncCall ShowDialog()
|
|
|
{
|
|
|
- int asyncHandle = Interop.show_window_async(windowHandle);
|
|
|
- AsyncCall showDialogTask = Interop.AsyncHandleToTask<int>(asyncHandle);
|
|
|
+ int asyncHandle = Native.show_window_async(windowHandle);
|
|
|
+ AsyncCall showDialogTask = Native.AsyncHandleToTask<int>(asyncHandle);
|
|
|
return showDialogTask;
|
|
|
}
|
|
|
|
|
|
public double Width
|
|
|
{
|
|
|
- get => Interop.get_window_width(windowHandle);
|
|
|
- set => Interop.set_window_width(windowHandle, value);
|
|
|
+ get => Native.get_window_width(windowHandle);
|
|
|
+ set => Native.set_window_width(windowHandle, value);
|
|
|
}
|
|
|
|
|
|
public double Height
|
|
|
{
|
|
|
- get => Interop.get_window_height(windowHandle);
|
|
|
- set => Interop.set_window_height(windowHandle, value);
|
|
|
+ get => Native.get_window_height(windowHandle);
|
|
|
+ set => Native.set_window_height(windowHandle, value);
|
|
|
}
|
|
|
|
|
|
public bool CanResize
|
|
|
{
|
|
|
- get => Interop.get_window_resizable(windowHandle);
|
|
|
- set => Interop.set_window_resizable(windowHandle, value);
|
|
|
+ get => Native.get_window_resizable(windowHandle);
|
|
|
+ set => Native.set_window_resizable(windowHandle, value);
|
|
|
}
|
|
|
|
|
|
public bool CanMinimize
|
|
|
{
|
|
|
- get => Interop.get_window_minimizable(windowHandle);
|
|
|
- set => Interop.set_window_minimizable(windowHandle, value);
|
|
|
+ get => Native.get_window_minimizable(windowHandle);
|
|
|
+ set => Native.set_window_minimizable(windowHandle, value);
|
|
|
}
|
|
|
|
|
|
Task<bool?> IPopupWindow.ShowDialog()
|