SimpleEpub2.SettingsObject.loadFromSettings C# (CSharp) Method

loadFromSettings() public method

public loadFromSettings ( Settings sts ) : void
sts Settings
return void
        public void loadFromSettings(Settings sts)
        {
            coverFirstPage = sts.pg1.settings1_3_coverfirstpage.Value;
            coverNoTOC = sts.pg1.settings1_3_covernoTOC.Value;
            verticalText = sts.pg1.settings1_3_vertical.Value;
            replaceNumByHan = sts.pg1.settings1_3_replace.Value;
            StT = sts.pg1.settings1_3_StT.Value;
            TtS = sts.pg1.settings1_3_TtS.Value;
            embedFontSubset = sts.pg1.settings1_3_embedFontSubset.Value;
            generateMOBI = sts.pg1.settings1_3_generateMOBI.Value;
            bookNameFont = sts.pg2.settings2_3_booknamefont.Text;
            authorNameFont = sts.pg2.settings2_3_authornamefont.Text;
            pageColor = sts.pg2.settings2_1_pc.SelectedColor;
            marginT = Int32.Parse(sts.pg2.settings2_2_pmT.Text);
            marginB = Int32.Parse(sts.pg2.settings2_2_pmB.Text);
            marginL = Int32.Parse(sts.pg2.settings2_2_pmL.Text);
            marginR = Int32.Parse(sts.pg2.settings2_2_pmR.Text);
            titleFont = sts.pg3.settings3_1_tfont.Text;
            titleColor = sts.pg3.settings3_1_tcolor.SelectedColor;
            bodyFont = sts.pg3.settings3_2_bfont.Text;
            bodyColor = sts.pg3.settings3_2_bcolor.SelectedColor;
            lineSpacing = Int32.Parse(sts.pg3.settings3_3_linespacing.Text);
            addParagraphSpacing = sts.pg3.settings3_3_addparagraphspacing.Value;
            dropCap = sts.pg3.settings3_3_dropCap.Value;
            stickupCap = sts.pg3.settings3_3_stickupCap.Value;
            fileLocation = sts.pg4.settings4_1_filelocation.Text;
            deleteTempFiles = sts.pg4.settings4_2_deletetempfiles.Value;
            autoUpdate = sts.pg4.settings4_4_chkupd.Value;
            language = (sts.pg4.settings4_4_language.Text.CompareTo("English") == 0) ? "en_" :
                ((sts.pg4.settings4_4_language.Text.CompareTo("简体中文") == 0) ? "zh_" : "null");
        }