Exemple #1
0
 public void Hide()
 {
     if (_parent != null)
     {
         _parent._disabledBy.Remove(this);
         _parent.UpdateEnabled();
         _parent = null;
     }
     UnmanagedMethods.ShowWindow(_hwnd, UnmanagedMethods.ShowWindowCommand.Hide);
 }
Exemple #2
0
 public void ShowDialog(IWindowImpl parent)
 {
     _parent = (WindowImpl)parent;
     _parent._disabledBy.Add(this);
     _parent.UpdateEnabled();
     SetWindowLongPtr(_hwnd, (int)WindowLongParam.GWL_HWNDPARENT, ((WindowImpl)parent)._hwnd);
     ShowWindow(_showWindowState);
 }