namespace TaskBarPlus {
public partial class Form2 : Form {
    public Form2() {
        InitializeComponent();
    }
    public class General {
        public enum ProcessPriority { Low = 0, Normal = 1, High = 2 }; ProcessPriority _Priority;
        [Category("Settings"), DisplayName("Application Priority")] public ProcessPriority Priority {
            get { return _Priority; }
            set {
                _Priority = value;
                switch (value) {
                    case 0: Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Idle;
                    case 1: Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Normal;
                    case 2: Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High;
                }
            }
        }
    }
    private void Form2_Load(object sender, EventArgs e) {
        General general = new General();
        propertyGrid1.SelectedObject = general;
    }
}
}
Error Cannot implicitly convert type 'int' to 'Form2.General.ProcessPriority'. An explicit conversion exists (are you missing a cast?)
 
     
     
    