home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
- using SKINCRAFTERLib;
- using Microsoft.Win32;
- using System.IO;
-
-
-
- namespace WindowsApplication1
- {
- /// <summary>
- /// Summary description for Form1.
- /// </summary>
- ///
-
- public class Form1 : System.Windows.Forms.Form
- {
- private System.Windows.Forms.MainMenu mainMenu1;
- private System.Windows.Forms.MenuItem menuItem1;
- private System.Windows.Forms.MenuItem menuItem2;
- private System.Windows.Forms.MenuItem menuItem3;
- private System.Windows.Forms.MenuItem menuItem4;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.CheckBox checkBox1;
- private System.Windows.Forms.RadioButton radioButton1;
- private System.Windows.Forms.ListView listView1;
- private System.Windows.Forms.TreeView treeView1;
- private System.Windows.Forms.VScrollBar vScrollBar1;
- private System.Windows.Forms.ListBox listBox1;
- private System.Windows.Forms.ComboBox comboBox1;
- private System.Windows.Forms.HScrollBar hScrollBar1;
- private System.Windows.Forms.MenuItem menuItem5;
- private System.Windows.Forms.OpenFileDialog openFileDialog1;
-
- public SKINCRAFTERLib.SCSkinClass SkinOb;
- public System.Drawing.Bitmap mBitmap;
- public System.Drawing.Image mImage;
- public System.Windows.Forms.FolderBrowserDialog foldDial;
- public Microsoft.Win32.Registry regist;
-
- private System.Windows.Forms.ComboBox comboBox2;
- private System.Windows.Forms.TabControl tabControl1;
- private System.Windows.Forms.TabPage tabPage1;
- private System.Windows.Forms.TabPage tabPage2;
- private System.Windows.Forms.TabPage tabPage3;
- private System.Windows.Forms.TabPage tabPage4;
- private System.Windows.Forms.TabPage tabPage5;
- private System.Windows.Forms.RadioButton radioButton2;
- private System.Windows.Forms.CheckBox checkBox2;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.ProgressBar progressBar1;
- private System.Windows.Forms.TrackBar trackBar1;
- private System.Windows.Forms.ComboBox comboBox3;
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.GroupBox groupBox2;
- private System.Windows.Forms.Button button4;
-
- private System.String SkinFolder;
- private System.Windows.Forms.TextBox textBoxSkinPath;
- private System.Windows.Forms.ComboBox comboBoxSkins;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
-
- public Form1()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter0"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter1"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter2"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter3"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter4"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter5"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter6"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter7"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem9 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter8"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem10 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter9"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem11 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter10"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem12 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter11"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem13 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter12"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem14 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter13"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem15 = new System.Windows.Forms.ListViewItem(new string[] {
- "Skincrafter14"}, -1, System.Drawing.SystemColors.WindowText, System.Drawing.SystemColors.Window, new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))));
- System.Windows.Forms.ListViewItem listViewItem16 = new System.Windows.Forms.ListViewItem("Skincrafter15");
- System.Windows.Forms.ListViewItem listViewItem17 = new System.Windows.Forms.ListViewItem("Skincrafter16");
- System.Windows.Forms.ListViewItem listViewItem18 = new System.Windows.Forms.ListViewItem("Skincrafter17");
- System.Windows.Forms.ListViewItem listViewItem19 = new System.Windows.Forms.ListViewItem("Skincrafter18");
- System.Windows.Forms.ListViewItem listViewItem20 = new System.Windows.Forms.ListViewItem("Skincrafter19");
- System.Windows.Forms.ListViewItem listViewItem21 = new System.Windows.Forms.ListViewItem("Skincrafter20");
- System.Windows.Forms.ListViewItem listViewItem22 = new System.Windows.Forms.ListViewItem("Skincrafter21");
- System.Windows.Forms.ListViewItem listViewItem23 = new System.Windows.Forms.ListViewItem("Skincrafter22");
- System.Windows.Forms.ListViewItem listViewItem24 = new System.Windows.Forms.ListViewItem("Skincrafter23");
- System.Windows.Forms.ListViewItem listViewItem25 = new System.Windows.Forms.ListViewItem("Skincrafter24");
- System.Windows.Forms.ListViewItem listViewItem26 = new System.Windows.Forms.ListViewItem("Skincrafter25");
- System.Windows.Forms.ListViewItem listViewItem27 = new System.Windows.Forms.ListViewItem("Skincrafter26");
- System.Windows.Forms.ListViewItem listViewItem28 = new System.Windows.Forms.ListViewItem("Skincrafter27");
- System.Windows.Forms.ListViewItem listViewItem29 = new System.Windows.Forms.ListViewItem("Skincrafter28");
- System.Windows.Forms.ListViewItem listViewItem30 = new System.Windows.Forms.ListViewItem("Skincrafter29");
- System.Windows.Forms.ListViewItem listViewItem31 = new System.Windows.Forms.ListViewItem("Skincrafter30");
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.mainMenu1 = new System.Windows.Forms.MainMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.menuItem5 = new System.Windows.Forms.MenuItem();
- this.menuItem3 = new System.Windows.Forms.MenuItem();
- this.menuItem4 = new System.Windows.Forms.MenuItem();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.checkBox2 = new System.Windows.Forms.CheckBox();
- this.radioButton2 = new System.Windows.Forms.RadioButton();
- this.radioButton1 = new System.Windows.Forms.RadioButton();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
- this.listView1 = new System.Windows.Forms.ListView();
- this.treeView1 = new System.Windows.Forms.TreeView();
- this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
- this.listBox1 = new System.Windows.Forms.ListBox();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
- this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
- this.comboBox2 = new System.Windows.Forms.ComboBox();
- this.tabControl1 = new System.Windows.Forms.TabControl();
- this.tabPage1 = new System.Windows.Forms.TabPage();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.tabPage2 = new System.Windows.Forms.TabPage();
- this.tabPage3 = new System.Windows.Forms.TabPage();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.tabPage4 = new System.Windows.Forms.TabPage();
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.tabPage5 = new System.Windows.Forms.TabPage();
- this.progressBar1 = new System.Windows.Forms.ProgressBar();
- this.trackBar1 = new System.Windows.Forms.TrackBar();
- this.comboBox3 = new System.Windows.Forms.ComboBox();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.button4 = new System.Windows.Forms.Button();
- this.textBoxSkinPath = new System.Windows.Forms.TextBox();
- this.comboBoxSkins = new System.Windows.Forms.ComboBox();
- this.groupBox1.SuspendLayout();
- this.tabControl1.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.tabPage2.SuspendLayout();
- this.tabPage3.SuspendLayout();
- this.tabPage4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
- this.groupBox2.SuspendLayout();
- this.SuspendLayout();
- //
- // mainMenu1
- //
- this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem1,
- this.menuItem3});
- //
- // menuItem1
- //
- this.menuItem1.Index = 0;
- this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem2,
- this.menuItem5});
- this.menuItem1.Text = "File";
- this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
- //
- // menuItem2
- //
- this.menuItem2.Index = 0;
- this.menuItem2.Text = "Open";
- this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
- //
- // menuItem5
- //
- this.menuItem5.Index = 1;
- this.menuItem5.Text = "Exit";
- this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
- //
- // menuItem3
- //
- this.menuItem3.Index = 1;
- this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem4});
- this.menuItem3.Text = "Help";
- //
- // menuItem4
- //
- this.menuItem4.Index = 0;
- this.menuItem4.Text = "About";
- this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
- //
- // textBox1
- //
- this.textBox1.Location = new System.Drawing.Point(64, 8);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(136, 20);
- this.textBox1.TabIndex = 1;
- this.textBox1.Text = "textBox1";
- //
- // label1
- //
- this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
- this.label1.Location = new System.Drawing.Point(8, 8);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(48, 16);
- this.label1.TabIndex = 2;
- this.label1.Text = "Label";
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.checkBox2);
- this.groupBox1.Controls.Add(this.radioButton2);
- this.groupBox1.Controls.Add(this.radioButton1);
- this.groupBox1.Controls.Add(this.checkBox1);
- this.groupBox1.Location = new System.Drawing.Point(8, 32);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(192, 64);
- this.groupBox1.TabIndex = 3;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "RadioButton";
- //
- // checkBox2
- //
- this.checkBox2.Location = new System.Drawing.Point(8, 40);
- this.checkBox2.Name = "checkBox2";
- this.checkBox2.Size = new System.Drawing.Size(80, 16);
- this.checkBox2.TabIndex = 3;
- this.checkBox2.Text = "checkBox2";
- //
- // radioButton2
- //
- this.radioButton2.Location = new System.Drawing.Point(96, 16);
- this.radioButton2.Name = "radioButton2";
- this.radioButton2.Size = new System.Drawing.Size(88, 16);
- this.radioButton2.TabIndex = 2;
- this.radioButton2.Text = "radioButton2";
- //
- // radioButton1
- //
- this.radioButton1.Location = new System.Drawing.Point(96, 40);
- this.radioButton1.Name = "radioButton1";
- this.radioButton1.Size = new System.Drawing.Size(88, 16);
- this.radioButton1.TabIndex = 1;
- this.radioButton1.Text = "radioButton1";
- //
- // checkBox1
- //
- this.checkBox1.Location = new System.Drawing.Point(8, 16);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(88, 16);
- this.checkBox1.TabIndex = 0;
- this.checkBox1.Text = "checkBox1";
- //
- // listView1
- //
- this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
- listViewItem1,
- listViewItem2,
- listViewItem3,
- listViewItem4,
- listViewItem5,
- listViewItem6,
- listViewItem7,
- listViewItem8,
- listViewItem9,
- listViewItem10,
- listViewItem11,
- listViewItem12,
- listViewItem13,
- listViewItem14,
- listViewItem15,
- listViewItem16,
- listViewItem17,
- listViewItem18,
- listViewItem19,
- listViewItem20,
- listViewItem21,
- listViewItem22,
- listViewItem23,
- listViewItem24,
- listViewItem25,
- listViewItem26,
- listViewItem27,
- listViewItem28,
- listViewItem29,
- listViewItem30,
- listViewItem31});
- this.listView1.Location = new System.Drawing.Point(8, 8);
- this.listView1.Name = "listView1";
- this.listView1.Size = new System.Drawing.Size(328, 144);
- this.listView1.TabIndex = 4;
- this.listView1.View = System.Windows.Forms.View.List;
- //
- // treeView1
- //
- this.treeView1.ImageIndex = -1;
- this.treeView1.Location = new System.Drawing.Point(8, 104);
- this.treeView1.Name = "treeView1";
- this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Scincrafter 0", new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Skincrafter 1")}),
- new System.Windows.Forms.TreeNode("Skincrafter 1", new System.Windows.Forms.TreeNode[] {
- new System.Windows.Forms.TreeNode("Skincrafter 2")})});
- this.treeView1.SelectedImageIndex = -1;
- this.treeView1.Size = new System.Drawing.Size(112, 96);
- this.treeView1.TabIndex = 5;
- //
- // vScrollBar1
- //
- this.vScrollBar1.Location = new System.Drawing.Point(128, 104);
- this.vScrollBar1.Name = "vScrollBar1";
- this.vScrollBar1.Size = new System.Drawing.Size(16, 96);
- this.vScrollBar1.TabIndex = 6;
- //
- // listBox1
- //
- this.listBox1.Items.AddRange(new object[] {
- "SkinCrafter 0",
- "SkinCrafter 1",
- "SkinCrafter 2",
- "SkinCrafter 3",
- "SkinCrafter 4",
- "SkinCrafter 5",
- "SkinCrafter 6",
- "SkinCrafter 7",
- "SkinCrafter 8",
- "SkinCrafter 9",
- "SkinCrafter 10",
- "SkinCrafter 11",
- "SkinCrafter 12",
- "SkinCrafter 13",
- "SkinCrafter 14",
- "SkinCrafter 15"});
- this.listBox1.Location = new System.Drawing.Point(208, 8);
- this.listBox1.Name = "listBox1";
- this.listBox1.Size = new System.Drawing.Size(144, 82);
- this.listBox1.TabIndex = 8;
- //
- // comboBox1
- //
- this.comboBox1.Items.AddRange(new object[] {
- "SkinCrafter 0",
- "SkinCrafter 1",
- "SkinCrafter 2",
- "SkinCrafter 3",
- "SkinCrafter 4",
- "SkinCrafter 5",
- "SkinCrafter 6",
- "SkinCrafter 7",
- "SkinCrafter 8",
- "SkinCrafter 9",
- "SkinCrafter 10"});
- this.comboBox1.Location = new System.Drawing.Point(152, 104);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(96, 21);
- this.comboBox1.TabIndex = 9;
- this.comboBox1.Text = "comboBox1";
- //
- // hScrollBar1
- //
- this.hScrollBar1.Location = new System.Drawing.Point(256, 264);
- this.hScrollBar1.Name = "hScrollBar1";
- this.hScrollBar1.Size = new System.Drawing.Size(96, 16);
- this.hScrollBar1.TabIndex = 10;
- this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll);
- //
- // openFileDialog1
- //
- this.openFileDialog1.Filter = "SkinCrafter files (*.skf)|*.skf";
- //
- // comboBox2
- //
- this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox2.Items.AddRange(new object[] {
- "SkinCrafter 0",
- "SkinCrafter 1",
- "SkinCrafter 2",
- "SkinCrafter 3",
- "SkinCrafter 4",
- "SkinCrafter 5",
- "SkinCrafter 6",
- "SkinCrafter 7",
- "SkinCrafter 8",
- "SkinCrafter 9",
- "SkinCrafter 10"});
- this.comboBox2.Location = new System.Drawing.Point(152, 136);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(96, 21);
- this.comboBox2.TabIndex = 11;
- //
- // tabControl1
- //
- this.tabControl1.Controls.Add(this.tabPage1);
- this.tabControl1.Controls.Add(this.tabPage2);
- this.tabControl1.Controls.Add(this.tabPage3);
- this.tabControl1.Controls.Add(this.tabPage4);
- this.tabControl1.Controls.Add(this.tabPage5);
- this.tabControl1.Location = new System.Drawing.Point(8, 288);
- this.tabControl1.Name = "tabControl1";
- this.tabControl1.SelectedIndex = 0;
- this.tabControl1.Size = new System.Drawing.Size(352, 184);
- this.tabControl1.TabIndex = 12;
- //
- // tabPage1
- //
- this.tabPage1.Controls.Add(this.textBox3);
- this.tabPage1.Location = new System.Drawing.Point(4, 22);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Size = new System.Drawing.Size(344, 158);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "Tab 0";
- //
- // textBox3
- //
- this.textBox3.Location = new System.Drawing.Point(8, 8);
- this.textBox3.Multiline = true;
- this.textBox3.Name = "textBox3";
- this.textBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBox3.Size = new System.Drawing.Size(328, 144);
- this.textBox3.TabIndex = 0;
- this.textBox3.Text = "textBox3";
- //
- // tabPage2
- //
- this.tabPage2.Controls.Add(this.listView1);
- this.tabPage2.Location = new System.Drawing.Point(4, 22);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Size = new System.Drawing.Size(344, 158);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "Tab 1";
- //
- // tabPage3
- //
- this.tabPage3.Controls.Add(this.pictureBox1);
- this.tabPage3.Location = new System.Drawing.Point(4, 22);
- this.tabPage3.Name = "tabPage3";
- this.tabPage3.Size = new System.Drawing.Size(344, 158);
- this.tabPage3.TabIndex = 2;
- this.tabPage3.Text = "Tab 2";
- //
- // pictureBox1
- //
- this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(8, 8);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(328, 144);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox1.TabIndex = 0;
- this.pictureBox1.TabStop = false;
- //
- // tabPage4
- //
- this.tabPage4.Controls.Add(this.label3);
- this.tabPage4.Controls.Add(this.label2);
- this.tabPage4.Location = new System.Drawing.Point(4, 22);
- this.tabPage4.Name = "tabPage4";
- this.tabPage4.Size = new System.Drawing.Size(344, 158);
- this.tabPage4.TabIndex = 3;
- this.tabPage4.Text = "Tab 3";
- //
- // label3
- //
- this.label3.Location = new System.Drawing.Point(48, 32);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(56, 16);
- this.label3.TabIndex = 1;
- this.label3.Text = "label3";
- //
- // label2
- //
- this.label2.Location = new System.Drawing.Point(216, 64);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(48, 23);
- this.label2.TabIndex = 0;
- this.label2.Text = "label2";
- //
- // tabPage5
- //
- this.tabPage5.Location = new System.Drawing.Point(4, 22);
- this.tabPage5.Name = "tabPage5";
- this.tabPage5.Size = new System.Drawing.Size(344, 158);
- this.tabPage5.TabIndex = 4;
- this.tabPage5.Text = "Tab 4";
- //
- // progressBar1
- //
- this.progressBar1.Location = new System.Drawing.Point(256, 104);
- this.progressBar1.Name = "progressBar1";
- this.progressBar1.Size = new System.Drawing.Size(96, 16);
- this.progressBar1.TabIndex = 13;
- this.progressBar1.Value = 30;
- //
- // trackBar1
- //
- this.trackBar1.Location = new System.Drawing.Point(248, 128);
- this.trackBar1.Name = "trackBar1";
- this.trackBar1.Size = new System.Drawing.Size(112, 34);
- this.trackBar1.TabIndex = 14;
- //
- // comboBox3
- //
- this.comboBox3.Enabled = false;
- this.comboBox3.Location = new System.Drawing.Point(152, 168);
- this.comboBox3.Name = "comboBox3";
- this.comboBox3.Size = new System.Drawing.Size(96, 21);
- this.comboBox3.TabIndex = 15;
- this.comboBox3.Text = "comboBox3";
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(256, 168);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(96, 23);
- this.button1.TabIndex = 16;
- this.button1.Text = "RemoveSkin";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(256, 200);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(96, 23);
- this.button2.TabIndex = 17;
- this.button2.Text = "ApplySkin";
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button3
- //
- this.button3.Enabled = false;
- this.button3.Location = new System.Drawing.Point(256, 232);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(96, 24);
- this.button3.TabIndex = 18;
- this.button3.Text = "Disabled button";
- this.button3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.button4);
- this.groupBox2.Controls.Add(this.textBoxSkinPath);
- this.groupBox2.Controls.Add(this.comboBoxSkins);
- this.groupBox2.Location = new System.Drawing.Point(8, 200);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(240, 80);
- this.groupBox2.TabIndex = 19;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "Skins";
- this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
- //
- // button4
- //
- this.button4.Location = new System.Drawing.Point(8, 16);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(120, 24);
- this.button4.TabIndex = 2;
- this.button4.Text = "Set skin directory";
- this.button4.Click += new System.EventHandler(this.button4_Click);
- //
- // textBoxSkinPath
- //
- this.textBoxSkinPath.Enabled = false;
- this.textBoxSkinPath.Location = new System.Drawing.Point(8, 48);
- this.textBoxSkinPath.Name = "textBoxSkinPath";
- this.textBoxSkinPath.ReadOnly = true;
- this.textBoxSkinPath.Size = new System.Drawing.Size(224, 20);
- this.textBoxSkinPath.TabIndex = 1;
- this.textBoxSkinPath.Text = "";
- //
- // comboBoxSkins
- //
- this.comboBoxSkins.Location = new System.Drawing.Point(136, 16);
- this.comboBoxSkins.Name = "comboBoxSkins";
- this.comboBoxSkins.Size = new System.Drawing.Size(96, 21);
- this.comboBoxSkins.TabIndex = 0;
- this.comboBoxSkins.SelectedIndexChanged += new System.EventHandler(this.comboBoxSkins_SelectedIndexChanged);
- //
- // Form1
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(368, 471);
- this.Controls.Add(this.groupBox2);
- this.Controls.Add(this.button3);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.comboBox3);
- this.Controls.Add(this.trackBar1);
- this.Controls.Add(this.progressBar1);
- this.Controls.Add(this.tabControl1);
- this.Controls.Add(this.comboBox2);
- this.Controls.Add(this.hScrollBar1);
- this.Controls.Add(this.comboBox1);
- this.Controls.Add(this.listBox1);
- this.Controls.Add(this.vScrollBar1);
- this.Controls.Add(this.treeView1);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.textBox1);
- this.Menu = this.mainMenu1;
- this.Name = "Form1";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Form1";
- this.Load += new System.EventHandler(this.Form1_Load);
- this.groupBox1.ResumeLayout(false);
- this.tabControl1.ResumeLayout(false);
- this.tabPage1.ResumeLayout(false);
- this.tabPage2.ResumeLayout(false);
- this.tabPage3.ResumeLayout(false);
- this.tabPage4.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
- this.groupBox2.ResumeLayout(false);
- this.ResumeLayout(false);
-
- }
- #endregion
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Form1 newForm = new Form1();
-
- newForm.SkinOb = new SKINCRAFTERLib.SCSkinClass();
- newForm.SkinOb.InitLicenKeys("0", "SKINCRAFTER", "SKINCRAFTER.COM", "support@skincrafter.com", "DEMOSKINCRAFTERLICENCE");
- newForm.SkinOb.DefineLanguage(1);
-
- newForm.SkinOb.InitDecoration(1);
-
- string SkinRegPath = newForm.LoadPathFromRegistry();
- newForm.FillSkinCombo(SkinRegPath);
- newForm.textBoxSkinPath.Text = SkinRegPath;
- newForm.SkinFolder = SkinRegPath;
- newForm.SkinOb.ExcludeWnd((int)newForm.pictureBox1.Handle,0);
-
- Application.Run(newForm);
-
- newForm.SkinOb.DeInitDecoration();
- }
-
- private void menuItem2_Click(object sender, System.EventArgs e)
- {
- if(openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- try
- {
- SkinOb.LoadSkinFromFile(openFileDialog1.FileName);
- SkinOb.ApplySkin();
- }
- catch (Exception exp)
- {
-
- }
- }
- }
-
- private void menuItem5_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
-
- private void Form1_Load(object sender, System.EventArgs e)
- {
-
- }
-
- private void menuItem1_Click(object sender, System.EventArgs e)
- {
-
- }
-
- private void hScrollBar1_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
- {
-
- }
-
- private void button1_Click(object sender, System.EventArgs e)
- {
- SkinOb.RemoveSkin();
- }
-
- private void button2_Click(object sender, System.EventArgs e)
- {
- SkinOb.ApplySkin();
- }
-
- private void menuItem4_Click(object sender, System.EventArgs e)
- {
- SkinOb.AboutSkinCrafter();
- }
-
- private void button3_Click(object sender, System.EventArgs e)
- {
-
- }
-
- private void groupBox2_Enter(object sender, System.EventArgs e)
- {
-
- }
-
- private void button4_Click(object sender, System.EventArgs e)
- {
- foldDial = new FolderBrowserDialog();
- if(SkinFolder == null)
- {
- foldDial.SelectedPath = LoadPathFromRegistry();
- }
- else
- foldDial.SelectedPath = SkinFolder;
-
- foldDial.ShowNewFolderButton = false;
- foldDial.ShowDialog(this);
-
- SkinFolder = foldDial.SelectedPath;
-
- this.textBoxSkinPath.Text = SkinFolder;
-
- FillSkinCombo(SkinFolder);
-
- }
-
- private void comboBoxSkins_SelectedIndexChanged(object sender, System.EventArgs e)
- {
- SkinOb.LoadSkinFromFile(SkinFolder+"\\"+this.comboBoxSkins.Text);
- SkinOb.ApplySkin();
- SkinOb.UpdateControl(0);
- }
-
- private string LoadPathFromRegistry()
- {
- RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\SkinCrafter\SkinCrafter Demo");
- Object ob = null;
- ob = rk.GetValue("SkinPath");
- if(ob == null)
- return "";
- else
- return ob.ToString();
- }
-
- private void FillSkinCombo(string path)
- {
- try
- {
-
- DirectoryInfo di = new DirectoryInfo(path);
- FileInfo[] fi = di.GetFiles ("*.skf");
- this.comboBoxSkins.Items.Clear();
- this.comboBoxSkins.Text = "";
- foreach(FileInfo nxFi in fi)
- {
- this.comboBoxSkins.Items.Add(nxFi.Name);
- }
- }
- catch (Exception e)
- {
-
- }
- }
-
- }
- }
-