protected void OnBtnModifyClicked(object sender, System.EventArgs e) { NodeSelection ns = view.NodeSelection; if ( ns.SelectedNodes.Length > 0 ) { ResourceTreeNode rt = (ResourceTreeNode)ns.SelectedNode; Resource r = rt.GetResource(); ResourceWindow rw = new ResourceWindow(r); rw.Show(); } }
protected void OnBtnNewClicked(object sender, System.EventArgs e) { ResourceWindow rw = new ResourceWindow(null); rw.Show(); }