예제 #1
0
        //查找结束节
        private void listViewVerseNumberEnd_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                if (listViewVerseNumberEnd.SelectedIndices.Count > 0)
                {
                    StrTitle   = "";
                    StrLection = "";

                    StrTitle = listViewVolume.SelectedItems[0].Text + " " + (listViewChapter.SelectedIndices[0] + 1).ToString() + ":" + (listViewVerseNumberBegin.SelectedIndices[0] + 1).ToString() + "-" + ((int)listViewVerseNumberEnd.SelectedItems[0].Tag + 1).ToString();

                    StrLection = BibleHelper.GetLectionByVolumeSNandChapterSN(listViewVolume.SelectedIndices[0] + 1, listViewChapter.SelectedIndices[0] + 1, listViewVerseNumberBegin.SelectedIndices[0] + 1, (int)listViewVerseNumberEnd.SelectedItems[0].Tag + 1);

                    ////开始节号与结束节号
                    CalculateVerseNumberCount(listViewVerseNumberBegin.SelectedIndices[0] + 1, (int)listViewVerseNumberEnd.SelectedItems[0].Tag + 1);

                    //显示经文
                    ShowLectionContent();

                    //保存此处经文到右侧列表中
                    this.listViewLectionList.Items.Add(new ListViewItem(new string[] { (this.listViewLectionList.Items.Count + 1).ToString(), StrTitle }));

                    this.Cursor = Cursors.Default;
                }
            }
            catch (Exception)
            {
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
예제 #2
0
        //根据缩略名和章节等显示经文
        private void ShowLectionByVolumeNameEtc(string strVolumeNameEtc, bool bIsShortVolumeName)
        {
            //拆解卷名,章号,起始节号,结束节号
            string strVolumeName = "";
            int    iChapterSN    = -1;
            int    iVerseSNBegin = -1;
            int    iVerseSNEnd   = -1;

            if (strVolumeNameEtc.Contains(' '))
            {
                strVolumeName = strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf(' '));

                strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf(' ') + 1);

                if (strVolumeNameEtc[0] == ':')
                {
                    return;
                }

                iChapterSN = int.Parse(strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf(':')));

                strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf(':') + 1);


                if (strVolumeNameEtc.Contains('-'))
                {
                    //路 1:1-2

                    iVerseSNBegin    = int.Parse(strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf('-')));
                    strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf('-') + 1);
                    iVerseSNEnd      = int.Parse(strVolumeNameEtc);

                    StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin + "-" + iVerseSNEnd;
                }
                else
                {
                    //路 1:3
                    iVerseSNBegin = int.Parse(strVolumeNameEtc);
                    iVerseSNEnd   = iVerseSNBegin;

                    StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin;
                }

                if (iVerseSNEnd >= iVerseSNBegin)
                {
                    if (bIsShortVolumeName)
                    {
                        StrLection = BibleHelper.GetLectionByShortNameandChapterSN(strVolumeName, iChapterSN, iVerseSNBegin, iVerseSNEnd);
                    }
                    else
                    {
                        StrLection = BibleHelper.GetLectionByFullNameandChapterSN(strVolumeName, iChapterSN, iVerseSNBegin, iVerseSNEnd);
                    }
                }

                //开始节号与结束节号
                CalculateVerseNumberCount(iVerseSNBegin, iVerseSNEnd);
            }
        }
예제 #3
0
        //根据选择的开始节数显示将结束的节数
        private void uclpVerseNumberBeginSelected(object sender, EventArgs e)
        {
            this.Controls.Remove(uclpVerseNumberEnd);

            _iVerseNumberBegin = int.Parse(((LinkLabel)sender).Tag.ToString());

            int iMaxVerseNum = BibleHelper.GetVerseCountByVolumeSNAndChapterSN(BibleHelper.GetVolumeSNbyFullName(_strVolumeName), _iChapterNumber);


            string strTemp = _strVolumeName + " " + _iChapterNumber + ":" + _iVerseNumberBegin;


            ShowLectionByVolumeNameEtc(strTemp, false);

            //添加到经文列表中
            _formControl.listViewLectionList.Items.Add(new ListViewItem(new string[] { (_formControl.listViewLectionList.Items.Count + 1).ToString(), strTemp }));


            //如果没有结束经文,则直接显示经文
            if ((iMaxVerseNum - _iVerseNumberBegin) <= 0)
            {
            }
            else
            {
                string[,] strArray = new string[iMaxVerseNum - _iVerseNumberBegin, 2];
                for (int i = 0; i < iMaxVerseNum - _iVerseNumberBegin; i++)
                {
                    strArray[i, 0] = "->" + (i + 1 + _iVerseNumberBegin).ToString() + "节";
                    strArray[i, 1] = (i + 1 + _iVerseNumberBegin).ToString();
                }

                if (this.Controls.Contains(uclpVerseNumberEnd))
                {
                    this.Controls.Remove(uclpVerseNumberEnd);
                }

                uclpVerseNumberEnd.LoadData(strArray);
                this.Controls.Add(uclpVerseNumberEnd);


                if (_iMouseScreenX + 20 < uclpVerseNumberBegin.Right && _iMouseScreenX + 20 > uclpVerseNumberBegin.Left)
                {
                    uclpVerseNumberEnd.Left = _iMouseScreenX + 20;
                }
                else
                {
                    uclpVerseNumberEnd.Left = uclpVerseNumberBegin.Right + 0;
                }

                uclpVerseNumberEnd.Top = 22;

                uclpVerseNumberEnd.BringToFront();

                this.Refresh();
            }
        }
예제 #4
0
        //查找开始节
        private void listViewVerseNumberBegin_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                int iVerseCount = listViewVerseNumberBegin.Items.Count;

                listViewVerseNumberEnd.Items.Clear();


                if (listViewVerseNumberBegin.SelectedItems.Count <= 0)
                {
                    return;
                }

                for (int i = listViewVerseNumberBegin.SelectedIndices[0] + 1; i < iVerseCount; i++)
                {
                    listViewVerseNumberEnd.Items.Add("--> " + (i + 1).ToString() + " 节");

                    listViewVerseNumberEnd.Items[listViewVerseNumberEnd.Items.Count - 1].Tag = i;
                }

                ////如果当前选择的节数是本章最后一节,则直接显示这节经文
                //if (listViewVerseNumberBegin.SelectedIndices[0] + 1 == iVerseCount)
                //{
                StrTitle   = "";
                StrLection = "";

                StrTitle   = listViewVolume.SelectedItems[0].Text + " " + (listViewChapter.SelectedIndices[0] + 1).ToString() + ":" + (listViewVerseNumberBegin.SelectedIndices[0] + 1).ToString();
                StrLection = BibleHelper.GetLectionByVolumeSNandChapterSN(listViewVolume.SelectedIndices[0] + 1, listViewChapter.SelectedIndices[0] + 1, listViewVerseNumberBegin.SelectedIndices[0] + 1);


                //开始节号与结束节号
                CalculateVerseNumberCount(listViewVerseNumberBegin.SelectedIndices[0] + 1, listViewVerseNumberBegin.SelectedIndices[0] + 1);


                //显示经文
                ShowLectionContent();

                //保存此处经文到右侧列表中
                this.listViewLectionList.Items.Add(new ListViewItem(new string[] { (this.listViewLectionList.Items.Count + 1).ToString(), StrTitle }));

                //}
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #5
0
        private void ShowFullNameList(bool bNewOrOld)
        {
            string strTemp = BibleHelper.GetFullNameListByNewOrOld(bNewOrOld);

            if (strTemp.Contains('|'))
            {
                string[] strArray1 = strTemp.Split('|');

                int iVolume = strArray1.Length;
                //iVolume += 2;

                //切换新旧约的按钮

                string[,] strArray2 = new string[iVolume, 2];
                for (int i = 0; i < iVolume; i++)
                {
                    strArray2[i, 0] = strArray1[i];
                    strArray2[i, 1] = strArray1[i];
                }

                if (this.Controls.Contains(uclpChapterNumber))
                {
                    this.Controls.Remove(uclpChapterNumber);
                }

                uclpVolumeName.LoadData(strArray2);
                this.Controls.Add(uclpVolumeName);
                uclpVolumeName.BringToFront();

                uclpVolumeName.Left = 0;
                uclpVolumeName.Top  = 22;


                buttonOldTestament.Left = 0;
                buttonOldTestament.Top  = 0;

                buttonNewTestament.Left = buttonOldTestament.Right;
                buttonNewTestament.Top  = 0;

                buttonNewTestament.Visible = true;
                buttonOldTestament.Visible = true;
                buttonNewTestament.BringToFront();
                buttonOldTestament.BringToFront();
            }

            this.Refresh();
        }
예제 #6
0
        //查找章
        private void listViewChapter_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                int iVerseCount = BibleHelper.GetVerseCountByVolumeSNAndChapterSN(listViewVolume.SelectedIndices[0] + 1, listViewChapter.SelectedIndices[0] + 1);

                listViewVerseNumberBegin.Items.Clear();
                listViewVerseNumberEnd.Items.Clear();


                for (int i = 0; i < iVerseCount; i++)
                {
                    listViewVerseNumberBegin.Items.Add((i + 1).ToString() + " 节");
                }
            }
            catch (Exception)
            {
            }
        }
예제 #7
0
        private void ShowVolumeNameByPinYin()
        {
            string strTemp = BibleHelper.GetFullNameListAndPinYinbyVolumePinYin(_formControl.StrSearchByPinYin);

            if (strTemp.Length > 0)
            {
                //显示在列表中
                panelPinyin.BringToFront();
                panelPinyin.Visible = true;

                labelPinyin.Text = "";

                if (strTemp.Contains('|'))
                {
                    //listBoxPinyin.Dock = DockStyle.Top;
                    listBoxPinyin.Visible = true;
                    listBoxPinyin.Items.Clear();
                    listBoxPinyin.Items.AddRange(strTemp.Split('|'));
                    panelPinyin.Height = 245;

                    strTemp          = listBoxPinyin.Items[0].ToString().Substring(listBoxPinyin.Items[0].ToString().IndexOf(' ') + 1);
                    labelPinyin.Text = strTemp + " ";;
                }
                else
                {
                    strTemp          = strTemp.Substring(strTemp.IndexOf(' ') + 1);
                    labelPinyin.Text = strTemp + " ";;
                    listBoxPinyin.Items.Clear();
                    listBoxPinyin.Visible = false;
                    //listBoxPinyin.Dock = DockStyle.None;
                    panelPinyin.Height = 20;
                }
            }
            else
            {
                labelPinyin.Text = "";
                panelPinyin.SendToBack();
                panelPinyin.Visible = false;

                _formControl.StrSearchByPinYin = "";
            }
        }
예제 #8
0
        private void uclpVolumeNameSelected(object sender, EventArgs e)
        {
            this.Controls.Remove(uclpChapterNumber);
            this.Controls.Remove(uclpVerseNumberBegin);
            this.Controls.Remove(uclpVerseNumberEnd);

            _strVolumeName = ((LinkLabel)sender).Tag.ToString();
            int iMaxChapterNum = BibleHelper.GetChapterCountByVolumeSN(BibleHelper.GetVolumeSNbyFullName(_strVolumeName));

            string[,] strArray = new string[iMaxChapterNum, 2];
            for (int i = 0; i < iMaxChapterNum; i++)
            {
                strArray[i, 0] = (i + 1).ToString() + "章";
                strArray[i, 1] = (i + 1).ToString();
            }

            if (this.Controls.Contains(uclpChapterNumber))
            {
                this.Controls.Remove(uclpChapterNumber);
            }

            uclpChapterNumber.LoadData(strArray);
            this.Controls.Add(uclpChapterNumber);

            if (_iMouseScreenX + 20 < uclpVolumeName.Right && _iMouseScreenX + 20 > uclpVolumeName.Left)
            {
                uclpChapterNumber.Left = _iMouseScreenX + 20;
            }
            else
            {
                uclpChapterNumber.Left = uclpVolumeName.Right + 0;
            }
            uclpChapterNumber.Top = 22;


            uclpChapterNumber.BringToFront();

            this.Refresh();
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container,
                                          Bundle savedInstanceState)
        {
            // Inflate the layout for this fragment
            var dailyFragmentView = inflater.Inflate(Resource.Layout.fragment_daily_scripture, container, false);

            mActivity        = Activity;
            mDailyScriptures = BibleHelper.GetDailyScriptures(mActivity);
            mBible           = BibleHelper.GetBible(mActivity);

            mDailyReadingTitle   = (TextView)dailyFragmentView.FindViewById(Resource.Id.daily_reading_book_title);
            mDailyReadingContent = (TextView)dailyFragmentView.FindViewById(Resource.Id.daily_reading_bible_content);
            mPreviousButton      = (Button)dailyFragmentView.FindViewById(Resource.Id.btnPrevious);
            mNextButton          = (Button)dailyFragmentView.FindViewById(Resource.Id.btnNext);

            var fab = dailyFragmentView.FindViewById <FloatingActionButton>(Resource.Id.fab);

            fab.Click += FabOnClick;

            //mDiscussionFloatingActionButton = (FloatingActionButton)dailyFragmentView.FindViewById(Resource.Id.discussion_fab);
            //mDiscussionFloatingActionButton.Click += (sender, args) =>
            //{
            //    StartActivity(new Intent(mActivity, typeof(MainActivity)));
            //};

            //mDailyScripturesFloatingActionButton = (FloatingActionButton)dailyFragmentView.FindViewById(Resource.Id.daily_fab);

            //mDailyScripturesFloatingActionButton.Click += (sender, args) =>
            //        {
            //            ShowCalender();
            //        };

            mNextButton.Click += (sender, args) =>
            {
                var dailyReadingText = mDailyReadingTitle.Text;
                if (dailyReadingText.ToLower().Contains("first"))
                {
                    LoadDailyReading(13);
                }
                else if (dailyReadingText.ToLower().Contains("second"))
                {
                    LoadDailyReading(18);
                }
                else
                {
                    LoadDailyReading(1);
                }
            };



            mPreviousButton.Click += (sender, arg) =>
            {
                var dailyReadingText = mDailyReadingTitle.Text;
                if (dailyReadingText.ToLower().Contains("first"))
                {
                    LoadDailyReading(18);
                }
                else if (dailyReadingText.ToLower().Contains("second"))
                {
                    LoadDailyReading(1);
                }
                else
                {
                    LoadDailyReading(13);
                }
            };

            var now = DateTime.Now;

            todaysReading = mDailyScriptures[(now.Day) - 1];

            var timeOfTheDay = now.Hour;

            try
            {
                LoadDailyReading(timeOfTheDay);
            }
            catch (Exception exception)
            {
                Toast.MakeText(mActivity, string.Format("Unable to load reading plan.. :{0}", exception.Message), ToastLength.Long);
            }


            return(dailyFragmentView);
        }
예제 #10
0
        //根据缩略名和章节等显示经文
        private void ShowLectionByVolumeNameEtc(string strVolumeNameEtc, bool bIsShortVolumeName)
        {
            //拆解卷名,章号,起始节号,结束节号
            string strVolumeName = "";
            int    iChapterSN    = -1;
            int    iVerseSNBegin = -1;
            int    iVerseSNEnd   = -1;

            if (strVolumeNameEtc.Contains(' '))
            {
                strVolumeName = strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf(' '));

                strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf(' ') + 1);

                if (strVolumeNameEtc[0] == ':')
                {
                    return;
                }

                iChapterSN = int.Parse(strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf(':')));

                strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf(':') + 1);


                if (strVolumeNameEtc.Contains('-'))
                {
                    //路 1:1-2

                    iVerseSNBegin    = int.Parse(strVolumeNameEtc.Substring(0, strVolumeNameEtc.IndexOf('-')));
                    strVolumeNameEtc = strVolumeNameEtc.Substring(strVolumeNameEtc.IndexOf('-') + 1);
                    iVerseSNEnd      = int.Parse(strVolumeNameEtc);

                    _formControl.StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin + "-" + iVerseSNEnd;
                }
                else
                {
                    //路 1:3
                    iVerseSNBegin = int.Parse(strVolumeNameEtc);
                    iVerseSNEnd   = iVerseSNBegin;

                    _formControl.StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin;
                }

                if (iVerseSNEnd >= iVerseSNBegin)
                {
                    if (bIsShortVolumeName)
                    {
                        _formControl.StrLection = BibleHelper.GetLectionByShortNameandChapterSN(strVolumeName, iChapterSN, iVerseSNBegin, iVerseSNEnd);
                    }
                    else
                    {
                        _formControl.StrLection = BibleHelper.GetLectionByFullNameandChapterSN(strVolumeName, iChapterSN, iVerseSNBegin, iVerseSNEnd);
                    }


                    if (_formControl.StrTitle != "" && _formControl.StrLection != "")
                    {
                        ScrollScreenTo(0);
                        DrawText();
                    }
                }

                //生成节号字符串
                _formControl.CalculateVerseNumberCount(iVerseSNBegin, iVerseSNEnd);
            }

            uclpVolumeName.Enabled = false;
            uclpVolumeName.Enabled = true;

            uclpChapterNumber.Enabled = false;
            uclpChapterNumber.Enabled = true;

            uclpVerseNumberBegin.Enabled = false;
            uclpVerseNumberBegin.Enabled = true;

            uclpVerseNumberEnd.Enabled = false;
            uclpVerseNumberEnd.Enabled = true;
        }
예제 #11
0
        //验证是否为有效的
        private bool ValidatePinYin(string strPinYin)
        {
            //拆解卷名,章号,起始节号,结束节号
            string strVolumeName = "";
            int    iChapterSN    = -1;
            int    iVerseSNBegin = -1;
            int    iVerseSNEnd   = -1;

            int iVolumeSN = -1;

            try
            {
                if (strPinYin.Contains(' '))
                {
                    strVolumeName = strPinYin.Substring(0, strPinYin.IndexOf(' '));

                    iVolumeSN = BibleHelper.GetVolumeSNbyFullName(strVolumeName);

                    strPinYin = strPinYin.Substring(strPinYin.IndexOf(' ') + 1);

                    if (strPinYin[0] == ':')
                    {
                        return(false);
                    }

                    iChapterSN = int.Parse(strPinYin.Substring(0, strPinYin.IndexOf(':')));

                    //验证章数
                    if (iChapterSN > 0 && iChapterSN <= BibleHelper.GetChapterCountByVolumeSN(iVolumeSN))
                    {
                        //继续向下验证
                    }
                    else
                    {
                        return(false);
                    }

                    strPinYin = strPinYin.Substring(strPinYin.IndexOf(':') + 1);

                    if (strPinYin.Contains('-'))
                    {
                        //路 1:1-2

                        iVerseSNBegin = int.Parse(strPinYin.Substring(0, strPinYin.IndexOf('-')));
                        strPinYin     = strPinYin.Substring(strPinYin.IndexOf('-') + 1);
                        iVerseSNEnd   = int.Parse(strPinYin);

                        //_formControl.StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin + "-" + iVerseSNEnd;
                    }
                    else
                    {
                        //路 1:3
                        iVerseSNBegin = int.Parse(strPinYin);
                        iVerseSNEnd   = iVerseSNBegin;

                        //_formControl.StrTitle = strVolumeName + " " + iChapterSN + ":" + iVerseSNBegin;
                    }

                    //if (iVerseSNEnd >= iVerseSNBegin)
                    //{

                    int iVerseCount = -1;
                    iVerseCount = BibleHelper.GetVerseCountByVolumeSNAndChapterSN(iVolumeSN, iChapterSN);

                    if (iVerseCount <= 0)
                    {
                        return(false);
                    }


                    //验证开始节数
                    //验证终止节数
                    if (iVerseSNBegin > 0 && iVerseSNBegin <= iVerseCount && iVerseSNEnd > 0 && iVerseSNEnd <= iVerseCount)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                    //}
                }
            }
            catch (Exception)
            {
                return(false);
            }

            return(false);
        }
예제 #12
0
        private void FormControl_Load(object sender, EventArgs e)
        {
            //读取配置文件的初始值
            StrTitleFontName   = Settings.Default.TitleFontName;
            StrLectionFontName = Settings.Default.LectionFontName;
            ColorTitle         = Settings.Default.TitleColor;
            ColorVerseNumber   = Settings.Default.VerseNumberColor;
            ColorLection       = Settings.Default.LectionColor;
            ColorBack          = Settings.Default.BackColor;
            IntTitleFontSize   = Settings.Default.TitleFontSize;
            IntLectionFontSize = Settings.Default.LectionFontSize;

            IntLectionLeftSpace = Settings.Default.LectionLeftSpace;

            StrLastLectionList = Settings.Default.LastLectionList;

            //FontStyleTitle = Settings.Default.TitleFontStyle;
            switch (Settings.Default.TitleFontStyle)
            {
            case "正常":
                FontStyleTitle = FontStyle.Regular;
                break;

            case "加粗":
                FontStyleTitle = FontStyle.Bold;
                break;

            case "倾斜":
                FontStyleTitle = FontStyle.Italic;
                break;

            default:
                FontStyleTitle = FontStyle.Regular;
                break;
            }

            //FontStyleLection = Settings.Default.LectionFontStyle;
            switch (Settings.Default.LectionFontStyle)
            {
            case "正常":
                FontStyleLection = FontStyle.Regular;
                break;

            case "加粗":
                FontStyleLection = FontStyle.Bold;
                break;

            case "倾斜":
                FontStyleLection = FontStyle.Italic;
                break;

            default:
                FontStyleLection = FontStyle.Regular;
                break;
            }

            FloatFontSpaceScale = Settings.Default.FontSpaceScale;
            FloatLineSpaceScale = Settings.Default.LineSpaceScale;

            ReloadConfigParameters();

            _configHelper = new ConfigHelper();


            //显示投影窗口
            ShowScreen();
            //移动投影窗口到右上角
            _formScreen.Left = Screen.GetWorkingArea(this).Right - _formScreen.Width;
            _formScreen.Top  = Screen.GetWorkingArea(this).Top;


            //初始化控件原始数据

            #region 初始化控制台listview选择经文控件数据
            //填充经文书卷数据
            listViewVolume.Items.Clear();

            string[] arrayResult = new string[66];
            arrayResult = BibleHelper.GetFullNameList();

            for (int i = 0; i < 66; i++)
            {
                listViewVolume.Items.Add(arrayResult[i]);

                if (i < 39)
                {
                    listViewVolume.Items[i].BackColor = Color.LightPink;
                }
                else
                {
                    listViewVolume.Items[i].BackColor = Color.LightGreen;
                }
            }

            Array.Clear(arrayResult, 0, arrayResult.Length);

            #endregion


            #region 初始化控件数据
            //初始化经文列表下拉列表控件
            InitLectionList();

            //初始化标题字体,经文字体控件
            foreach (System.Drawing.FontFamily i in _objFont.Families)
            {
                comboBoxLectionFontName.Items.Add(i.Name.ToString());
                comboBoxTitleFontName.Items.Add(i.Name.ToString());
            }


            //初始化标题、经文字号
            comboBoxTitleFontSize.Items.Add("12");
            comboBoxTitleFontSize.Items.Add("20");
            comboBoxTitleFontSize.Items.Add("30");
            comboBoxTitleFontSize.Items.Add("35");
            comboBoxTitleFontSize.Items.Add("40");
            comboBoxTitleFontSize.Items.Add("45");
            comboBoxTitleFontSize.Items.Add("50");
            comboBoxTitleFontSize.Items.Add("60");
            comboBoxTitleFontSize.Items.Add("70");
            comboBoxTitleFontSize.Items.Add("80");
            comboBoxTitleFontSize.Items.Add("90");
            comboBoxTitleFontSize.Items.Add("100");
            comboBoxTitleFontSize.Items.Add("110");
            comboBoxTitleFontSize.Items.Add("120");
            comboBoxTitleFontSize.Items.Add("130");
            comboBoxTitleFontSize.Items.Add("140");
            comboBoxTitleFontSize.Items.Add("150");
            comboBoxTitleFontSize.Items.Add("200");



            comboBoxLectionFontSize.Items.Add("12");
            comboBoxLectionFontSize.Items.Add("20");
            comboBoxLectionFontSize.Items.Add("30");
            comboBoxLectionFontSize.Items.Add("35");
            comboBoxLectionFontSize.Items.Add("40");
            comboBoxLectionFontSize.Items.Add("45");
            comboBoxLectionFontSize.Items.Add("50");
            comboBoxLectionFontSize.Items.Add("60");
            comboBoxLectionFontSize.Items.Add("70");
            comboBoxLectionFontSize.Items.Add("80");
            comboBoxLectionFontSize.Items.Add("90");
            comboBoxLectionFontSize.Items.Add("110");
            comboBoxLectionFontSize.Items.Add("120");
            comboBoxLectionFontSize.Items.Add("130");
            comboBoxLectionFontSize.Items.Add("140");
            comboBoxLectionFontSize.Items.Add("150");
            comboBoxLectionFontSize.Items.Add("200");



            //初始化标题、经文的字体样式
            //comboBoxLectionFontStyle.Items.Add(FontStyle.Bold.ToString());
            //comboBoxLectionFontStyle.Items.Add(FontStyle.Italic.ToString());
            //comboBoxLectionFontStyle.Items.Add(FontStyle.Regular.ToString());
            //comboBoxLectionFontStyle.Items.Add(FontStyle.Strikeout.ToString());
            //comboBoxLectionFontStyle.Items.Add(FontStyle.Underline.ToString());

            comboBoxLectionFontStyle.Items.Add("正常");
            comboBoxLectionFontStyle.Items.Add("加粗");
            comboBoxLectionFontStyle.Items.Add("倾斜");

            //comboBoxTitleFontStyle.Items.Add(FontStyle.Bold.ToString());
            //comboBoxTitleFontStyle.Items.Add(FontStyle.Italic.ToString());
            //comboBoxTitleFontStyle.Items.Add(FontStyle.Regular.ToString());
            //comboBoxTitleFontStyle.Items.Add(FontStyle.Strikeout.ToString());
            //comboBoxTitleFontStyle.Items.Add(FontStyle.Underline.ToString());

            comboBoxTitleFontStyle.Items.Add("正常");
            comboBoxTitleFontStyle.Items.Add("加粗");
            comboBoxTitleFontStyle.Items.Add("倾斜");


            //初始化行间距
            comboBoxLineSpacing.Items.Add("-1");
            comboBoxLineSpacing.Items.Add("-0.9");
            comboBoxLineSpacing.Items.Add("-0.8");
            comboBoxLineSpacing.Items.Add("-0.7");
            comboBoxLineSpacing.Items.Add("-0.6");
            comboBoxLineSpacing.Items.Add("-0.5");
            comboBoxLineSpacing.Items.Add("-0.4");
            comboBoxLineSpacing.Items.Add("-0.3");
            comboBoxLineSpacing.Items.Add("-0.2");
            comboBoxLineSpacing.Items.Add("-0.1");
            comboBoxLineSpacing.Items.Add("0");
            comboBoxLineSpacing.Items.Add("0.1");
            comboBoxLineSpacing.Items.Add("0.2");
            comboBoxLineSpacing.Items.Add("0.3");
            comboBoxLineSpacing.Items.Add("0.4");
            comboBoxLineSpacing.Items.Add("0.5");
            comboBoxLineSpacing.Items.Add("0.6");
            comboBoxLineSpacing.Items.Add("0.7");
            comboBoxLineSpacing.Items.Add("0.8");
            comboBoxLineSpacing.Items.Add("0.9");
            comboBoxLineSpacing.Items.Add("1.0");
            comboBoxLineSpacing.Items.Add("1.2");
            comboBoxLineSpacing.Items.Add("1.5");
            comboBoxLineSpacing.Items.Add("2.0");
            comboBoxLineSpacing.Items.Add("2.5");
            comboBoxLineSpacing.Items.Add("2.3");
            comboBoxLineSpacing.Items.Add("5");


            //初始化字间距
            comboBoxFontSpacing.Items.Add("-1");
            comboBoxFontSpacing.Items.Add("-0.9");
            comboBoxFontSpacing.Items.Add("-0.8");
            comboBoxFontSpacing.Items.Add("-0.7");
            comboBoxFontSpacing.Items.Add("-0.6");
            comboBoxFontSpacing.Items.Add("-0.5");
            comboBoxFontSpacing.Items.Add("-0.4");
            comboBoxFontSpacing.Items.Add("-0.3");
            comboBoxFontSpacing.Items.Add("-0.2");
            comboBoxFontSpacing.Items.Add("-0.1");
            comboBoxFontSpacing.Items.Add("0");
            comboBoxFontSpacing.Items.Add("0.1");
            comboBoxFontSpacing.Items.Add("0.2");
            comboBoxFontSpacing.Items.Add("0.3");
            comboBoxFontSpacing.Items.Add("0.4");
            comboBoxFontSpacing.Items.Add("0.5");
            comboBoxFontSpacing.Items.Add("0.6");
            comboBoxFontSpacing.Items.Add("0.7");
            comboBoxFontSpacing.Items.Add("0.8");
            comboBoxFontSpacing.Items.Add("0.9");
            comboBoxFontSpacing.Items.Add("1.0");
            comboBoxFontSpacing.Items.Add("1.2");
            comboBoxFontSpacing.Items.Add("1.5");
            comboBoxFontSpacing.Items.Add("2.0");
            comboBoxFontSpacing.Items.Add("2.5");
            comboBoxFontSpacing.Items.Add("2.3");
            comboBoxFontSpacing.Items.Add("5");

            comboBoxLectionLeftSpace.Items.Add("-100");
            comboBoxLectionLeftSpace.Items.Add("-80");
            comboBoxLectionLeftSpace.Items.Add("-50");
            comboBoxLectionLeftSpace.Items.Add("-20");
            comboBoxLectionLeftSpace.Items.Add("-10");
            comboBoxLectionLeftSpace.Items.Add("-5");
            comboBoxLectionLeftSpace.Items.Add("0");
            comboBoxLectionLeftSpace.Items.Add("5");
            comboBoxLectionLeftSpace.Items.Add("10");
            comboBoxLectionLeftSpace.Items.Add("20");
            comboBoxLectionLeftSpace.Items.Add("30");
            comboBoxLectionLeftSpace.Items.Add("50");
            comboBoxLectionLeftSpace.Items.Add("70");
            comboBoxLectionLeftSpace.Items.Add("100");
            comboBoxLectionLeftSpace.Items.Add("150");
            comboBoxLectionLeftSpace.Items.Add("200");
            comboBoxLectionLeftSpace.Items.Add("300");
            comboBoxLectionLeftSpace.Items.Add("400");

            #endregion



            #region 尺寸与颜色,其他默认值

            //用设计器设置这里居然有bug,只好用代码。。。
            //设置panel的最小尺寸
            this.splitContainer1.Panel2MinSize = 300;
            this.splitContainer1.Panel1MinSize = 400;


            //画布背景色
            //this.panelLectionContent.BackColor = ColorBack;

            //经文背景色
            //this.richTextBoxLectionContent.BackColor = ColorBack;

            //背景颜色
            this.labelBackColor.BackColor = ColorBack;

            //标题颜色
            this.labelTitleColor.BackColor = ColorTitle;

            //节号颜色
            this.labelVerseNumberColor.BackColor = ColorVerseNumber;

            //经文颜色
            this.labelLectionColor.BackColor = ColorLection;

            //标题、经文字体名称
            comboBoxLectionFontName.Text = StrLectionFontName;
            comboBoxTitleFontName.Text   = StrTitleFontName;

            //标题、经文字号控件
            comboBoxLectionFontSize.Text = IntLectionFontSize.ToString();
            comboBoxTitleFontSize.Text   = IntTitleFontSize.ToString();

            //标题、经文字样式
            comboBoxTitleFontStyle.Text   = Settings.Default.TitleFontStyle;   // FontStyleTitle.ToString();
            comboBoxLectionFontStyle.Text = Settings.Default.LectionFontStyle; // FontStyleLection.ToString();

            //行间距
            comboBoxLineSpacing.Text = FloatLineSpaceScale.ToString();

            comboBoxFontSpacing.Text = FloatFontSpaceScale.ToString();

            comboBoxLectionLeftSpace.Text = IntLectionLeftSpace.ToString();

            #endregion
        }