public PopupConfig(IPopupNotifier popupNotifier) { InitializeComponent(); this.popupNotifier = popupNotifier; ContentTextBox.Text = popupNotifier.Content; TitleTextBox.Text = popupNotifier.Title; DurationNumeric.Value = ((decimal)popupNotifier.Duration.TotalSeconds).ConstrainToRange(0, 10000); StayUntilClickedCheckBox.Checked = popupNotifier.StayUntilClicked; DurationNumeric.Enabled = !popupNotifier.StayUntilClicked; initComplete = true; }
public PopupConfig(IPopupNotifier popupNotifier) { InitializeComponent(); _popupNotifier = popupNotifier; ContentTextBox.Text = popupNotifier.Content; TitleTextBox.Text = popupNotifier.Title; DurationNumeric.Value = (decimal)popupNotifier.Duration.TotalSeconds; StayUntilClickedCheckBox.Checked = popupNotifier.StayUntilClicked; DurationNumeric.Enabled = !popupNotifier.StayUntilClicked; _initComplete = true; }