Ejemplo n.º 1
0
 internal void OnIsCheckedChanged(FilterVM filterVM)
 {
     // Prevent the control from shrinking in size. That will make clicking with
     // the mouse much more difficult.
     if (filters.Any(a => a.IsChecked))
     {
         control.MinHeight = control.ActualHeight;
     }
     else
     {
         control.MinHeight = 0;
     }
     Refilter();
 }
Ejemplo n.º 2
0
        public string GetToolTip(FilterVM filterVM)
        {
            if (session.IsDismissed)
            {
                return(null);
            }
            var toolTip   = filterVM.ToolTip;
            var accessKey = filterVM.AccessKey;

            if (string.IsNullOrEmpty(toolTip))
            {
                return(null);
            }
            if (!string.IsNullOrEmpty(accessKey))
            {
                return(string.Format("{0} ({1})", toolTip, string.Format(dnSpy_Resources.ShortCutKeyAltPlusAnyKey, accessKey.ToUpper())));
            }
            return(toolTip);
        }
Ejemplo n.º 3
0
		public string GetToolTip(FilterVM filterVM) {
			if (filterVM == null)
				throw new ArgumentNullException(nameof(filterVM));
			if (session.IsDismissed)
				return null;
			var toolTip = filterVM.ToolTip;
			var accessKey = filterVM.AccessKey;
			if (string.IsNullOrEmpty(toolTip))
				return null;
			if (!string.IsNullOrEmpty(accessKey))
				return string.Format("{0} ({1})", toolTip, string.Format(dnSpy_Resources.ShortCutKeyAltPlusAnyKey, accessKey.ToUpper()));
			return toolTip;
		}
Ejemplo n.º 4
0
		internal void OnIsCheckedChanged(FilterVM filterVM) {
			// Prevent the control from shrinking in size. That will make clicking with
			// the mouse much more difficult.
			if (filters.Any(a => a.IsChecked))
				control.MinHeight = control.ActualHeight;
			else
				control.MinHeight = 0;
			Refilter();
		}
Ejemplo n.º 5
0
 public ImageSource GetImageSource(FilterVM filterVM) => GetImageSource(filterVM.Image);