private void LoadConfiguration(ConfigureEventArgs cpea)
        {
            var databaseFileNode = (XmlElement)cpea.Document.SelectSingleNode("//cherryTomato/databaseFile");
            if (databaseFileNode != null)
            {
                this.databaseFilename = databaseFileNode.GetAttribute("path");
            }

            this.connection = new DatabaseConnection(this.databaseFilename);
            var ea = new ConnectToDbEventArgs(this.connection);
            this.connectToDbEvent.Fire(ea);
        }
示例#2
0
        private void LoadConfiguration(ConfigureEventArgs cpea)
        {
            var databaseFileNode = (XmlElement)cpea.Document.SelectSingleNode("//cherryTomato/databaseFile");

            if (databaseFileNode != null)
            {
                this.databaseFilename = databaseFileNode.GetAttribute("path");
            }

            this.connection = new DatabaseConnection(this.databaseFilename);
            var ea = new ConnectToDbEventArgs(this.connection);

            this.connectToDbEvent.Fire(ea);
        }