private void OnShowSumma() { var childVM = new ChildViewModel() { Sum = Number1 + Number2, }; _dialogManager.Show(childVM); }
private void CharacterOnScene(SceneData data) { _dialogManager.Show( _characterManager.ActiveCharacterDialog, _characterManager.ActiveCharacterName, data.Message, data.Answers, PlayerChoseAnswer ); }
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); } }
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); }
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); }