private void buttonShowNews_Click(object sender, EventArgs e) { //显示“灵歌推荐”窗体 formPop = new FormPop(); formPop.StartPosition = FormStartPosition.Manual; formPop.Left = this.Right; formPop.Top = this.Top;; formPop.Show(); }
private void buttonShowNews_Click(object sender, EventArgs e) { //显示“灵歌推荐”窗体 formPop = new FormPop(); formPop.StartPosition = FormStartPosition.Manual; formPop.Left = this.Right; formPop.Top = this.Top; ; formPop.Show(); }
private void FormControl_Load(object sender, EventArgs e) { //读取配置文件的初始值 //字体名称 StrTitleFontName = Settings.Default.TitleFontName; StrLyricFontName = Settings.Default.LyricFontName; StrPageNumberFontName = Settings.Default.PageNumberFontName; //颜色 ColorTitle = Settings.Default.TitleColor; ColorPageNumber = Settings.Default.PageNumberColor; ColorLyric = Settings.Default.LyricColor; ColorBack = Settings.Default.BackColor; //是否显示背景图片 IsShowBackgroundImage = Settings.Default.IsShowBackgroundImage; //背景图片 StrBackgroundImagePath = Settings.Default.BackgroundImagePath; //字号 IntTitleFontSize = Settings.Default.TitleFontSize; IntLyricFontSize = Settings.Default.LyricFontSize; IntPageNumberFontSize = Settings.Default.PageNumberFontSize; //IntLyricLeftSpace = Settings.Default.LyricLeftSpace; //加载上次打开的列表 StrLastMusicianList = Settings.Default.LastMusicianList; StrLastAlbumList = Settings.Default.LastAlbumList; //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.LyricFontStyle) { case "正常": FontStyleLyric = FontStyle.Regular; break; case "加粗": FontStyleLyric = FontStyle.Bold; break; case "倾斜": FontStyleLyric = FontStyle.Italic; break; default: FontStyleLyric = FontStyle.Regular; break; } //字符间距及行间距 IntFontSpace = Settings.Default.FontSpace; IntLineSpace = Settings.Default.LineSpace; //是否显示标题 BoolIsShowTitle = Settings.Default.IsShowTitle; if (BoolIsShowTitle == false) { buttonHideOrShowTitle.Text = "显示标题"; } else { buttonHideOrShowTitle.Text = "隐藏标题"; } //重新加载画刷等参数 ReloadConfigParameters(); _configHelper = new ConfigHelper(); //显示投影窗口 ShowScreen(); //移动投影窗口到右上角 _formScreen.Left = Screen.GetWorkingArea(this).Right - _formScreen.Width; _formScreen.Top = Screen.GetWorkingArea(this).Top; #region 初始化控件数据 //初始化系列列表下拉列表控件 InitMusicianList(); //初始化标题字体,经文字体控件 foreach (System.Drawing.FontFamily i in _objFont.Families) { comboBoxLyricFontName.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"); comboBoxLyricFontSize.Items.Add("12"); comboBoxLyricFontSize.Items.Add("20"); comboBoxLyricFontSize.Items.Add("30"); comboBoxLyricFontSize.Items.Add("35"); comboBoxLyricFontSize.Items.Add("40"); comboBoxLyricFontSize.Items.Add("45"); comboBoxLyricFontSize.Items.Add("50"); comboBoxLyricFontSize.Items.Add("60"); comboBoxLyricFontSize.Items.Add("70"); comboBoxLyricFontSize.Items.Add("80"); comboBoxLyricFontSize.Items.Add("90"); comboBoxLyricFontSize.Items.Add("100"); comboBoxLyricFontSize.Items.Add("110"); comboBoxLyricFontSize.Items.Add("120"); comboBoxLyricFontSize.Items.Add("130"); comboBoxLyricFontSize.Items.Add("140"); comboBoxLyricFontSize.Items.Add("150"); comboBoxLyricFontSize.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()); comboBoxLyricFontStyle.Items.Add("正常"); comboBoxLyricFontStyle.Items.Add("加粗"); comboBoxLyricFontStyle.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("-100"); comboBoxLineSpacing.Items.Add("-50"); comboBoxLineSpacing.Items.Add("-30"); comboBoxLineSpacing.Items.Add("-20"); comboBoxLineSpacing.Items.Add("-10"); comboBoxLineSpacing.Items.Add("-5"); comboBoxLineSpacing.Items.Add("0"); comboBoxLineSpacing.Items.Add("5"); comboBoxLineSpacing.Items.Add("10"); comboBoxLineSpacing.Items.Add("15"); comboBoxLineSpacing.Items.Add("20"); comboBoxLineSpacing.Items.Add("30"); comboBoxLineSpacing.Items.Add("40"); comboBoxLineSpacing.Items.Add("50"); comboBoxLineSpacing.Items.Add("60"); comboBoxLineSpacing.Items.Add("70"); comboBoxLineSpacing.Items.Add("80"); comboBoxLineSpacing.Items.Add("90"); comboBoxLineSpacing.Items.Add("100"); comboBoxLineSpacing.Items.Add("150"); comboBoxLineSpacing.Items.Add("200"); comboBoxLineSpacing.Items.Add("250"); comboBoxLineSpacing.Items.Add("300"); comboBoxLineSpacing.Items.Add("400"); comboBoxLineSpacing.Items.Add("500"); comboBoxLineSpacing.Items.Add("600"); comboBoxLineSpacing.Items.Add("700"); //初始化字间距 comboBoxFontSpacing.Items.Add("-100"); comboBoxFontSpacing.Items.Add("-80"); comboBoxFontSpacing.Items.Add("-50"); comboBoxFontSpacing.Items.Add("-20"); comboBoxFontSpacing.Items.Add("-10"); comboBoxFontSpacing.Items.Add("-5"); comboBoxFontSpacing.Items.Add("0"); comboBoxFontSpacing.Items.Add("5"); comboBoxFontSpacing.Items.Add("10"); comboBoxFontSpacing.Items.Add("15"); comboBoxFontSpacing.Items.Add("20"); comboBoxFontSpacing.Items.Add("30"); comboBoxFontSpacing.Items.Add("40"); comboBoxFontSpacing.Items.Add("50"); comboBoxFontSpacing.Items.Add("60"); comboBoxFontSpacing.Items.Add("70"); comboBoxFontSpacing.Items.Add("80"); comboBoxFontSpacing.Items.Add("90"); comboBoxFontSpacing.Items.Add("100"); comboBoxFontSpacing.Items.Add("150"); comboBoxFontSpacing.Items.Add("200"); comboBoxFontSpacing.Items.Add("250"); comboBoxFontSpacing.Items.Add("300"); comboBoxFontSpacing.Items.Add("400"); comboBoxFontSpacing.Items.Add("500"); comboBoxFontSpacing.Items.Add("600"); comboBoxFontSpacing.Items.Add("700"); //comboBoxLyricLeftSpace.Items.Add("-100"); //comboBoxLyricLeftSpace.Items.Add("-80"); //comboBoxLyricLeftSpace.Items.Add("-50"); //comboBoxLyricLeftSpace.Items.Add("-20"); //comboBoxLyricLeftSpace.Items.Add("-10"); //comboBoxLyricLeftSpace.Items.Add("-5"); //comboBoxLyricLeftSpace.Items.Add("0"); //comboBoxLyricLeftSpace.Items.Add("5"); //comboBoxLyricLeftSpace.Items.Add("10"); //comboBoxLyricLeftSpace.Items.Add("20"); //comboBoxLyricLeftSpace.Items.Add("30"); //comboBoxLyricLeftSpace.Items.Add("50"); //comboBoxLyricLeftSpace.Items.Add("70"); //comboBoxLyricLeftSpace.Items.Add("100"); //comboBoxLyricLeftSpace.Items.Add("150"); //comboBoxLyricLeftSpace.Items.Add("200"); //comboBoxLyricLeftSpace.Items.Add("300"); //comboBoxLyricLeftSpace.Items.Add("400"); comboBoxBackgroundImageLayout.Items.Add("适应"); comboBoxBackgroundImageLayout.Items.Add("平铺"); comboBoxBackgroundImageLayout.Items.Add("居中"); comboBoxBackgroundImageLayout.Items.Add("拉伸"); comboBoxBackgroundImageLayout.Items.Add("无"); #endregion #region 尺寸与颜色,其他默认值 //用设计器设置这里居然有bug,只好用代码。。。 //设置panel的最小尺寸 //this.splitContainer1.Panel2MinSize = 300; //this.splitContainer1.Panel1MinSize = 400; //画布背景色 //this.panelLectionContent.BackColor = ColorBack; //经文背景色 //this.richTextBoxLectionContent.BackColor = ColorBack; //背景颜色 this.labelBackColor.BackColor = ColorBack; //背景图片 if (IsShowBackgroundImage) { checkBoxIsShowBackgroundImage.Checked = true; } else { checkBoxIsShowBackgroundImage.Checked = false; } //标题颜色 this.labelTitleColor.BackColor = ColorTitle; //节号颜色 this.labelPageNumberColor.BackColor = ColorPageNumber; //经文颜色 this.labelLyricColor.BackColor = ColorLyric; //标题、经文字体名称 comboBoxLyricFontName.Text = StrLyricFontName; comboBoxTitleFontName.Text = StrTitleFontName; //标题、经文字号控件 comboBoxLyricFontSize.Text = IntLyricFontSize.ToString(); comboBoxTitleFontSize.Text = IntTitleFontSize.ToString(); //标题、经文字样式 comboBoxTitleFontStyle.Text = Settings.Default.TitleFontStyle; // FontStyleTitle.ToString(); comboBoxLyricFontStyle.Text = Settings.Default.LyricFontStyle; // FontStyleLection.ToString(); //行间距 comboBoxLineSpacing.Text = IntLineSpace.ToString(); comboBoxFontSpacing.Text = IntFontSpace.ToString(); //comboBoxLyricLeftSpace.Text = IntLyricLeftSpace.ToString(); //背景图片位置(布局) switch (Settings.Default.BackgroundImageLayout) { case ImageLayout.Zoom: //适应 comboBoxBackgroundImageLayout.Text = "适应"; break; case ImageLayout.Tile: //平铺 comboBoxBackgroundImageLayout.Text = "平铺"; break; case ImageLayout.Center: //居中 comboBoxBackgroundImageLayout.Text = "居中"; break; case ImageLayout.Stretch: //拉伸 comboBoxBackgroundImageLayout.Text = "拉伸"; break; case ImageLayout.None: //无 comboBoxBackgroundImageLayout.Text = "无"; break; default: comboBoxBackgroundImageLayout.Text = "适应"; break; } //是否忽略换行符 if (Settings.Default.IsIgnoreReturn) { checkBoxIsIgnoreReturn.Checked = true; } else { checkBoxIsIgnoreReturn.Checked = false; } //显示歌词 StrTitle = ""; StrLyric = ""; StrPageNumber = ""; #endregion //显示“灵歌推荐”窗体 formPop = new FormPop(); formPop.StartPosition = FormStartPosition.Manual; formPop.Left = this.Right; formPop.Top = this.Top;; //formPop.Show(); //this.axWindowsMediaPlayer1.settings.autoStart = true; //this.axWindowsMediaPlayer1.settings.setMode("Loop", true); }
private void FormControl_Load(object sender, EventArgs e) { //读取配置文件的初始值 //字体名称 StrTitleFontName = Settings.Default.TitleFontName; StrLyricFontName = Settings.Default.LyricFontName; StrPageNumberFontName = Settings.Default.PageNumberFontName; //颜色 ColorTitle = Settings.Default.TitleColor; ColorPageNumber = Settings.Default.PageNumberColor; ColorLyric = Settings.Default.LyricColor; ColorBack = Settings.Default.BackColor; //是否显示背景图片 IsShowBackgroundImage = Settings.Default.IsShowBackgroundImage; //背景图片 StrBackgroundImagePath = Settings.Default.BackgroundImagePath; //字号 IntTitleFontSize = Settings.Default.TitleFontSize; IntLyricFontSize = Settings.Default.LyricFontSize; IntPageNumberFontSize = Settings.Default.PageNumberFontSize; //IntLyricLeftSpace = Settings.Default.LyricLeftSpace; //加载上次打开的列表 StrLastMusicianList = Settings.Default.LastMusicianList; StrLastAlbumList = Settings.Default.LastAlbumList; //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.LyricFontStyle) { case "正常": FontStyleLyric = FontStyle.Regular; break; case "加粗": FontStyleLyric = FontStyle.Bold; break; case "倾斜": FontStyleLyric = FontStyle.Italic; break; default: FontStyleLyric = FontStyle.Regular; break; } //字符间距及行间距 IntFontSpace = Settings.Default.FontSpace; IntLineSpace = Settings.Default.LineSpace; //是否显示标题 BoolIsShowTitle = Settings.Default.IsShowTitle; if (BoolIsShowTitle == false) { buttonHideOrShowTitle.Text = "显示标题"; } else { buttonHideOrShowTitle.Text = "隐藏标题"; } //重新加载画刷等参数 ReloadConfigParameters(); _configHelper = new ConfigHelper(); //显示投影窗口 ShowScreen(); //移动投影窗口到右上角 _formScreen.Left = Screen.GetWorkingArea(this).Right - _formScreen.Width; _formScreen.Top = Screen.GetWorkingArea(this).Top; #region 初始化控件数据 //初始化系列列表下拉列表控件 InitMusicianList(); //初始化标题字体,经文字体控件 foreach (System.Drawing.FontFamily i in _objFont.Families) { comboBoxLyricFontName.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"); comboBoxLyricFontSize.Items.Add("12"); comboBoxLyricFontSize.Items.Add("20"); comboBoxLyricFontSize.Items.Add("30"); comboBoxLyricFontSize.Items.Add("35"); comboBoxLyricFontSize.Items.Add("40"); comboBoxLyricFontSize.Items.Add("45"); comboBoxLyricFontSize.Items.Add("50"); comboBoxLyricFontSize.Items.Add("60"); comboBoxLyricFontSize.Items.Add("70"); comboBoxLyricFontSize.Items.Add("80"); comboBoxLyricFontSize.Items.Add("90"); comboBoxLyricFontSize.Items.Add("100"); comboBoxLyricFontSize.Items.Add("110"); comboBoxLyricFontSize.Items.Add("120"); comboBoxLyricFontSize.Items.Add("130"); comboBoxLyricFontSize.Items.Add("140"); comboBoxLyricFontSize.Items.Add("150"); comboBoxLyricFontSize.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()); comboBoxLyricFontStyle.Items.Add("正常"); comboBoxLyricFontStyle.Items.Add("加粗"); comboBoxLyricFontStyle.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("-100"); comboBoxLineSpacing.Items.Add("-50"); comboBoxLineSpacing.Items.Add("-30"); comboBoxLineSpacing.Items.Add("-20"); comboBoxLineSpacing.Items.Add("-10"); comboBoxLineSpacing.Items.Add("-5"); comboBoxLineSpacing.Items.Add("0"); comboBoxLineSpacing.Items.Add("5"); comboBoxLineSpacing.Items.Add("10"); comboBoxLineSpacing.Items.Add("15"); comboBoxLineSpacing.Items.Add("20"); comboBoxLineSpacing.Items.Add("30"); comboBoxLineSpacing.Items.Add("40"); comboBoxLineSpacing.Items.Add("50"); comboBoxLineSpacing.Items.Add("60"); comboBoxLineSpacing.Items.Add("70"); comboBoxLineSpacing.Items.Add("80"); comboBoxLineSpacing.Items.Add("90"); comboBoxLineSpacing.Items.Add("100"); comboBoxLineSpacing.Items.Add("150"); comboBoxLineSpacing.Items.Add("200"); comboBoxLineSpacing.Items.Add("250"); comboBoxLineSpacing.Items.Add("300"); comboBoxLineSpacing.Items.Add("400"); comboBoxLineSpacing.Items.Add("500"); comboBoxLineSpacing.Items.Add("600"); comboBoxLineSpacing.Items.Add("700"); //初始化字间距 comboBoxFontSpacing.Items.Add("-100"); comboBoxFontSpacing.Items.Add("-80"); comboBoxFontSpacing.Items.Add("-50"); comboBoxFontSpacing.Items.Add("-20"); comboBoxFontSpacing.Items.Add("-10"); comboBoxFontSpacing.Items.Add("-5"); comboBoxFontSpacing.Items.Add("0"); comboBoxFontSpacing.Items.Add("5"); comboBoxFontSpacing.Items.Add("10"); comboBoxFontSpacing.Items.Add("15"); comboBoxFontSpacing.Items.Add("20"); comboBoxFontSpacing.Items.Add("30"); comboBoxFontSpacing.Items.Add("40"); comboBoxFontSpacing.Items.Add("50"); comboBoxFontSpacing.Items.Add("60"); comboBoxFontSpacing.Items.Add("70"); comboBoxFontSpacing.Items.Add("80"); comboBoxFontSpacing.Items.Add("90"); comboBoxFontSpacing.Items.Add("100"); comboBoxFontSpacing.Items.Add("150"); comboBoxFontSpacing.Items.Add("200"); comboBoxFontSpacing.Items.Add("250"); comboBoxFontSpacing.Items.Add("300"); comboBoxFontSpacing.Items.Add("400"); comboBoxFontSpacing.Items.Add("500"); comboBoxFontSpacing.Items.Add("600"); comboBoxFontSpacing.Items.Add("700"); //comboBoxLyricLeftSpace.Items.Add("-100"); //comboBoxLyricLeftSpace.Items.Add("-80"); //comboBoxLyricLeftSpace.Items.Add("-50"); //comboBoxLyricLeftSpace.Items.Add("-20"); //comboBoxLyricLeftSpace.Items.Add("-10"); //comboBoxLyricLeftSpace.Items.Add("-5"); //comboBoxLyricLeftSpace.Items.Add("0"); //comboBoxLyricLeftSpace.Items.Add("5"); //comboBoxLyricLeftSpace.Items.Add("10"); //comboBoxLyricLeftSpace.Items.Add("20"); //comboBoxLyricLeftSpace.Items.Add("30"); //comboBoxLyricLeftSpace.Items.Add("50"); //comboBoxLyricLeftSpace.Items.Add("70"); //comboBoxLyricLeftSpace.Items.Add("100"); //comboBoxLyricLeftSpace.Items.Add("150"); //comboBoxLyricLeftSpace.Items.Add("200"); //comboBoxLyricLeftSpace.Items.Add("300"); //comboBoxLyricLeftSpace.Items.Add("400"); comboBoxBackgroundImageLayout.Items.Add("适应"); comboBoxBackgroundImageLayout.Items.Add("平铺"); comboBoxBackgroundImageLayout.Items.Add("居中"); comboBoxBackgroundImageLayout.Items.Add("拉伸"); comboBoxBackgroundImageLayout.Items.Add("无"); #endregion #region 尺寸与颜色,其他默认值 //用设计器设置这里居然有bug,只好用代码。。。 //设置panel的最小尺寸 //this.splitContainer1.Panel2MinSize = 300; //this.splitContainer1.Panel1MinSize = 400; //画布背景色 //this.panelLectionContent.BackColor = ColorBack; //经文背景色 //this.richTextBoxLectionContent.BackColor = ColorBack; //背景颜色 this.labelBackColor.BackColor = ColorBack; //背景图片 if (IsShowBackgroundImage) { checkBoxIsShowBackgroundImage.Checked = true; } else { checkBoxIsShowBackgroundImage.Checked = false; } //标题颜色 this.labelTitleColor.BackColor = ColorTitle; //节号颜色 this.labelPageNumberColor.BackColor = ColorPageNumber; //经文颜色 this.labelLyricColor.BackColor = ColorLyric; //标题、经文字体名称 comboBoxLyricFontName.Text = StrLyricFontName; comboBoxTitleFontName.Text = StrTitleFontName; //标题、经文字号控件 comboBoxLyricFontSize.Text = IntLyricFontSize.ToString(); comboBoxTitleFontSize.Text = IntTitleFontSize.ToString(); //标题、经文字样式 comboBoxTitleFontStyle.Text = Settings.Default.TitleFontStyle;// FontStyleTitle.ToString(); comboBoxLyricFontStyle.Text = Settings.Default.LyricFontStyle;// FontStyleLection.ToString(); //行间距 comboBoxLineSpacing.Text = IntLineSpace.ToString(); comboBoxFontSpacing.Text = IntFontSpace.ToString(); //comboBoxLyricLeftSpace.Text = IntLyricLeftSpace.ToString(); //背景图片位置(布局) switch (Settings.Default.BackgroundImageLayout) { case ImageLayout.Zoom: //适应 comboBoxBackgroundImageLayout.Text = "适应"; break; case ImageLayout.Tile: //平铺 comboBoxBackgroundImageLayout.Text = "平铺"; break; case ImageLayout.Center: //居中 comboBoxBackgroundImageLayout.Text = "居中"; break; case ImageLayout.Stretch: //拉伸 comboBoxBackgroundImageLayout.Text = "拉伸"; break; case ImageLayout.None: //无 comboBoxBackgroundImageLayout.Text = "无"; break; default: comboBoxBackgroundImageLayout.Text = "适应"; break; } //是否忽略换行符 if (Settings.Default.IsIgnoreReturn) { checkBoxIsIgnoreReturn.Checked = true; } else { checkBoxIsIgnoreReturn.Checked = false; } //显示歌词 StrTitle = ""; StrLyric = ""; StrPageNumber = ""; #endregion //显示“灵歌推荐”窗体 formPop = new FormPop(); formPop.StartPosition = FormStartPosition.Manual; formPop.Left = this.Right; formPop.Top = this.Top; ; //formPop.Show(); //this.axWindowsMediaPlayer1.settings.autoStart = true; //this.axWindowsMediaPlayer1.settings.setMode("Loop", true); }