Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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;
 }