Click or drag to resize

MessageViewModelShowView Method (String, Boolean)

Shows the message view.

Namespace:  CADSharpTools.MVVM.ViewModels
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public void ShowView(
	string Title,
	bool playErrorSound = false
)

Parameters

Title
Type: SystemString
message view dialog's title
playErrorSound (Optional)
Type: SystemBoolean
Play error sound toggle.
Examples
using CADSharpTools.MVVM.ViewModels;
using System;
namespace CADSharpTools.Tests
{
    class Test
    {     
        [STAThread]
        static void Main(string[] args)
        {
            var messageViewModel = new MessageViewModel("This is a copyable caption.");
            string programName = "Program version 1.0.0";
            messageViewModel.ShowView(programName, false);
            Console.ReadKey();
        }
    }
}
See Also