コード例 #1
0
        // Methods
        // --------------------------------------------------------------------------
        #region Methods
        protected virtual void LoadConfigurationFile()
        {
            XElement root = XElement.Load(this.ConfigurationFile);

            this.PersonalConfiguration      = PersonalConfiguration.FromXml(root);
            this.MiscellaneousConfiguration = MiscellaneousConfiguration.FromXml(root);
            this.TimesheetConfiguration     = TimesheetConfiguration.FromXml(root);
            this.InvoiceConfiguration       = InvoiceConfiguration.FromXml(root);
            this.RatesConfiguration         = RatesConfiguration.FromXml(root);
            this.DayTypeConfiguration       = DayTypeConfiguration.FromXml(root);

            // Set the configuration to NOT dirty - we just loaded it!
            this.IsDirty = false;
        }