📄 startpageform.cs
字号:
namespace Codematic
{
using Codematic.Properties;
using Crownwood.Magic.Controls;
using LTP.Utility;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
public class StartPageForm : Form
{
private INIFile cfgfile;
private string cmcfgfile = (Application.StartupPath + @"\cmcfg.ini");
private IContainer components;
private GroupBox groupBox1;
private GroupBox groupBox2;
private ImageList imageList1;
private Label lblAddServer;
private Label lblCodeExport;
private Label lblCodeMaker;
private Label lblDBBrowser;
private Label lblDBScript;
private Label lblNewPro;
private Label lblTip;
private Label lblWord;
private ListView listView1;
private MainForm mainfrm;
private PictureBox pictureBox1;
private PictureBox pictureBox2;
private PictureBox pictureBox3;
private PictureBox pictureBox4;
private PictureBox pictureBox5;
private PictureBox pictureBox6;
private PictureBox pictureBox7;
private PictureBox pictureBox8;
private PictureBox pictureBox9;
private string RssPath = "http://blog.csdn.net/litp/rss.aspx";
private string tempOpmlfile = (Application.StartupPath + @"\tempopml.xml");
private string tempRssfile = (Application.StartupPath + @"\temprss.xml");
private Thread thread;
public StartPageForm(Form mdiParentForm, string strRsspath)
{
this.InitializeComponent();
this.mainfrm = (MainForm) mdiParentForm;
this.RssPath = strRsspath;
}
private void CreatListview()
{
this.listView1.Columns.Clear();
this.listView1.Items.Clear();
this.listView1.View = View.Details;
this.listView1.FullRowSelect = true;
this.listView1.BackColor = Color.FromArgb(0xeb, 0xf1, 0xff);
this.listView1.Columns.Add("", 300, HorizontalAlignment.Left);
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(StartPageForm));
this.groupBox1 = new GroupBox();
this.lblCodeExport = new Label();
this.pictureBox6 = new PictureBox();
this.lblCodeMaker = new Label();
this.pictureBox7 = new PictureBox();
this.lblNewPro = new Label();
this.pictureBox8 = new PictureBox();
this.lblWord = new Label();
this.pictureBox5 = new PictureBox();
this.lblDBScript = new Label();
this.pictureBox4 = new PictureBox();
this.lblDBBrowser = new Label();
this.pictureBox3 = new PictureBox();
this.lblAddServer = new Label();
this.pictureBox2 = new PictureBox();
this.groupBox2 = new GroupBox();
this.pictureBox1 = new PictureBox();
this.lblTip = new Label();
this.listView1 = new ListView();
this.imageList1 = new ImageList(this.components);
this.pictureBox9 = new PictureBox();
this.groupBox1.SuspendLayout();
((ISupportInitialize) this.pictureBox6).BeginInit();
((ISupportInitialize) this.pictureBox7).BeginInit();
((ISupportInitialize) this.pictureBox8).BeginInit();
((ISupportInitialize) this.pictureBox5).BeginInit();
((ISupportInitialize) this.pictureBox4).BeginInit();
((ISupportInitialize) this.pictureBox3).BeginInit();
((ISupportInitialize) this.pictureBox2).BeginInit();
this.groupBox2.SuspendLayout();
((ISupportInitialize) this.pictureBox1).BeginInit();
((ISupportInitialize) this.pictureBox9).BeginInit();
base.SuspendLayout();
this.groupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
this.groupBox1.BackColor = Color.Transparent;
this.groupBox1.Controls.Add(this.lblCodeExport);
this.groupBox1.Controls.Add(this.pictureBox6);
this.groupBox1.Controls.Add(this.lblCodeMaker);
this.groupBox1.Controls.Add(this.pictureBox7);
this.groupBox1.Controls.Add(this.lblNewPro);
this.groupBox1.Controls.Add(this.pictureBox8);
this.groupBox1.Controls.Add(this.lblWord);
this.groupBox1.Controls.Add(this.pictureBox5);
this.groupBox1.Controls.Add(this.lblDBScript);
this.groupBox1.Controls.Add(this.pictureBox4);
this.groupBox1.Controls.Add(this.lblDBBrowser);
this.groupBox1.Controls.Add(this.pictureBox3);
this.groupBox1.Controls.Add(this.lblAddServer);
this.groupBox1.Controls.Add(this.pictureBox2);
this.groupBox1.Location = new Point(12, 0x59);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x1e8, 0x83);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "常用操作";
this.lblCodeExport.AutoSize = true;
this.lblCodeExport.Cursor = Cursors.Hand;
this.lblCodeExport.Location = new Point(250, 0x4e);
this.lblCodeExport.Name = "lblCodeExport";
this.lblCodeExport.Size = new Size(0x59, 12);
this.lblCodeExport.TabIndex = 13;
this.lblCodeExport.Text = "代码批量生成器";
this.lblCodeExport.Click += new EventHandler(this.lblCodeExport_Click);
this.pictureBox6.Cursor = Cursors.Hand;
this.pictureBox6.Image = (Image) manager.GetObject("pictureBox6.Image");
this.pictureBox6.Location = new Point(0xe4, 0x4c);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new Size(0x10, 0x10);
this.pictureBox6.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox6.TabIndex = 12;
this.pictureBox6.TabStop = false;
this.pictureBox6.Click += new EventHandler(this.lblCodeExport_Click);
this.lblCodeMaker.AutoSize = true;
this.lblCodeMaker.Cursor = Cursors.Hand;
this.lblCodeMaker.Location = new Point(250, 0x38);
this.lblCodeMaker.Name = "lblCodeMaker";
this.lblCodeMaker.Size = new Size(0x41, 12);
this.lblCodeMaker.TabIndex = 11;
this.lblCodeMaker.Text = "代码生成器";
this.lblCodeMaker.Click += new EventHandler(this.lblCodeMaker_Click);
this.pictureBox7.Cursor = Cursors.Hand;
this.pictureBox7.Image = (Image) manager.GetObject("pictureBox7.Image");
this.pictureBox7.Location = new Point(0xe4, 0x36);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new Size(0x10, 0x10);
this.pictureBox7.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox7.TabIndex = 10;
this.pictureBox7.TabStop = false;
this.pictureBox7.Click += new EventHandler(this.lblCodeMaker_Click);
this.lblNewPro.AutoSize = true;
this.lblNewPro.Cursor = Cursors.Hand;
this.lblNewPro.Location = new Point(250, 0x21);
this.lblNewPro.Name = "lblNewPro";
this.lblNewPro.Size = new Size(0x4d, 12);
this.lblNewPro.TabIndex = 9;
this.lblNewPro.Text = "生成代码项目";
this.lblNewPro.Click += new EventHandler(this.lblNewPro_Click);
this.pictureBox8.Cursor = Cursors.Hand;
this.pictureBox8.Image = (Image) manager.GetObject("pictureBox8.Image");
this.pictureBox8.Location = new Point(0xe4, 0x1f);
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new Size(0x10, 0x10);
this.pictureBox8.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox8.TabIndex = 8;
this.pictureBox8.TabStop = false;
this.pictureBox8.Click += new EventHandler(this.lblNewPro_Click);
this.lblWord.AutoSize = true;
this.lblWord.Cursor = Cursors.Hand;
this.lblWord.Location = new Point(0x3b, 100);
this.lblWord.Name = "lblWord";
this.lblWord.Size = new Size(0x65, 12);
this.lblWord.TabIndex = 7;
this.lblWord.Text = "数据库文档生成器";
this.lblWord.Click += new EventHandler(this.lblWord_Click);
this.pictureBox5.Cursor = Cursors.Hand;
this.pictureBox5.Image = (Image) manager.GetObject("pictureBox5.Image");
this.pictureBox5.Location = new Point(0x25, 0x62);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new Size(0x10, 0x10);
this.pictureBox5.SizeMode = PictureBoxSizeMode.Zoom;
this.pictureBox5.TabIndex = 6;
this.pictureBox5.TabStop = false;
this.pictureBox5.Click += new EventHandler(this.lblWord_Click);
this.lblDBScript.AutoSize = true;
this.lblDBScript.Cursor = Cursors.Hand;
this.lblDBScript.Location = new Point(0x3b, 0x4e);
this.lblDBScript.Name = "lblDBScript";
this.lblDBScript.Size = new Size(0x65, 12);
this.lblDBScript.TabIndex = 5;
this.lblDBScript.Text = "数据库脚本生成器";
this.lblDBScript.Click += new EventHandler(this.lblDBScript_Click);
this.pictureBox4.Cursor = Cursors.Hand;
this.pictureBox4.Image = (Image) manager.GetObject("pictureBox4.Image");
this.pictureBox4.Location = new Point(0x25, 0x4c);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new Size(0x10, 0x10);
this.pictureBox4.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox4.TabIndex = 4;
this.pictureBox4.TabStop = false;
this.pictureBox4.Click += new EventHandler(this.lblDBScript_Click);
this.lblDBBrowser.AutoSize = true;
this.lblDBBrowser.Cursor = Cursors.Hand;
this.lblDBBrowser.Location = new Point(0x3b, 0x38);
this.lblDBBrowser.Name = "lblDBBrowser";
this.lblDBBrowser.Size = new Size(0x4d, 12);
this.lblDBBrowser.TabIndex = 3;
this.lblDBBrowser.Text = "数据库浏览器";
this.lblDBBrowser.Click += new EventHandler(this.lblDBBrowser_Click);
this.pictureBox3.Cursor = Cursors.Hand;
this.pictureBox3.Image = (Image) manager.GetObject("pictureBox3.Image");
this.pictureBox3.Location = new Point(0x25, 0x36);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new Size(0x10, 0x10);
this.pictureBox3.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox3.TabIndex = 2;
this.pictureBox3.TabStop = false;
this.pictureBox3.Click += new EventHandler(this.lblDBBrowser_Click);
this.lblAddServer.AutoSize = true;
this.lblAddServer.Cursor = Cursors.Hand;
this.lblAddServer.Location = new Point(0x3b, 0x21);
this.lblAddServer.Name = "lblAddServer";
this.lblAddServer.Size = new Size(0x65, 12);
this.lblAddServer.TabIndex = 1;
this.lblAddServer.Text = "新增数据库服务器";
this.lblAddServer.Click += new EventHandler(this.lblAddServer_Click);
this.pictureBox2.Cursor = Cursors.Hand;
this.pictureBox2.Image = (Image) manager.GetObject("pictureBox2.Image");
this.pictureBox2.Location = new Point(0x25, 30);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new Size(0x12, 0x12);
this.pictureBox2.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox2.TabIndex = 0;
this.pictureBox2.TabStop = false;
this.pictureBox2.Click += new EventHandler(this.lblAddServer_Click);
this.groupBox2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
this.groupBox2.BackColor = Color.Transparent;
this.groupBox2.Controls.Add(this.pictureBox1);
this.groupBox2.Controls.Add(this.lblTip);
this.groupBox2.Controls.Add(this.listView1);
this.groupBox2.Location = new Point(12, 0xe2);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new Size(0x1e8, 0xda);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "最新信息";
this.pictureBox1.Image = Resources.ajax_loader1;
this.pictureBox1.Location = new Point(13, 0x16);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(0x10, 0x10);
this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
this.lblTip.AutoSize = true;
this.lblTip.Location = new Point(0x23, 0x18);
this.lblTip.Name = "lblTip";
this.lblTip.Size = new Size(0, 12);
this.lblTip.TabIndex = 2;
this.listView1.BackColor = Color.AliceBlue;
this.listView1.BorderStyle = BorderStyle.None;
this.listView1.Cursor = Cursors.Hand;
this.listView1.FullRowSelect = true;
this.listView1.HeaderStyle = ColumnHeaderStyle.None;
this.listView1.LargeImageList = this.imageList1;
this.listView1.Location = new Point(0x54, 0x39);
this.listView1.Name = "listView1";
this.listView1.Size = new Size(270, 0x9b);
this.listView1.SmallImageList = this.imageList1;
this.listView1.TabIndex = 1;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.Visible = false;
this.listView1.DoubleClick += new EventHandler(this.listView1_DoubleClick);
this.imageList1.ImageStream = (ImageListStreamer) manager.GetObject("imageList1.ImageStream");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -