コード例 #1
0
ファイル: Common.cs プロジェクト: ayokyun/playmart
        public static void PopupMessage(string msg)
        {
            AlertWindow aw = new AlertWindow();

            //새창을 가운대로
            aw.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
            aw.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            aw.Message = msg;
            aw.ShowDialog();
        }
コード例 #2
0
ファイル: Common.cs プロジェクト: motolies/PlayMartWpf
        public static void PopupMessage(string msg)
        {
            AlertWindow aw = new AlertWindow();

            //새창을 가운대로
            aw.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
            aw.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            aw.Message = msg;
            aw.ShowDialog();
        }