コード例 #1
0
        public static void Create(Window owner)
        {
            UpdateWindow window = new UpdateWindow()
            {
                Owner = owner
            };

            window.Show();
            window.Owner = null;
        }
コード例 #2
0
ファイル: UpdateWindow.cs プロジェクト: vaaski/apollo-studio
        public static void Create(Window owner)
        {
            UpdateWindow window = new UpdateWindow();

            if (owner == null || owner.WindowState == WindowState.Minimized)
            {
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            }
            else
            {
                window.Owner = owner;
            }

            window.Show();
            window.Owner = null;

            window.Topmost = true;
            window.Topmost = Preferences.AlwaysOnTop;
        }