public static void Show (ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea) { DestroyWindow (); wnd = new PreviewVisualizerWindow (val, widget); wnd.ShowPopup (widget, previewButtonArea, PopupPosition.Left); wnd.Destroyed += HandleDestroyed; OnWindowShown (EventArgs.Empty); }
public static void DestroyWindow() { if (wnd != null) { wnd.Destroy(); wnd = null; } }
public static void Show(ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea) { DestroyWindow(); wnd = new PreviewVisualizerWindow(val, widget); wnd.ShowPopup(widget, previewButtonArea, PopupPosition.Left); wnd.Destroyed += HandleDestroyed; OnWindowShown(EventArgs.Empty); }
public static void DestroyWindow() { if (wnd != null) { wnd.FocusOutEvent -= HandleFocusOutEvent; wnd.Destroyed -= HandleDestroyed; wnd.Destroy(); wnd = null; } }
public static void Show(ObjectValue val, Control widget, Gdk.Rectangle previewButtonArea) { DestroyWindow(); wnd = new PreviewVisualizerWindow(val, widget); IdeApp.CommandService.RegisterTopWindow(wnd); wnd.ShowPopup(widget, previewButtonArea, PopupPosition.Left); wnd.FocusOutEvent += HandleFocusOutEvent; wnd.Destroyed += HandleDestroyed; OnWindowShown(EventArgs.Empty); }
public static void DestroyWindow () { if (wnd != null) { wnd.Destroy (); wnd = null; } }
static void HandleDestroyed (object sender, EventArgs e) { wnd = null; OnWindowClosed (EventArgs.Empty); }
static void HandleDestroyed(object sender, EventArgs e) { wnd = null; OnWindowClosed(EventArgs.Empty); }