⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumlist.cs

📁 c#编的CSDN离线助手
💻 CS
📖 第 1 页 / 共 2 页
字号:
				if(e.Node.Parent.Text != "CSDN论坛")
				{
					this.button1.Enabled = true;
					forum = e.Node.Text;
					roomid = WhichRoom(e.Node.Parent.Text);
				}
				else
				{
					this.button1.Enabled = false;
				}
			}
			else
				this.button1.Enabled = false;
		}

		private int WhichRoom(string RoomTitle)
		{
			int room;
			switch(RoomTitle)
			{
				case "Visual C++":
					room = 1;
					break;
				case "Visual Basic":
					room = 2;
					break;
				case "Delphi":
					room = 3;
					break;
				case "C/C++":
					room = 4;
					break;
				case "C++ Builder":
					room = 5;
					break;
				case "ASM":
					room = 6;
					break;
				case "ActiveX/COM":
					room = 7;
					break;
				case "JAVA":
					room = 26;
					break;
				case "C#":
					room = 17;
					break;
				case "XML/SOAP":
					room = 18;
					break;
				case ".Net Framework":
					room = 30;
					break;
				case "ADO.NET":
					room = 32;
					break;
				case "ASP.NET":
					room = 33;
					break;
				case "Web Service":
					room = 34;
					break;
				case "Web Form":
					room = 35;
					break;
				case "Windows Form":
					room = 36;
					break;
				case "VB.NET":
					room = 37;
					break;
				case "VC.NET":
					room = 38;
					break;
				case "数据库基础":
					room = 7;
					break;
				case "PowerBuilder":
					room = 8;
					break;
				case "数据仓库":
					room = 19;
					break;
				case "Oracle":
					room = 84;
					break;
				case "Sybase":
					room = 85;
					break;
				case "SQL Server":
					room = 86;
					break;
				case "MySQL":
					room = 87;
					break;
				case "安全技术":
					room = 13;
					break;
				case "主页制作":
					room = 21;
					break;
				case "ASP":
					room = 23;
					break;
				case "PHP":
					room = 24;
					break;
				case "Perl":
					room = 25;
					break;
				case "Javascript":
					room = 27;
					break;
				case "JSP":
					room = 28;
					break;
				case "IIS":
					room = 45;
					break;
				case "软件工程":
					room = 11;
					break;
				case "Office使用":
					room = 42;
					break;
				case "Exchange Server":
					room = 44;
					break;
				case "软件市场":
					room = 62;
					break;
				case "软件使用":
					room = 71;
					break;
				case "软件评测":
					room = 77;
					break;
				case "CMM":
					room = 88;
					break;
				case "软件创业":
					room = 89;
					break;
				case "Win9x/Me":
					room = 39;
					break;
				case "WinNT/2000/XP":
					room = 40;
					break;
				case "DOS":
					room = 41;
					break;
				case "Linux":
					room = 81;
					break;
				case "Apache":
					room = 90;
					break;
				case "程序人生":
					room = 61;
					break;
				case "程序员考试":
					room = 63;
					break;
				case "人才热线":
					room = 64;
					break;
				case "建议和意见":
					room = 65;
					break;
				case "灌水乐园":
					room = 66;
					break;
				case "租房信息":
					room = 91;
					break;
				default :
					room = 0;
					break;
			}
			return room;
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			this.listBox2.Items.Remove(this.listBox2.SelectedItem);
		}

		private void treeView1_DoubleClick(object sender, System.EventArgs e)
		{
			if(forum != null)
			{
				for(int i = 0; i < this.listBox2.Items.Count; i++)
				{
					if(forum == this.listBox2.Items[i].ToString())
					{
						return;
					}
				}
				this.listBox2.Items.Add(forum);
			}
		}
		
		public ArrayList SelectedForumList
		{
			get
			{
				ArrayList al = new ArrayList();
				for(int i = 0; i < this.listBox2.Items.Count; i++)
				{
					al.Add(WhichRoom(this.listBox2.Items[i].ToString()));
				}
				return al;
			}
		}

		private void listBox2_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			if(this.button1.Enabled)
			{
				if(this.listBox2.SelectedItems.Count != 0)
					this.button2.Enabled = true;
				else
					this.button2.Enabled = false;
			}
		}

		private void listBox2_DoubleClick(object sender, System.EventArgs e)
		{
			this.listBox2.Items.Remove(this.listBox2.SelectedItem);
		}

		private void button4_Click(object sender, System.EventArgs e)
		{
			this.listBox2.Items.Clear();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -