代码拉取完成,页面将自动刷新
同步操作将从 amyoubo/GZPAssist 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;
using System.Windows.Forms;
namespace GZPAssist
{
public partial class DetailForm : Form
{
private TransSheBeiFXandGXBetweenForm fxgxDelegate = null;
private SingleShebeiGongxuFengxian ModifiedSheBeiFXGX = new SingleShebeiGongxuFengxian();
public DetailForm(TransSheBeiFXandGXBetweenForm data, SingleShebeiGongxuFengxian ssgf)
{
InitializeComponent();
this.fxgxDelegate = data;
ModifiedSheBeiFXGX = ssgf;
textBox1.Text = ssgf.CombinSheBeiGongXu;
richTextBox1.Text = ssgf.FangFanCuoShi;
richTextBox2.Text = ssgf.ZhiLiangDian;
richTextBox3.Text = ssgf.HouGuo;
foreach (Control tc in panel8.Controls)
{
if ((tc is RadioButton) && (tc as RadioButton).Text.Contains(ssgf.RiskLevel))
{
(tc as RadioButton).Checked=true;
}
}
}
private void button1_Click(object sender, EventArgs e)
{
//都是对对象的引用,所以此处修改后可以直接修改globalVar.TDGZPConfig.AllSheBeiType中的文本
ModifiedSheBeiFXGX.CombinSheBeiGongXu = textBox1.Text;
ModifiedSheBeiFXGX.FangFanCuoShi = richTextBox1.Text;
ModifiedSheBeiFXGX.ZhiLiangDian = richTextBox2.Text;
foreach (Control tc in panel8.Controls)
{
if ((tc is RadioButton) && (tc as RadioButton).Checked)
{
ModifiedSheBeiFXGX.RiskLevel=(tc as RadioButton).Text;
}
}
this.Close();
}
private void DetailForm_FormClosing(object sender, FormClosingEventArgs e)
{
//this.fxgxDelegate(ModifiedSheBeiFXGX);
}
private void DetailForm_Shown(object sender, EventArgs e)
{
//关闭自动选词,在[设计]AutoWordSelection属性设置是没办法关闭的,这算一个小BUG
richTextBox1.AutoWordSelection = false;
richTextBox2.AutoWordSelection = false;
richTextBox3.AutoWordSelection = false;
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void richTextBox2_Layout(object sender, LayoutEventArgs e)
{
splitContainer1.SplitterDistance = splitContainer1.Width - (splitContainer1.Width - panel8.Width) / 2;
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。