private void button1_Click(object sender, EventArgs e) { if (gladeFileOpen.ShowDialog() == DialogResult.OK) { string FileName = gladeFileOpen.FileName; gladeParser = new GladeParser(FileName); } }
private void OpenGladeFile(string FileName) { gladeParser = new GladeParser(FileName); Storage.Parser = gladeParser; GuiManager.dockPanel = MainDockPanel; var WidgetForm = GuiManager.CreateWindowPanel(Storage.Parser.FormBindingSources, FileName); WidgetForm.Show(MainDockPanel, DockState.Document); }