|
MessageViewModelShowView Method (Assembly, Boolean)
|
Shows the message view.
Namespace:
CADSharpTools.MVVM.ViewModels
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic void ShowView(
Assembly callingAssembly,
bool playErrorSound = false
)
Public Sub ShowView (
callingAssembly As Assembly,
Optional playErrorSound As Boolean = false
)
Parameters
- callingAssembly
- Type: System.ReflectionAssembly
Assembly object. - playErrorSound (Optional)
- Type: SystemBoolean
Play error sound toggle.
RemarksThe calling assembly's product name and version will used as the title of the message view dialog.
Examplesusing 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