aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/CodeObjectModifier.cs
blob: 3d6be1b04ed98b184fd1ff6098518b511e6189f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    /// <summary>
    /// Represents a code object modifiers enumeration.
    /// </summary>
    public enum CodeObjectModifier
    {
        /// <summary>
        /// Public modifier.
        /// </summary>
        Public,
        /// <summary>
        /// Internal modifier.
        /// </summary>
        Internal,
        /// <summary>
        /// Protected modifier.
        /// </summary>
        Protected,
        /// <summary>
        /// Private modifier.
        /// </summary>
        Private,
        /// <summary>
        /// No modifier.
        /// </summary>
        None,
    }
}
n class="w"> : RelayCommand, ISolutionItemCommand, INotifyPropertyChanged { public SolutionItemCommand() : base(()=> { }) { Init(); } public SolutionItemCommand(Action<object> action) : base(action) { Init(); } public SolutionItemCommand(Action action) : base(action) { Init(); } public SolutionItemCommand(Action<object> action, Func<object, bool> canExecute) : base(action, canExecute) { Init(); } public SolutionItemCommand(Action<object> action, Func<bool> canExecute) : base(action, canExecute) { Init(); } public SolutionItemCommand(Action action, Func<object, bool> canExecute) : base(action, canExecute) { Init(); } public SolutionItemCommand(Action action, Func<bool> canExecute) : base(action, canExecute) { Init(); } private void Init() { Commands = new ObservableCollection<ISolutionItemCommand>(); } public String Name { get; set; } BitmapSource _bImage; public event PropertyChangedEventHandler PropertyChanged; public BitmapSource Image { get { return _bImage; } set { _bImage = value; RaisePropertyChanged(nameof(Image)); } } public ObservableCollection<ISolutionItemCommand> Commands { get; set; } protected virtual void RaisePropertyChanged(String propName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName)); } } }