private void Projectbox_DoubleClick(object sender, MouseEventArgs e) { UserProject project = (UserProject)Projectbox.SelectedItem; if (SelectedProject != null) { SelectedProject.Invoke(sender, project); } Close(); }
private void DlPage_SelectedProject(object sender, UserProject e) { NewWorkspace(); try { blockList = Compiler.DecompileFile(e.Content); } catch (Exception ex) { MessageBox.Show(ex.Message); } foreach (Block block in blockList) { panelWorkspace.Controls.Add(block); } }