コード例 #1
0
 private MessageBoxViewModel AddAndShowMessageBoxViewModel(MessageBoxViewModel messageBoxViewModel)
 {
     _messages.Push(messageBoxViewModel);
     RaisePropertyChanged("IsVisible");
     RaisePropertyChanged("CurrentMessage");
     return(messageBoxViewModel);
 }
コード例 #2
0
        private MessageBoxViewModel CreateAndShowMessageBox(string title, string message, long interval, long timeout, MessageBoxButtons messageBoxButtons)
        {
            var messageBoxViewModel = new MessageBoxViewModel(title, message, interval, timeout, messageBoxButtons);

            return(AddAndShowMessageBoxViewModel(messageBoxViewModel));
        }
コード例 #3
0
        private MessageBoxViewModel CreateAndShowMessageBox(string title, string message, MessageBoxButtons messageBoxButtons)
        {
            var messageBoxViewModel = new MessageBoxViewModel(title, message, messageBoxButtons);

            return(AddAndShowMessageBoxViewModel(messageBoxViewModel));
        }