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

            if (ImageNameChanged != null)
            {
                ImageNameChanged(this, ea);
            }
            _okButton.Enabled = !ea.Cancel;
        }
示例#3
0
文件: MainForm.cs 项目: rsdn/janus
		void ImageNameForm_ImageNameChanged(object sender, ImageNameChangedEventArgs e)
		{
			e.Cancel = !IsNameValid(e.ImageName) || _rootFolder.HasImage(e.ImageName);
		}
示例#4
0
 void ImageNameForm_ImageNameChanged(object sender, ImageNameChangedEventArgs e)
 {
     e.Cancel = !IsNameValid(e.ImageName) || _rootFolder.HasImage(e.ImageName);
 }