コード例 #1
0
 public override void OnClick(bool shouldSelect)
 {
     if (shouldSelect)
     {
         if (MaterialTileListViewModel == null)
         {
             MaterialTileListViewModel = new MaterialTileListViewModel(this);
         }
         Parent.MaterialTileListViewModel = MaterialTileListViewModel;
         ContentBackgrund = BackgroundColors.TechnicianTileMouseOn;
     }
     else
     {
         ContentBackgrund = BackgroundColors.TechnicianTile;
     }
     IsSelected = shouldSelect;
 }
コード例 #2
0
 public MaterialTileViewModel(MaterialTileListViewModel parent)
 {
     Parent = parent;
     DeleteMaterialButton = new SymbolIconButtonViewModel(new DelegateCommand(OnDeleteMaterial), ViewConstants.DeleteSymbol);
 }