12345678910111213141516171819202122 |
- using System;
- using System.Windows.Controls;
- namespace OpenSEMI.ClientBase
- {
- public class MessageDialogViewModel : MessageDialog
- {
- protected override void OnInitialize()
- {
- base.OnInitialize();
- DisplayName = "Dialog Box";
- }
- public void OnButtonClick(object sender)
- {
- Button button = sender as Button;
- base.DialogResult = (DialogButton)Enum.Parse(typeof(DialogButton), button.Content.ToString());
- TryClose(null);
- }
- }
- }
|