Esempio n. 1
0
 /// <summary>
 /// Select
 /// </summary>
 /// <param name="item">The item to select</param>
 public virtual void SetSelectedItem(Domain.Persistent item)
 {
     if (item != null)
     {
         item.IsSelected = true;
     }
     else
     {
         Domain.Persistent selection = GetSelectedItem();
         if (selection != null)
         {
             selection.IsSelected = false;
         }
     }
 }
Esempio n. 2
0
 private void OnTimeTick(object sender, EventArgs e)
 {
     this.Timer.Stop();
     //Handle single click
     Domain.Persistent value = GetSelectedItem();
     if (value != null)
     {
         if (value.IsDefault)
         {
             PerformDefaultAction(value);
         }
         else if (Click != null)
         {
             Click(value);
         }
     }
 }