コード例 #1
0
ファイル: MsgBxM.cs プロジェクト: NickHola/Backupper
        public static MsgBxButton Show(string title, string text, MsgBxPicture picture, MsgBxButtonSet button = MsgBxButtonSet.Ok)
        {
            WndMsgBxVM WndMsgBxVM = new WndMsgBxVM(title, text, picture, button);
            WndMsgBxV  wndMsgBxV  = new WndMsgBxV(WndMsgBxVM);

            wndMsgBxV.Topmost               = true;
            wndMsgBxV.WindowStyle           = System.Windows.WindowStyle.None;
            wndMsgBxV.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            wndMsgBxV.ShowDialog();

            return(WndMsgBxVM.MsgBxResult);
        }
コード例 #2
0
 public WndMsgBxV(WndMsgBxVM wndMsgBxVM)
 {
     InitializeComponent();
     WndMsgBxVM = wndMsgBxVM;
 }