public AddTimer(ModelHelpers modelHelpers, string jiraRef = null, DateTime?startDate = null, bool?enableDateChange = null, List <IdleTimer> idleTimers = null, bool?startNow = null) { this.modelHelpers = modelHelpers; this.startDate = startDate; InitializeComponent(); DataContext = new AddTimerModel(modelHelpers.Gallifrey, jiraRef, startDate, enableDateChange, idleTimers, startNow); AddedTimer = false; }
public AddTimer(ModelHelpers modelHelpers, string jiraRef = null, DateTime?startDate = null, bool?enableDateChange = null, List <IdleTimer> idleTimers = null, bool?startNow = null) { this.modelHelpers = modelHelpers; InitializeComponent(); progressDialogHelper = new ProgressDialogHelper(modelHelpers.DialogContext); if (!modelHelpers.Gallifrey.Settings.InternalSettings.IsPremium && startNow.HasValue && startNow.Value) { startNow = false; } DataContext = new AddTimerModel(modelHelpers.Gallifrey, jiraRef, startDate, enableDateChange, idleTimers, startNow); AddedTimer = false; }
public AddTimer(MainViewModel viewModel, string jiraRef = null, DateTime?startDate = null, bool?enableDateChange = null, TimeSpan?preloadTime = null, bool?startNow = null) { this.viewModel = viewModel; InitializeComponent(); DataContext = new AddTimerModel(viewModel.Gallifrey, jiraRef, startDate, enableDateChange, preloadTime, startNow); }