protected virtual void OnWindowChanged(SetTitleEventArgs e) { if(this.WindowChanged != null) // nothing subscribed to this event { this.WindowChanged(this, e); } }
private void HandleWindow(object sender, SetTitleEventArgs e) // called by: SetWindowText: picLoad, Rename, Remove { int count = 0; if (e.NewValue != "") { _currentPath = e.NewValue; string fname = Path.GetFileNameWithoutExtension(_currentPath); count = fname.Count(f => f == '+'); } this.Text = e.NewValue + " - Next-View"; bnPlus.Image = imageList2.Images[count]; }