public void reNew() { darkTextBox1.Text = ""; darkSectionPanel2.Enabled = false; nameLbl.Text = "Name: "; idLbl.Text = "Id: "; DescLbl.Text = "Description: "; authorLbl.Text = "Author: "; pandaContext = null; pandaEngine = null; }
private void darkButton1_Click(object sender, EventArgs e) { OpenFileDialog op = new OpenFileDialog(); if (op.ShowDialog() == DialogResult.OK) { darkTextBox1.Text = op.FileName; try { pandaContext = new PandaContext(op.FileName); pandaModuleManager = new PandaModuleManager(); pandaEngine = new PandaEngine(pandaContext); darkSectionPanel2.Enabled = true; }catch (Exception) { darkSectionPanel2.Enabled = false; } } }