Наследование: SadConsole.Consoles.Window
Пример #1
0
 public void ShowResizeEditorPopup()
 {
     if (ActiveEditor != null)
     {
         Windows.ResizeSurfacePopup popup = new Windows.ResizeSurfacePopup(ActiveEditor.Width, ActiveEditor.Height);
         popup.Center();
         popup.Closed += (s, e) =>
         {
             if (popup.DialogResult)
             {
                 ActiveEditor.Resize(popup.SettingWidth, popup.SettingHeight);
             }
         };
         popup.Show(true);
     }
 }
 public static void ShowResizeEditorPopup()
 {
     if (ActiveEditor != null)
     {
         Windows.ResizeSurfacePopup popup = new Windows.ResizeSurfacePopup(ActiveEditor.Width, ActiveEditor.Height);
         popup.Center();
         popup.Closed += (s, e) =>
         {
             if (popup.DialogResult)
             {
                 ActiveEditor.Resize(popup.SettingWidth, popup.SettingHeight);
             }
         };
         popup.Show(true);
     }
 }