bool userClose = true; //是否点击右上角的关闭按钮 public BookShelf(Form form) { InitializeComponent(); this.form = form; UIColors.SetControlColors(this); GetData(); }
public AddBlackWord(string word) { InitializeComponent(); UIColors.SetControlColors(this); textBox1.Text = word; textBox2.Focus(); }
void Init() { UIColors.SetControlColors(this); checkBox_night_mode.Checked = UIColors.IsNightMode; site = Tools.source.Site; label_source.Text = "当前来源:" + site; tools = new Tools(); tools.HTMLGetCompleted += Tools_HTMLGetCompleted; GetChapters(Tools.source.ID, novelName); GetBlackWords(); GetContent(); }
public ModifyBlackWords(string word, string instead, string type) { InitializeComponent(); UIColors.SetControlColors(this); textBox_source.Text = word; textBox_sourceinstead.Text = instead; textBox_des.Text = word; textBox_desinstead.Text = instead; textBox_des.Focus(); textBox_des.SelectAll(); if (type == "正则表达式") { radioButton2.Checked = true; } }
public Search() { InitializeComponent(); Width = listView2.Left; comboBox_Source.SelectedIndex = 0; MySqlite.InitDB(); if (!File.Exists(MySqlite.path)) { Tools.CreateTable(); //不存在数据库,创建新表 } UIColors.SetControlColors(this); webTools = new Tools(); //网络请求结束的事件 webTools.HTMLGetCompleted += Tools_HTMLGetCompleted; }
private void checkBox_night_mode_CheckedChanged(object sender, EventArgs e) { UIColors.SetNightMode(checkBox_night_mode.Checked); UIColors.SetControlColors(this); }
public BlackWords() { InitializeComponent(); UIColors.SetControlColors(this); GetData(); }
public AddBlackWord() { InitializeComponent(); UIColors.SetControlColors(this); }