示例#1
0
        private void OnShowSumma()
        {
            var childVM = new ChildViewModel()
            {
                Sum = Number1 + Number2,
            };

            _dialogManager.Show(childVM);
        }
示例#2
0
 private void CharacterOnScene(SceneData data)
 {
     _dialogManager.Show(
         _characterManager.ActiveCharacterDialog,
         _characterManager.ActiveCharacterName,
         data.Message,
         data.Answers,
         PlayerChoseAnswer
         );
 }
示例#3
0
 public void ChatOpen(Chat chat)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         using (ITransaction transaction = session.BeginTransaction())
         {
             OpenedChat?.Close(OpenedChat);
             OpenedChat                = new ChatViewModel(session.Load <Chat>(chat.Id), this);
             OpenedChat.Closed        += ChatClose;
             OpenedChat.MessageSended += SendMessage;
             _dialogManager.Show(OpenedChat);
         }
 }
示例#4
0
 public void ExecuteOpenGraphicDetailsCommand(object parameter)
 {
     try
     {
         if (openedGraphicWindowsParams.Contains(parameter.ToString()))
         {
             return;
         }
         openedGraphicWindowsParams.Add(parameter.ToString());
         var graphicVM = new GraphicViewModel(sensorReadoutValues.GetAppropriateValues(parameter.ToString()), axisValues, parameter.ToString());
         dialogManager.Show(graphicVM, parameter, closeGraphicWindow);
     }
     catch (System.Exception ex)
     {
         Log.Write(ex);
     }
 }
        public static void Show <TViewModel>(this IDialogManager dialogManager, TViewModel viewModel)
        {
            var key = typeof(TViewModel).FullName;

            dialogManager.Show(key, viewModel);
        }
示例#6
0
        public static void Show <TViewModel>(this IDialogManager dialogManager, TViewModel viewModel, object parameter, Action <string> onWindowClosed = null)
        {
            var key = typeof(TViewModel).FullName;

            dialogManager.Show(key, viewModel, parameter, onWindowClosed);
        }