public void InvalidateAll() { OnTitleChanged?.Invoke(); OnIconChanged?.Invoke(); OnOverlayIconChanged?.Invoke(); OnAttentionIconChanged?.Invoke(); OnTooltipChanged?.Invoke(); }
private void MWebBrowser_TitleChanged(object sender, CefSharp.TitleChangedEventArgs e) { if (null == titleChangeMethod) { titleChangeMethod = new OnTitleChanged(onTitleChanged); } lblTitle.Invoke(titleChangeMethod, e.Title); }
/// <summary> /// When the user changes the combo box check to see if the text has changed. /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up. /// </summary> private void OnPositionComboChanged(object sender, EventArgs e) { if (OriginalText == null) { OriginalText = TitleTextBox.Text; } if (TitleTextBox.Text != OriginalText && OnTitleChanged != null) { OriginalText = TitleTextBox.Text; OnTitleChanged.Invoke(TitleTextBox.Text); } }
/// <summary> /// When the user changes the combo box check to see if the text has changed. /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up. /// </summary> private void OnPositionComboChanged(object sender, EventArgs e) { if (originalText == null) { originalText = entry1.Text; } if (entry1.Text != originalText && OnTitleChanged != null) { originalText = entry1.Text; OnTitleChanged.Invoke(entry1.Text); } }
private void MWebBrowser_AddressChanged(object sender, AddressChangedEventArgs e) { try { mIBrowser.MainFrame.EvaluateScriptAsync("Object.defineProperty(this,'navigator',{value :{platform :\"Android\"}});"); } catch { } if (null == addressChangeMethod) { addressChangeMethod = new OnTitleChanged(onAddressChanged); } lblTitle.Invoke(addressChangeMethod, e.Address); }
/// <summary> /// When the user changes the combo box check to see if the text has changed. /// If so then invoke the 'OnPositionChanged' event so that the presenter can pick it up. /// </summary> private void OnPositionComboChanged(object sender, EventArgs e) { try { if (originalText == null) { originalText = entry1.Text; } if (entry1.Text != originalText && OnTitleChanged != null) { originalText = entry1.Text; OnTitleChanged.Invoke(entry1.Text); } } catch (Exception err) { ShowError(err); } }