Esempio n. 1
0
        private void Main_Load(object sender, EventArgs e)
        {
            docmanager = new DocumentManager(this);
            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");
            dockPanel.ActiveDocumentChanged += new EventHandler(dockPanel_ActiveDocumentChanged);

            if (File.Exists(configFile))
                dockPanel.LoadFromXml(configFile, m_deserializeDockContent);
        }
 public AbstractCommand(Main form)
 {
     this.form = form;
     doc = new DocumentManager(form);
 }