示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (gladeFileOpen.ShowDialog() == DialogResult.OK)
     {
         string FileName = gladeFileOpen.FileName;
         gladeParser = new GladeParser(FileName);
     }
 }
示例#2
0
        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);
        }