Esempio n. 1
0
		private void NameBoxTextChanged(object sender, EventArgs e)
		{
			var ea = new ImageNameChangedEventArgs(ImageName);
			if (ImageNameChanged != null)
				ImageNameChanged(this, ea);
			_okButton.Enabled = !ea.Cancel;
		}
Esempio n. 2
0
        private void NameBoxTextChanged(object sender, EventArgs e)
        {
            var ea = new ImageNameChangedEventArgs(ImageName);

            if (ImageNameChanged != null)
            {
                ImageNameChanged(this, ea);
            }
            _okButton.Enabled = !ea.Cancel;
        }
Esempio n. 3
0
		void ImageNameForm_ImageNameChanged(object sender, ImageNameChangedEventArgs e)
		{
			e.Cancel = !IsNameValid(e.ImageName) || _rootFolder.HasImage(e.ImageName);
		}
Esempio n. 4
0
 void ImageNameForm_ImageNameChanged(object sender, ImageNameChangedEventArgs e)
 {
     e.Cancel = !IsNameValid(e.ImageName) || _rootFolder.HasImage(e.ImageName);
 }