public DlgWindow(IWindowTitle content) { SizeToContent = SizeToContent.WidthAndHeight; WindowStartupLocation = WindowStartupLocation.CenterOwner; Owner = Globals.MainWindow; if (!string.IsNullOrEmpty(content.WindowTitle)) { Title = content.WindowTitle; ResizeMode = ResizeMode.NoResize; } else { this.WindowStyle = WindowStyle.None; } Content = content; }
public static void ShowDialog(IWindowTitle content) { new DlgWindow(content).ShowDialog(); }
/// <summary> /// Constructor of the class. /// </summary> /// <param name="windowTitle"></param> public ActiveWindowTitleNotStartMenuePluginState(IWindowTitle windowTitle) { _windowTitle = windowTitle; }