예제 #1
0
        public MessageBoxUpdater(string title, string message, MessageBoxInfoType type)
        {
            InitializeComponent();

            this.DataContext = info;

            info.Title       = title;
            info.Message     = message;
            info.MessageType = type;
        }
예제 #2
0
        public static void Show(IUpdatetable applicationInfo, string title, string message, MessageBoxInfoType type)
        {
            MessageBoxUpdater messagebox = new MessageBoxUpdater(title, message, type);

            messagebox.Owner = applicationInfo.Context;
            messagebox.ShowDialog();
        }