Ejemplo n.º 1
0
 //Create view item window and populate with selected item details
 protected void OnViewEvent(object sender, System.EventArgs e)
 {
     StockView view = new StockView (stock_list, app, 2);
     StockItem s = TreeviewSelectionEvent (this, e);
     view.BuildView (s);
     view.Show ();
 }
Ejemplo n.º 2
0
 //Create update item window
 protected void OnEditEvent(object sender, System.EventArgs e)
 {
     StockItem s = TreeviewSelectionEvent (this, e);
     if (s != null) {
         StockView view = new StockView (stock_list, app, 2);
         view.BuildView (s);
         view.Show ();
     } else
         YouHaventSelectedMsg ();
 }