private void ImgRadioButton_CheckedChanged(object sender, EventArgs e) { if (imgRadioButton.Checked && imgRadioButton.Enabled) { if ((bool)UserConfigManager.GetConfigValueByKey(ConfigKey.IsImgInfoRemind)) { FirstForm_ImgCheckInfo firstForm_ImgCheckInfo = new FirstForm_ImgCheckInfo(); firstForm_ImgCheckInfo.StartPosition = FormStartPosition.Manual; //手動設定跳窗初始位置 firstForm_ImgCheckInfo.Location = new Point(this.Location.X + this.Size.Width / 4, this.Location.Y + this.Size.Height / 4); //跳窗位置 DialogResult dontRemindImgInto = firstForm_ImgCheckInfo.ShowDialog(); bool NoNeedToRemind; if (dontRemindImgInto == DialogResult.Yes) { NoNeedToRemind = true; } else { NoNeedToRemind = false; } UserConfigManager.SetAndWriteConfig(ConfigKey.IsImgInfoRemind, !NoNeedToRemind); } } }
private void ZoomComboBox_SelectedIndexChanged(object sender, EventArgs e) { string tempString = zoomComboBox.Text; int zoomPercentageInt = Convert.ToInt32(tempString.Split('%')[0]); UserConfigManager.SetAndWriteConfig(ConfigKey.ZoomPercentage, zoomPercentageInt); }
private void UrlCheckBox_CheckedChanged(object sender, EventArgs e) { bool isChecked = urlCheckBox.Checked; urlRichTextBox.Enabled = isChecked; SourceHTMLRichTextBox.Enabled = !isChecked; youtubeRadioButton.Enabled = isChecked; imgRadioButton.Enabled = isChecked; UserConfigManager.SetAndWriteConfig(ConfigKey.UseUrl, isChecked); }
private void YoutubeRadioButton_CheckedChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.IsYouTubeChecked, youtubeRadioButton.Checked); }
private void RightSideRadioButton_CheckedChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.IsPreViewAtRight, rightSideRadioButton.Checked); }
private void CenterCheckBox_CheckedChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.IsCenterChecked, centerCheckBox.Checked); }
private void resultPreviewCheckBox_CheckedChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.IsAfterPreviewChecked, resultPreviewCheckBox.Checked); }
private void sourcePreviewCheckBox_CheckedChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.IsBeforePreviewChecked, sourcePreviewCheckBox.Checked); }
private void UpDownOffsetUp_ValueChanged(object sender, EventArgs e) { UserConfigManager.SetAndWriteConfig(ConfigKey.UpOffet, (int)UpDownOffsetUp.Value); }