Exemplo n.º 1
0
 public void UnSelect()
 {
     IsSelected        = false;
     selectedObject    = null;
     renderer.material = originalMaterial;
     UnSelected?.Invoke();
 }
        private void SelectCheckBox_SelectionChanged(object sender, bool e)
        {
            
 selectableMedicine.IsSelected = e; 
            if (e)

            {
                
            {
                    
 Selected?.Invoke(this, selectableMedicine.Entity); 

                }
            }
            
 else
            {
                
 UnSelected?.Invoke(this, selectableMedicine.Entity); 

            }
        }
Exemplo n.º 3
0
 public void ProcessEvents(Event e)
 {
     switch (e.type)
     {
     case EventType.mouseUp:
         if (_isSelected)
         {
             _isSelected = false;
             UnSelected?.Invoke();
         }
         break;
     }
 }