Esempio n. 1
0
 /// <summary>
 ///     Triggered when the "Insert" operation is requested
 /// </summary>
 public override void OnQueryInsert()
 {
     using (var dialog = new TripPropertiesDialog(new Trip()
     {
         Product = new Product()
     }))
         dialog.ShowDialog(this);
     RenderItems();
 }
Esempio n. 2
0
 /// <summary>
 ///     Triggered when the "Properties" operation is requested
 /// </summary>
 /// <param name="target">The list view item associated with the request</param
 public override void OnQueryProperties(object target)
 {
     using (var dialog = new TripPropertiesDialog((Trip)target))
         dialog.ShowDialog(this);
     RenderItems();
 }