public MessageBoxUpdater(string title, string message, MessageBoxInfoType type) { InitializeComponent(); this.DataContext = info; info.Title = title; info.Message = message; info.MessageType = type; }
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(); }