Beispiel #1
0
 public void InvalidateAll()
 {
     OnTitleChanged?.Invoke();
     OnIconChanged?.Invoke();
     OnOverlayIconChanged?.Invoke();
     OnAttentionIconChanged?.Invoke();
     OnTooltipChanged?.Invoke();
 }
Beispiel #2
0
 private void MWebBrowser_TitleChanged(object sender, CefSharp.TitleChangedEventArgs e)
 {
     if (null == titleChangeMethod)
     {
         titleChangeMethod = new OnTitleChanged(onTitleChanged);
     }
     lblTitle.Invoke(titleChangeMethod, e.Title);
 }
Beispiel #3
0
 /// <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);
     }
 }
Beispiel #4
0
 /// <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);
     }
 }
Beispiel #5
0
 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);
 }
Beispiel #6
0
 /// <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);
     }
 }