private void OkButtonClick(object sender, RoutedEventArgs e) { this.Parameters.Title = this.titleTextBox.Text; this.Parameters.URL = WebBrowserMvvmHelper.NormalizeUrl(this.urlTextBox.Text); DialogResult = true; }
private void ProcessWebPage() { this.isBackOrForwardAction = false; this.Parameters.URL = WebBrowserMvvmHelper.NormalizeUrl(this.UrlForTitle); this.RaisePropertyChanged("BrowserVisibility"); }
private void TextChanged(object sender, TextChangedEventArgs e) { if (!string.IsNullOrWhiteSpace(this.titleTextBox.Text) && !string.IsNullOrWhiteSpace(this.urlTextBox.Text)) { this.okButton.IsEnabled = WebBrowserMvvmHelper.VerifyUrlFormat(this.urlTextBox.Text); } else { // either both or neither textbox is empty this.okButton.IsEnabled = string.IsNullOrWhiteSpace(this.titleTextBox.Text) && string.IsNullOrWhiteSpace(this.urlTextBox.Text); } }
private void OkButtonClick(object sender, RoutedEventArgs e) { this.Parameters.Title = this.titleTextBox.Text; if (this.StatProSection.Text == "Analytics") { this.urlTextBox.Text = "https://revolution.statpro.com/go?menu_id=MS_Analysis_Section"; } else if (this.StatProSection.Text == "Compliance") { this.urlTextBox.Text = "https://revolution.statpro.com/go?menu_id=MS_Compliance_Section"; } else { this.urlTextBox.Text = "https://revolution.statpro.com/go?menu_id=MS_FixedIncome_Section"; } this.Parameters.URL = WebBrowserMvvmHelper.NormalizeUrl(this.urlTextBox.Text); this.Parameters.Section = this.StatProSection.Text; DialogResult = true; }
private bool CanProcessWebPage() { return(WebBrowserMvvmHelper.VerifyUrlFormat(this.UrlForTitle)); }