예제 #1
0
 bool userClose = true; //是否点击右上角的关闭按钮
 public BookShelf(Form form)
 {
     InitializeComponent();
     this.form = form;
     UIColors.SetControlColors(this);
     GetData();
 }
예제 #2
0
 public AddBlackWord(string word)
 {
     InitializeComponent();
     UIColors.SetControlColors(this);
     textBox1.Text = word;
     textBox2.Focus();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 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;
 }
예제 #6
0
 private void checkBox_night_mode_CheckedChanged(object sender, EventArgs e)
 {
     UIColors.SetNightMode(checkBox_night_mode.Checked);
     UIColors.SetControlColors(this);
 }
예제 #7
0
 public BlackWords()
 {
     InitializeComponent();
     UIColors.SetControlColors(this);
     GetData();
 }
예제 #8
0
 public AddBlackWord()
 {
     InitializeComponent();
     UIColors.SetControlColors(this);
 }