Ejemplo n.º 1
0
        public static String Show(string title, string text, MsgBxPicture picture, List <String> buttons)
        {
            BindingList <string> bindingButtons = new BindingList <string>(buttons);
            WndCustomMsgBxVM     WndMsgBxVM     = new WndCustomMsgBxVM(title, text, picture, bindingButtons);
            WndCustomMsgBxV      wndMsgBxV      = new WndCustomMsgBxV(WndMsgBxVM);

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

            return(WndMsgBxVM.MsgBxResult);
        }
Ejemplo n.º 2
0
 public WndCustomMsgBxV(WndCustomMsgBxVM wndMsgBxVM)
 {
     InitializeComponent();
     WndCustomMsgBxVM = wndMsgBxVM;
 }