Exemplo n.º 1
0
        /// <summary>
        /// Loads the BotConfig
        /// </summary>
        private void LoadMaoubotConfig()
        {
            this.BotFile = BotConfig.LoadFromXml(MaoubotConfigPath);
            if (this.BotFile == null)
            {
                SaveMaoubotConfig();
                LoadMaoubotConfig();
                return;
            }

            this.checkBoxEnableSubMessage.Checked = BotFile.EnableSubMessage;
            this.textBoxSubMessageNew.Text        = BotFile.SubMessageNew;
            this.textBoxSubMessageResub.Text      = BotFile.SubMessageResub;

            this.checkBoxEnableCommands.Checked = BotFile.EnableCommands;
        }