Ejemplo n.º 1
0
 private static void ShowLog(object sender, LogEventArgs args)
 {
     MessageDialog msgDialog = new MessageDialog();
     msgDialog.MessageText = args.Message;
     msgDialog.QualifiedName = args.QualifiedName;
     msgDialog.MessageDetails = args.MessageDetails;
     msgDialog.EnableClipboardCopy = ( !string.IsNullOrEmpty(msgDialog.QualifiedName) );
     msgDialog.ShowDialog();
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var msgDlg = new MessageDialog();
            msgDlg.EnableClipboardCopy = true;
            msgDlg.QualifiedName = "QualifiedName";
            msgDlg.MessageText = "MessageText";
            msgDlg.MessageDetails = "MessageDetails";

            Application.Run(msgDlg);
        }