示例#1
0
 public WndCustomMsgBxVM(string title, string text, MsgBxPicture picture, BindingList <string> buttonSet)
 {
     Title     = title;
     Text      = text;
     Picture   = picture;
     ButtonSet = buttonSet;
 }
示例#2
0
        //public SolidColorBrush OnMouseOverColor
        //{
        //    get { return onMouseOverColor; }
        //    set
        //    {
        //        onMouseOverColor = value;
        //        OnPropertyChanged();
        //    }
        //}


        public WndMsgBxVM(string title, string text, MsgBxPicture picture, MsgBxButtonSet buttonSet)
        {
            Title     = title;
            Text      = text;
            Picture   = picture;
            ButtonSet = buttonSet;
            //if (onMouseOverColor != default) OnMouseOverColor = onMouseOverColor;
        }
示例#3
0
        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);
        }
示例#4
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);
        }