Esempio n. 1
0
		protected virtual void OnWindowChanged(SetTitleEventArgs e)
		{
			if(this.WindowChanged != null)     // nothing subscribed to this event
			{
				this.WindowChanged(this, e);
			}
		}
Esempio n. 2
0
        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];
        }