📄 form1.cs
字号:
/// <Copyright>
/// This Program Written By Luyan(5drush)
/// 2002/4/23
/// Email:nluyan@163.net
/// QQ:5743345
/// </Copyright>
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
namespace CSDN
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private Core core = new Core();
private System.ComponentModel.IContainer components;
private DataView dvTopicIndex;
private int room,block,forum;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.Splitter splitter2;
private System.Windows.Forms.ColumnHeader question;
private System.Windows.Forms.ColumnHeader poster;
private System.Windows.Forms.ColumnHeader replynum;
private System.Windows.Forms.ColumnHeader replytime;
private System.Windows.Forms.ColumnHeader point;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.ImageList imageList1;
private string topicid;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem7;
private int listViewIndex;
private ForumUpdate fu;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem12;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private DataView dvForumUpdate;
private System.Windows.Forms.MenuItem menuItem13;
private string topicname;
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.treeView1.Nodes[0].Expand();
this.listView1.SmallImageList = this.imageList1;
fu = new ForumUpdate();
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.treeView1 = new System.Windows.Forms.TreeView();
this.splitter1 = new System.Windows.Forms.Splitter();
this.listView1 = new System.Windows.Forms.ListView();
this.question = new System.Windows.Forms.ColumnHeader();
this.poster = new System.Windows.Forms.ColumnHeader();
this.point = new System.Windows.Forms.ColumnHeader();
this.replynum = new System.Windows.Forms.ColumnHeader();
this.replytime = new System.Windows.Forms.ColumnHeader();
this.splitter2 = new System.Windows.Forms.Splitter();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
this.SuspendLayout();
//
// statusBar1
//
this.statusBar1.Location = new System.Drawing.Point(0, 427);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.statusBarPanel1,
this.statusBarPanel2});
this.statusBar1.Size = new System.Drawing.Size(848, 22);
this.statusBar1.TabIndex = 0;
this.statusBar1.Text = "statusBar1";
//
// statusBarPanel1
//
this.statusBarPanel1.Text = "statusBarPanel1";
//
// statusBarPanel2
//
this.statusBarPanel2.Text = "statusBarPanel2";
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem3,
this.menuItem4,
this.menuItem13});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem9,
this.menuItem12,
this.menuItem2});
this.menuItem1.Text = "文件";
//
// menuItem9
//
this.menuItem9.Index = 0;
this.menuItem9.Text = "刷新所有列表";
this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
//
// menuItem12
//
this.menuItem12.Index = 1;
this.menuItem12.Text = "登录";
this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
//
// menuItem2
//
this.menuItem2.Index = 2;
this.menuItem2.Text = "退出";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem5,
this.menuItem6});
this.menuItem3.Text = "论坛";
//
// menuItem5
//
this.menuItem5.Index = 0;
this.menuItem5.Text = "刷新列表";
this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
//
// menuItem6
//
this.menuItem6.Index = 1;
this.menuItem6.Text = "同步";
this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
//
// menuItem4
//
this.menuItem4.Index = 2;
this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem10,
this.menuItem7,
this.menuItem11,
this.menuItem8});
this.menuItem4.Text = "帖子";
//
// menuItem10
//
this.menuItem10.Enabled = false;
this.menuItem10.Index = 0;
this.menuItem10.Text = "回复";
this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
//
// menuItem7
//
this.menuItem7.Enabled = false;
this.menuItem7.Index = 1;
this.menuItem7.Text = "发贴";
this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
//
// menuItem11
//
this.menuItem11.Index = 2;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -