/// <summary> /// Creates a new NewSubscriptionViewModel /// </summary> /// <param name="subscription">The subscription object to model</param> /// <param name="owner">The owner dialog.</param> public NewSubscriptionViewModel(Subscription subscription, CommonDialogWindowBase owner) { _owner = owner; Subscription = subscription; CreateCommand = new ProtectedCommand(OnCreateCommand); PushConfig = subscription.PushConfig ?? new PushConfig(); }
public static void ReportScreenView(CommonDialogWindowBase dialog) { Debug.WriteLine($"Opening window {dialog.Title}"); s_reporter.Value?.ReportScreen(dialog.GetType().Name); }
public NewTopicViewModel(string project, CommonDialogWindowBase owner) { _owner = owner; Project = project; CreateCommand = new ProtectedCommand(OnCreateCommand); }