Beispiel #1
0
 protected GlobalFlagsTabViewModelBase(GlobalFlagUsage usage)
 {
     _flags = GlobalFlags.Flags.Where(flag => (flag.Usage & usage) == usage)
              .Select(flag => new GlobalFlagViewModel(this, flag, usage)).ToList();
     CollectionViewSource.GetDefaultView(Flags).GroupDescriptions.Add(
         new PropertyGroupDescription("Category"));
     CalculateFlags();
 }
Beispiel #2
0
 public GlobalFlag(string name, uint value, GlobalFlagUsage usage)
 {
     Name  = name;
     Value = value;
     Usage = usage;
 }
Beispiel #3
0
 public GlobalFlagViewModel(GlobalFlagsTabViewModelBase vm, GlobalFlag flag, GlobalFlagUsage usage)
 {
     Flag      = flag;
     _vm       = vm;
     IsVisible = (usage & flag.Usage) == usage;
 }