Example #1
0
 //The Delete was accepted
 protected void AcceptDeleteButton_Click(object sender, EventArgs e)
 {
     using (SliceOfPieClient.Service.SliceOfPieServiceClient serv = new SliceOfPieClient.Service.SliceOfPieServiceClient())
     {
         serv.DeleteDocument(activeProject.Id, activeDoc.Id, WelcomeForm.active);
         // Turns the panels invisible
         DynamicPanelInvisible();
         DynamicProjectPanelInvisible();
         // Updates the view
         UpdateProjects();
         UpdateTreeView(activeProject.Id);
         // And expands the tree for the user
         TreeView1.ExpandAll();
     }
 }