Exemplo n.º 1
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainForm));

            this.taskList        = new ListView();
            this.columnHeader1   = new ColumnHeader();
            this.columnHeader2   = new ColumnHeader();
            this.columnHeader3   = new ColumnHeader();
            this.btnAdd          = new Button();
            this.btnAddDel       = new Button();
            this.btnRun          = new Button();
            this.gradientBanner1 = new GradientBanner();
            this.btnDeleteTask   = new Button();
            this.toolTip1        = new ToolTip(this.components);
            this.chkKillAll      = new CheckBox();
            this.btnRestore      = new Button();
            this.lnkAbout        = new LinkLabel();
            this.lnkConfig       = new LinkLabel();
            this.fileDropHelper1 = new FileDropHelper();
            base.SuspendLayout();
            this.taskList.AccessibleDescription = null;
            this.taskList.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.taskList, "taskList");
            this.taskList.BackgroundImage = null;
            this.taskList.Columns.AddRange(new ColumnHeader[]
            {
                this.columnHeader1,
                this.columnHeader2,
                this.columnHeader3
            });
            this.taskList.Font          = null;
            this.taskList.FullRowSelect = true;
            this.taskList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.taskList.Name          = "taskList";
            this.toolTip1.SetToolTip(this.taskList, componentResourceManager.GetString("taskList.ToolTip"));
            this.taskList.UseCompatibleStateImageBehavior = false;
            this.taskList.View = View.Details;
            componentResourceManager.ApplyResources(this.columnHeader1, "columnHeader1");
            componentResourceManager.ApplyResources(this.columnHeader2, "columnHeader2");
            componentResourceManager.ApplyResources(this.columnHeader3, "columnHeader3");
            this.btnAdd.AccessibleDescription = null;
            this.btnAdd.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.btnAdd, "btnAdd");
            this.btnAdd.BackgroundImage = null;
            this.btnAdd.Font            = null;
            this.btnAdd.Name            = "btnAdd";
            this.toolTip1.SetToolTip(this.btnAdd, componentResourceManager.GetString("btnAdd.ToolTip"));
            this.btnAdd.UseVisualStyleBackColor  = true;
            this.btnAddDel.AccessibleDescription = null;
            this.btnAddDel.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.btnAddDel, "btnAddDel");
            this.btnAddDel.BackgroundImage = null;
            this.btnAddDel.Font            = null;
            this.btnAddDel.Name            = "btnAddDel";
            this.toolTip1.SetToolTip(this.btnAddDel, componentResourceManager.GetString("btnAddDel.ToolTip"));
            this.btnAddDel.UseVisualStyleBackColor = true;
            this.btnRun.AccessibleDescription      = null;
            this.btnRun.AccessibleName             = null;
            componentResourceManager.ApplyResources(this.btnRun, "btnRun");
            this.btnRun.BackgroundImage = null;
            this.btnRun.Font            = null;
            this.btnRun.Name            = "btnRun";
            this.toolTip1.SetToolTip(this.btnRun, componentResourceManager.GetString("btnRun.ToolTip"));
            this.btnRun.UseVisualStyleBackColor        = true;
            this.gradientBanner1.AccessibleDescription = null;
            this.gradientBanner1.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.gradientBanner1, "gradientBanner1");
            this.gradientBanner1.BackgroundImage   = null;
            this.gradientBanner1.BottomBorderColor = Color.RoyalBlue;
            this.gradientBanner1.BriefText         = null;
            this.gradientBanner1.BriefTextColor    = Color.Magenta;
            this.gradientBanner1.DisplayPadding    = 5f;
            this.gradientBanner1.EndColor          = Color.White;
            this.gradientBanner1.Font             = null;
            this.gradientBanner1.HeadImage        = (Image)componentResourceManager.GetObject("gradientBanner1.HeadImage");
            this.gradientBanner1.Name             = "gradientBanner1";
            this.gradientBanner1.ShowBottomBorder = true;
            this.gradientBanner1.StartColor       = Color.RoyalBlue;
            this.gradientBanner1.TextAlign        = GradientBanner.TextAlignType.MiddleLeft;
            this.gradientBanner1.TextColor        = Color.White;
            this.gradientBanner1.TextFont         = new Font("微软雅黑", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.toolTip1.SetToolTip(this.gradientBanner1, componentResourceManager.GetString("gradientBanner1.ToolTip"));
            this.btnDeleteTask.AccessibleDescription = null;
            this.btnDeleteTask.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.btnDeleteTask, "btnDeleteTask");
            this.btnDeleteTask.BackgroundImage = null;
            this.btnDeleteTask.Font            = null;
            this.btnDeleteTask.Name            = "btnDeleteTask";
            this.toolTip1.SetToolTip(this.btnDeleteTask, componentResourceManager.GetString("btnDeleteTask.ToolTip"));
            this.btnDeleteTask.UseVisualStyleBackColor = true;
            this.chkKillAll.AccessibleDescription      = null;
            this.chkKillAll.AccessibleName             = null;
            componentResourceManager.ApplyResources(this.chkKillAll, "chkKillAll");
            this.chkKillAll.BackgroundImage = null;
            this.chkKillAll.Checked         = true;
            this.chkKillAll.CheckState      = CheckState.Checked;
            this.chkKillAll.Font            = null;
            this.chkKillAll.Name            = "chkKillAll";
            this.toolTip1.SetToolTip(this.chkKillAll, componentResourceManager.GetString("chkKillAll.ToolTip"));
            this.chkKillAll.UseVisualStyleBackColor = true;
            this.btnRestore.AccessibleDescription   = null;
            this.btnRestore.AccessibleName          = null;
            componentResourceManager.ApplyResources(this.btnRestore, "btnRestore");
            this.btnRestore.BackgroundImage = null;
            this.btnRestore.Font            = null;
            this.btnRestore.Name            = "btnRestore";
            this.toolTip1.SetToolTip(this.btnRestore, componentResourceManager.GetString("btnRestore.ToolTip"));
            this.btnRestore.UseVisualStyleBackColor = true;
            this.lnkAbout.AccessibleDescription     = null;
            this.lnkAbout.AccessibleName            = null;
            componentResourceManager.ApplyResources(this.lnkAbout, "lnkAbout");
            this.lnkAbout.Font    = null;
            this.lnkAbout.Name    = "lnkAbout";
            this.lnkAbout.TabStop = true;
            this.toolTip1.SetToolTip(this.lnkAbout, componentResourceManager.GetString("lnkAbout.ToolTip"));
            this.lnkConfig.AccessibleDescription = null;
            this.lnkConfig.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.lnkConfig, "lnkConfig");
            this.lnkConfig.Font    = null;
            this.lnkConfig.Name    = "lnkConfig";
            this.lnkConfig.TabStop = true;
            this.toolTip1.SetToolTip(this.lnkConfig, componentResourceManager.GetString("lnkConfig.ToolTip"));
            this.fileDropHelper1.AttachedControl = this.taskList;
            this.fileDropHelper1.DropTypeEnable  = FileDropHelper.DropType.File;
            this.fileDropHelper1.Enabled         = true;
            this.fileDropHelper1.FileTypeFilter  = "ttf|ttc|otf";
            this.fileDropHelper1.LinkType        = DragDropEffects.Link;
            base.AccessibleDescription           = null;
            base.AccessibleName = null;
            componentResourceManager.ApplyResources(this, "$this");
            base.AutoScaleMode   = AutoScaleMode.Font;
            this.BackgroundImage = null;
            base.Controls.Add(this.lnkConfig);
            base.Controls.Add(this.lnkAbout);
            base.Controls.Add(this.btnRestore);
            base.Controls.Add(this.chkKillAll);
            base.Controls.Add(this.btnRun);
            base.Controls.Add(this.btnDeleteTask);
            base.Controls.Add(this.btnAddDel);
            base.Controls.Add(this.btnAdd);
            base.Controls.Add(this.taskList);
            base.Controls.Add(this.gradientBanner1);
            this.Font            = null;
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.MaximizeBox     = false;
            base.Name            = "MainForm";
            this.toolTip1.SetToolTip(this, componentResourceManager.GetString("$this.ToolTip"));
            base.Load += new EventHandler(this.MainForm_Load);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Exemplo n.º 2
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FontReplaceSet));

            this.label1          = new Label();
            this.label2          = new Label();
            this.fontCombo       = new ComboBox();
            this.label3          = new Label();
            this.btnOK           = new Button();
            this.btnCancel       = new Button();
            this.fontWarning     = new Label();
            this.fontFile        = new FileSelector();
            this.gradientBanner1 = new GradientBanner();
            base.SuspendLayout();
            this.label1.AccessibleDescription = null;
            this.label1.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.Font = null;
            this.label1.Name = "label1";
            this.label2.AccessibleDescription = null;
            this.label2.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.label2, "label2");
            this.label2.Font = null;
            this.label2.Name = "label2";
            this.fontCombo.AccessibleDescription = null;
            this.fontCombo.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.fontCombo, "fontCombo");
            this.fontCombo.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            this.fontCombo.AutoCompleteSource = AutoCompleteSource.ListItems;
            this.fontCombo.BackgroundImage    = null;
            this.fontCombo.Font = null;
            this.fontCombo.FormattingEnabled = true;
            this.fontCombo.Name = "fontCombo";
            this.label3.AccessibleDescription = null;
            this.label3.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.label3, "label3");
            this.label3.Font = null;
            this.label3.Name = "label3";
            this.btnOK.AccessibleDescription = null;
            this.btnOK.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.btnOK, "btnOK");
            this.btnOK.BackgroundImage           = null;
            this.btnOK.Font                      = null;
            this.btnOK.Name                      = "btnOK";
            this.btnOK.UseVisualStyleBackColor   = true;
            this.btnCancel.AccessibleDescription = null;
            this.btnCancel.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.btnCancel, "btnCancel");
            this.btnCancel.BackgroundImage         = null;
            this.btnCancel.DialogResult            = DialogResult.Cancel;
            this.btnCancel.Font                    = null;
            this.btnCancel.Name                    = "btnCancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.fontWarning.AccessibleDescription = null;
            this.fontWarning.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.fontWarning, "fontWarning");
            this.fontWarning.Font               = null;
            this.fontWarning.ForeColor          = Color.Red;
            this.fontWarning.Name               = "fontWarning";
            this.fontFile.AccessibleDescription = null;
            this.fontFile.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.fontFile, "fontFile");
            this.fontFile.BackgroundImage    = null;
            this.fontFile.EnableFileDrop     = false;
            this.fontFile.EnableUserType     = false;
            this.fontFile.EnablueMulitChoose = false;
            this.fontFile.FileMode           = FileSelector.Mode.Open;
            this.fontFile.Font = null;
            this.fontFile.Name = "fontFile";
            this.gradientBanner1.AccessibleDescription = null;
            this.gradientBanner1.AccessibleName        = null;
            componentResourceManager.ApplyResources(this.gradientBanner1, "gradientBanner1");
            this.gradientBanner1.BackgroundImage   = null;
            this.gradientBanner1.BottomBorderColor = SystemColors.WindowFrame;
            this.gradientBanner1.BriefText         = null;
            this.gradientBanner1.BriefTextColor    = Color.White;
            this.gradientBanner1.DisplayPadding    = 5f;
            this.gradientBanner1.EndColor          = Color.White;
            this.gradientBanner1.Font       = null;
            this.gradientBanner1.HeadImage  = null;
            this.gradientBanner1.Name       = "gradientBanner1";
            this.gradientBanner1.StartColor = Color.RoyalBlue;
            this.gradientBanner1.TextAlign  = GradientBanner.TextAlignType.MiddleLeft;
            this.gradientBanner1.TextColor  = Color.White;
            this.gradientBanner1.TextFont   = new Font("微软雅黑", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
            base.AcceptButton          = this.btnOK;
            base.AccessibleDescription = null;
            base.AccessibleName        = null;
            componentResourceManager.ApplyResources(this, "$this");
            base.AutoScaleMode   = AutoScaleMode.Font;
            this.BackgroundImage = null;
            base.CancelButton    = this.btnCancel;
            base.Controls.Add(this.fontWarning);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOK);
            base.Controls.Add(this.fontCombo);
            base.Controls.Add(this.fontFile);
            base.Controls.Add(this.label3);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.label1);
            base.Controls.Add(this.gradientBanner1);
            this.Font            = null;
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.Icon            = null;
            base.Name            = "FontReplaceSet";
            base.ShowInTaskbar   = false;
            base.ResumeLayout(false);
            base.PerformLayout();
        }