private int j; //cuenta indices secundarios si son necesarios solamente. // Use this for initialization void Start() { //El script esta en la camara principal por eso tengo que buscarlo, quiero llamar al bool isPack desde aqui. menuInferior = GameObject.Find("MenuInferior").GetComponent <MenuInferior>(); //añade items vacios al inventario y a los espacios. for (int i = 0; i < espaciosX * espaciosY; i++) { espacios.Add(itemVacio); inventario.Add(itemVacio); } //llamo a las componentes de ItemDatabase para poder usarlas para crear items y asi. database = GameObject.FindGameObjectWithTag("Item Database").GetComponent <ItemDatabase>(); //NOTA: Manera de agregar objetos sin la funcion: inventario.Add (database.item[0]); //NOTA: AgregarAInventario (105); //NOTA: EliminarDelInventario(100); AgregarAInventario(100); AgregarAInventario(101); AgregarAInventario(102); AgregarAInventario(103); AgregarAInventario(104); AgregarAInventario(105); AgregarAInventario(100); AgregarAInventario(101); AgregarAInventario(102); //Estilos: styleDescripcion = skinGUI.GetStyle("Descripcion"); styleCruz = skinGUI.GetStyle("BotonExit"); //Tamaño Fuentes: styleDescripcion.fontSize = Screen.height / 23; }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(NewModDialog)); this.textBox = new TextBox(); this.lblName = new Label(); this.menuInferior = new MenuInferior(); base.SuspendLayout(); componentResourceManager.ApplyResources(this.textBox, "textBox"); this.textBox.Name = "textBox"; this.textBox.KeyDown += new KeyEventHandler(this.textBox_KeyDown); componentResourceManager.ApplyResources(this.lblName, "lblName"); this.lblName.BackColor = Color.Transparent; this.lblName.Name = "lblName"; componentResourceManager.ApplyResources(this.menuInferior, "menuInferior"); this.menuInferior.ButtonApplyVisible = false; this.menuInferior.Name = "menuInferior"; this.menuInferior.ButtonOkClick += new EventHandler(this.btn_OK_Click); this.menuInferior.ButtonCancelClick += new EventHandler(this.btn_Cancel_Click); componentResourceManager.ApplyResources(this, "$this"); base.AutoBackgroundImage = BackgroundImages.Aisha; base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.menuInferior); base.Controls.Add(this.textBox); base.Controls.Add(this.lblName); this.DoubleBuffered = true; base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "NewModDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.ResumeLayout(false); base.PerformLayout(); }
// Use this for initialization void Start() { menuInferior = GameObject.Find("MenuInferior").GetComponent <MenuInferior>(); disTrans = gameObject.transform.position; disTrans = new Vector3(0.5f, 0.5f, -8); gameObject.transform.position = disTrans; gameObject.SetActive(false); }
// Crea un MenuInferior según lo indicado private void CrearMenuInferior() { // MenuInferior if (valorInicial == 1) { menuInferior[0] = new MenuInferior(var.GetStandardNomButtonsTypes); menuInferior[1] = new MenuInferior(var.GetStandardNomButtonsFeatures); } else if (valorInicial == 2) { menuInferior[0] = new MenuInferior(var.GetProNomButtonsTypes); menuInferior[1] = new MenuInferior(var.GetProNomButtonsFeatures); } else { menuInferior[0] = new MenuInferior(var.GetProFunctionsNomButtons[0]); menuInferior[1] = new MenuInferior(var.GetProFunctionsNomButtons[1]); menuInferior[2] = new MenuInferior(var.GetProFunctionsNomButtons[2]); } }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(BadPasswordDialog)); this.label = new Label(); this.tbxPassword = new TextBox(); this.cbxShowPassword = new CheckBox(); this.menuInferior = new MenuInferior(); base.SuspendLayout(); componentResourceManager.ApplyResources(this.label, "label"); this.label.AutoEllipsis = true; this.label.Name = "label"; componentResourceManager.ApplyResources(this.tbxPassword, "tbxPassword"); this.tbxPassword.Name = "tbxPassword"; componentResourceManager.ApplyResources(this.cbxShowPassword, "cbxShowPassword"); this.cbxShowPassword.Name = "cbxShowPassword"; this.cbxShowPassword.UseVisualStyleBackColor = true; this.cbxShowPassword.CheckedChanged += new EventHandler(this.cbxShowPassword_CheckedChanged); componentResourceManager.ApplyResources(this.menuInferior, "menuInferior"); this.menuInferior.ButtonApplyVisible = false; this.menuInferior.Name = "menuInferior"; this.menuInferior.ButtonOkClick += new EventHandler(this.btn_OK_Click); this.menuInferior.ButtonCancelClick += new EventHandler(this.btn_Cancel_Click); componentResourceManager.ApplyResources(this, "$this"); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.menuInferior); base.Controls.Add(this.cbxShowPassword); base.Controls.Add(this.tbxPassword); base.Controls.Add(this.label); this.DoubleBuffered = true; base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "BadPasswordDialog"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrModsManager)); this.btnMenuContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.tsmiNew = new ToolStripMenuItem(); this.tsmiImportFolder = new ToolStripMenuItem(); this.tsmiImportZip = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsmiEditOngPatcher = new ToolStripMenuItem(); this.tsmiEditOnExplorer = new ToolStripMenuItem(); this.tsmiSeparator = new ToolStripSeparator(); this.tsmiExport = new ToolStripMenuItem(); this.tsmiDelete = new ToolStripMenuItem(); this.selectorContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.tsmiApplyToSelected = new ToolStripMenuItem(); this.tsmiDisableSelected = new ToolStripMenuItem(); this.tabImageList = new ImageList(this.components); this.toolTip = new ToolTip(this.components); this.bgmTabPage = new TabPage(); this.bgmSelector = new ModsSelector(); this.vidTabPage = new TabPage(); this.vidSelector = new ModsSelector(); this.menuInferior = new MenuInferior(); this.tbxSearch = new ImageTextBox(); this.btnSetMod = new Button(); this.tabControl = new Dotnetrix.Controls.TabControl(); this.genTabPage = new TabPage(); this.genSelector = new ModsSelector(); this.cbxSetMod = new ComboBox(); this.btnMenu = new DropDownButton(); this.btnMenuContextMenu.SuspendLayout(); this.selectorContextMenu.SuspendLayout(); this.bgmTabPage.SuspendLayout(); this.vidTabPage.SuspendLayout(); this.tabControl.SuspendLayout(); this.genTabPage.SuspendLayout(); base.SuspendLayout(); ToolStripItemCollection items = this.btnMenuContextMenu.Items; ToolStripItem[] toolStripItemArray = new ToolStripItem[] { this.tsmiNew, this.tsmiImportFolder, this.tsmiImportZip, this.toolStripSeparator1, this.tsmiEditOngPatcher, this.tsmiEditOnExplorer, this.tsmiSeparator, this.tsmiExport, this.tsmiDelete }; items.AddRange(toolStripItemArray); this.btnMenuContextMenu.Name = "contextMenu"; componentResourceManager.ApplyResources(this.btnMenuContextMenu, "btnMenuContextMenu"); this.tsmiNew.Image = Images16px.PackNew; this.tsmiNew.Name = "tsmiNew"; componentResourceManager.ApplyResources(this.tsmiNew, "tsmiNew"); this.tsmiNew.Click += new EventHandler(this.tsmi_NewPackage_Click); this.tsmiImportFolder.Image = Images16px.Folder; this.tsmiImportFolder.Name = "tsmiImportFolder"; componentResourceManager.ApplyResources(this.tsmiImportFolder, "tsmiImportFolder"); this.tsmiImportFolder.Click += new EventHandler(this.tsmi_ImportFolder_Click); this.tsmiImportZip.Name = "tsmiImportZip"; componentResourceManager.ApplyResources(this.tsmiImportZip, "tsmiImportZip"); this.tsmiImportZip.Click += new EventHandler(this.tsmi_ImportZip_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; componentResourceManager.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1"); this.tsmiEditOngPatcher.Image = Images16px.gPatcher; this.tsmiEditOngPatcher.Name = "tsmiEditOngPatcher"; componentResourceManager.ApplyResources(this.tsmiEditOngPatcher, "tsmiEditOngPatcher"); this.tsmiEditOngPatcher.Click += new EventHandler(this.tsmi_EditOn_gPatcher_Click); this.tsmiEditOnExplorer.Image = Images16px.Explorer; this.tsmiEditOnExplorer.Name = "tsmiEditOnExplorer"; componentResourceManager.ApplyResources(this.tsmiEditOnExplorer, "tsmiEditOnExplorer"); this.tsmiEditOnExplorer.Click += new EventHandler(this.tsmi_EditOn_WExplorer_Click); this.tsmiSeparator.Name = "tsmiSeparator"; componentResourceManager.ApplyResources(this.tsmiSeparator, "tsmiSeparator"); this.tsmiExport.Image = Images16px.ZIP; this.tsmiExport.Name = "tsmiExport"; componentResourceManager.ApplyResources(this.tsmiExport, "tsmiExport"); this.tsmiExport.Click += new EventHandler(this.btnExportToZip_Click); this.tsmiDelete.Image = Images16px.Cross; this.tsmiDelete.Name = "tsmiDelete"; componentResourceManager.ApplyResources(this.tsmiDelete, "tsmiDelete"); this.tsmiDelete.Click += new EventHandler(this.tsmi_Delete_Click); ToolStripItemCollection toolStripItemCollections = this.selectorContextMenu.Items; ToolStripItem[] toolStripItemArray1 = new ToolStripItem[] { this.tsmiApplyToSelected, this.tsmiDisableSelected }; toolStripItemCollections.AddRange(toolStripItemArray1); this.selectorContextMenu.Name = "contextMenuStrip1"; componentResourceManager.ApplyResources(this.selectorContextMenu, "selectorContextMenu"); this.selectorContextMenu.Opening += new CancelEventHandler(this.selectorContextMenu_Opening); this.tsmiApplyToSelected.Image = Images16px.Tick; this.tsmiApplyToSelected.Name = "tsmiApplyToSelected"; componentResourceManager.ApplyResources(this.tsmiApplyToSelected, "tsmiApplyToSelected"); this.tsmiApplyToSelected.Click += new EventHandler(this.tsmi_ApplyToSelected_Click); this.tsmiDisableSelected.Image = Images16px.Cancel; this.tsmiDisableSelected.Name = "tsmiDisableSelected"; componentResourceManager.ApplyResources(this.tsmiDisableSelected, "tsmiDisableSelected"); this.tsmiDisableSelected.Click += new EventHandler(this.tsmi_DisableSelected_Click); this.tabImageList.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("tabImageList.ImageStream"); this.tabImageList.TransparentColor = Color.Transparent; this.tabImageList.Images.SetKeyName(0, "Mods_General.png"); this.tabImageList.Images.SetKeyName(1, "Mods_Music.png"); this.tabImageList.Images.SetKeyName(2, "Mods_Video.png"); this.bgmTabPage.Controls.Add(this.bgmSelector); componentResourceManager.ApplyResources(this.bgmTabPage, "bgmTabPage"); this.bgmTabPage.Name = "bgmTabPage"; this.bgmTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.bgmSelector, "bgmSelector"); this.bgmSelector.ModType = ModTypes.BGM; this.bgmSelector.Name = "bgmSelector"; this.bgmSelector.CellValueChanged += new DataGridViewCellEventHandler(this.EnableApplyButton); this.bgmSelector.MouseUp += new MouseEventHandler(this.ModsSelector_MouseUp); this.vidTabPage.Controls.Add(this.vidSelector); componentResourceManager.ApplyResources(this.vidTabPage, "vidTabPage"); this.vidTabPage.Name = "vidTabPage"; this.vidTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.vidSelector, "vidSelector"); this.vidSelector.ModType = ModTypes.Video; this.vidSelector.Name = "vidSelector"; this.vidSelector.CellValueChanged += new DataGridViewCellEventHandler(this.EnableApplyButton); this.vidSelector.MouseUp += new MouseEventHandler(this.ModsSelector_MouseUp); componentResourceManager.ApplyResources(this.menuInferior, "menuInferior"); this.menuInferior.Name = "menuInferior"; this.menuInferior.ButtonOkClick += new EventHandler(this.btn_OK_Click); this.menuInferior.ButtonCancelClick += new EventHandler(this.btn_Cancel_Click); this.menuInferior.ButtonApplyClick += new EventHandler(this.btn_Apply_Click); componentResourceManager.ApplyResources(this.tbxSearch, "tbxSearch"); this.tbxSearch.BackColor = SystemColors.Window; this.tbxSearch.Image = Images16px.Search; this.tbxSearch.Name = "tbxSearch"; this.tbxSearch.TextBoxTextChanged += new EventHandler(this.tbx_Search_TextChanged); componentResourceManager.ApplyResources(this.btnSetMod, "btnSetMod"); this.btnSetMod.Image = Images16px.Tick; this.btnSetMod.Name = "btnSetMod"; this.btnSetMod.UseVisualStyleBackColor = true; this.btnSetMod.Click += new EventHandler(this.btnSetMod_Click); this.btnSetMod.MouseUp += new MouseEventHandler(this.btn_SetMod_MouseUp); componentResourceManager.ApplyResources(this.tabControl, "tabControl"); this.tabControl.Controls.Add(this.genTabPage); this.tabControl.Controls.Add(this.bgmTabPage); this.tabControl.Controls.Add(this.vidTabPage); this.tabControl.ImageList = this.tabImageList; this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.SizeMode = TabSizeMode.Fixed; this.tabControl.SelectedIndexChanged += new EventHandler(this.tabControl_SelectedIndexChanged); this.genTabPage.Controls.Add(this.genSelector); componentResourceManager.ApplyResources(this.genTabPage, "genTabPage"); this.genTabPage.Name = "genTabPage"; this.genTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.genSelector, "genSelector"); this.genSelector.ModType = ModTypes.General; this.genSelector.Name = "genSelector"; this.genSelector.CellValueChanged += new DataGridViewCellEventHandler(this.EnableApplyButton); this.genSelector.MouseUp += new MouseEventHandler(this.ModsSelector_MouseUp); componentResourceManager.ApplyResources(this.cbxSetMod, "cbxSetMod"); this.cbxSetMod.DropDownStyle = ComboBoxStyle.DropDownList; this.cbxSetMod.FormattingEnabled = true; this.cbxSetMod.Name = "cbxSetMod"; this.cbxSetMod.SelectedIndexChanged += new EventHandler(this.cbx_SetMod_SelectedIndexChanged); componentResourceManager.ApplyResources(this.btnMenu, "btnMenu"); this.btnMenu.Image = Images16px.Menu; this.btnMenu.Menu = this.btnMenuContextMenu; this.btnMenu.Name = "btnMenu"; this.btnMenu.UseVisualStyleBackColor = true; base.AutoBackgroundImage = BackgroundImages.Elesis; componentResourceManager.ApplyResources(this, "$this"); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.btnMenu); base.Controls.Add(this.menuInferior); base.Controls.Add(this.tbxSearch); base.Controls.Add(this.btnSetMod); base.Controls.Add(this.tabControl); base.Controls.Add(this.cbxSetMod); this.DoubleBuffered = true; base.KeyPreview = true; base.Name = "FrModsManager"; base.PersistState = true; base.FormClosing += new FormClosingEventHandler(this.Configuration_FormClosing); base.BackgroundImageChanged += new EventHandler(this.Configuration_BackgroundImageChanged); base.VisibleChanged += new EventHandler(this.ManagerForm_VisibleChanged); base.KeyDown += new KeyEventHandler(this.ManagerForm_KeyDown); this.btnMenuContextMenu.ResumeLayout(false); this.selectorContextMenu.ResumeLayout(false); this.bgmTabPage.ResumeLayout(false); this.vidTabPage.ResumeLayout(false); this.tabControl.ResumeLayout(false); this.genTabPage.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrSettings)); this.chkEnableBackground = new CheckBox(); this.tabProgram = new TabPage(); this.gbxUpdates = new GroupBox(); this.imgUpdates = new PictureBox(); this.chkBetaReleases = new CheckBox(); this.chkProgramUpdates = new CheckBox(); this.panLanguage = new Panel(); this.tlpLanguage = new TableLayoutPanel(); this.cbxLanguage = new ComboBox(); this.lblLanguage = new Label(); this.gbxTrayIcon = new GroupBox(); this.imgTrayIcon = new PictureBox(); this.chkStartMinimized = new CheckBox(); this.chkTrayIconEnabled = new CheckBox(); this.gbxBackground = new GroupBox(); this.imgBackground = new PictureBox(); this.tabControl = new TabControl(); this.tabElsword = new TabPage(); this.gbxSecurity = new GroupBox(); this.lblBlockLogs = new Label(); this.chkBlockLogs = new CheckBox(); this.imgSecurity = new PictureBox(); this.gbxLaunchOptions = new GroupBox(); this.tbxX2Args = new WaterMarkTextBox(); this.chkSkipLauncher = new CheckBox(); this.lblWebLogin = new Label(); this.chkWebLogin = new CheckBox(); this.imgLaunchOptions = new PictureBox(); this.gbxPaths = new GroupBox(); this.imgPaths = new PictureBox(); this.btnElswordDir = new Button(); this.tbxElswordDir = new WaterMarkTextBox(); this.toolTip = new ToolTip(this.components); this.menuInferior = new MenuInferior(); this.tabProgram.SuspendLayout(); this.gbxUpdates.SuspendLayout(); ((ISupportInitialize)this.imgUpdates).BeginInit(); this.panLanguage.SuspendLayout(); this.tlpLanguage.SuspendLayout(); this.gbxTrayIcon.SuspendLayout(); ((ISupportInitialize)this.imgTrayIcon).BeginInit(); this.gbxBackground.SuspendLayout(); ((ISupportInitialize)this.imgBackground).BeginInit(); this.tabControl.SuspendLayout(); this.tabElsword.SuspendLayout(); this.gbxSecurity.SuspendLayout(); ((ISupportInitialize)this.imgSecurity).BeginInit(); this.gbxLaunchOptions.SuspendLayout(); ((ISupportInitialize)this.imgLaunchOptions).BeginInit(); this.gbxPaths.SuspendLayout(); ((ISupportInitialize)this.imgPaths).BeginInit(); base.SuspendLayout(); componentResourceManager.ApplyResources(this.chkEnableBackground, "chkEnableBackground"); this.chkEnableBackground.Name = "chkEnableBackground"; this.toolTip.SetToolTip(this.chkEnableBackground, componentResourceManager.GetString("chkEnableBackground.ToolTip")); this.chkEnableBackground.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.tabProgram, "tabProgram"); this.tabProgram.Controls.Add(this.gbxUpdates); this.tabProgram.Controls.Add(this.panLanguage); this.tabProgram.Controls.Add(this.gbxTrayIcon); this.tabProgram.Controls.Add(this.gbxBackground); this.tabProgram.Name = "tabProgram"; this.toolTip.SetToolTip(this.tabProgram, componentResourceManager.GetString("tabProgram.ToolTip")); this.tabProgram.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.gbxUpdates, "gbxUpdates"); this.gbxUpdates.Controls.Add(this.imgUpdates); this.gbxUpdates.Controls.Add(this.chkBetaReleases); this.gbxUpdates.Controls.Add(this.chkProgramUpdates); this.gbxUpdates.Name = "gbxUpdates"; this.gbxUpdates.TabStop = false; this.toolTip.SetToolTip(this.gbxUpdates, componentResourceManager.GetString("gbxUpdates.ToolTip")); componentResourceManager.ApplyResources(this.imgUpdates, "imgUpdates"); this.imgUpdates.Image = Images32px.Update; this.imgUpdates.Name = "imgUpdates"; this.imgUpdates.TabStop = false; this.toolTip.SetToolTip(this.imgUpdates, componentResourceManager.GetString("imgUpdates.ToolTip")); componentResourceManager.ApplyResources(this.chkBetaReleases, "chkBetaReleases"); this.chkBetaReleases.Name = "chkBetaReleases"; this.toolTip.SetToolTip(this.chkBetaReleases, componentResourceManager.GetString("chkBetaReleases.ToolTip")); this.chkBetaReleases.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkProgramUpdates, "chkProgramUpdates"); this.chkProgramUpdates.Name = "chkProgramUpdates"; this.toolTip.SetToolTip(this.chkProgramUpdates, componentResourceManager.GetString("chkProgramUpdates.ToolTip")); this.chkProgramUpdates.UseVisualStyleBackColor = true; this.chkProgramUpdates.CheckedChanged += new EventHandler(this.chkProgramUpdates_CheckedChanged); componentResourceManager.ApplyResources(this.panLanguage, "panLanguage"); this.panLanguage.Controls.Add(this.tlpLanguage); this.panLanguage.Name = "panLanguage"; this.toolTip.SetToolTip(this.panLanguage, componentResourceManager.GetString("panLanguage.ToolTip")); componentResourceManager.ApplyResources(this.tlpLanguage, "tlpLanguage"); this.tlpLanguage.Controls.Add(this.cbxLanguage, 1, 0); this.tlpLanguage.Controls.Add(this.lblLanguage, 0, 0); this.tlpLanguage.Name = "tlpLanguage"; this.toolTip.SetToolTip(this.tlpLanguage, componentResourceManager.GetString("tlpLanguage.ToolTip")); componentResourceManager.ApplyResources(this.cbxLanguage, "cbxLanguage"); this.cbxLanguage.DropDownStyle = ComboBoxStyle.DropDownList; this.cbxLanguage.FormattingEnabled = true; this.cbxLanguage.Name = "cbxLanguage"; this.toolTip.SetToolTip(this.cbxLanguage, componentResourceManager.GetString("cbxLanguage.ToolTip")); this.cbxLanguage.SelectedIndexChanged += new EventHandler(this.cbxLanguage_SelectedIndexChanged); componentResourceManager.ApplyResources(this.lblLanguage, "lblLanguage"); this.lblLanguage.Name = "lblLanguage"; this.toolTip.SetToolTip(this.lblLanguage, componentResourceManager.GetString("lblLanguage.ToolTip")); componentResourceManager.ApplyResources(this.gbxTrayIcon, "gbxTrayIcon"); this.gbxTrayIcon.Controls.Add(this.imgTrayIcon); this.gbxTrayIcon.Controls.Add(this.chkStartMinimized); this.gbxTrayIcon.Controls.Add(this.chkTrayIconEnabled); this.gbxTrayIcon.Name = "gbxTrayIcon"; this.gbxTrayIcon.TabStop = false; this.toolTip.SetToolTip(this.gbxTrayIcon, componentResourceManager.GetString("gbxTrayIcon.ToolTip")); componentResourceManager.ApplyResources(this.imgTrayIcon, "imgTrayIcon"); this.imgTrayIcon.Image = Images32px.Tray; this.imgTrayIcon.Name = "imgTrayIcon"; this.imgTrayIcon.TabStop = false; this.toolTip.SetToolTip(this.imgTrayIcon, componentResourceManager.GetString("imgTrayIcon.ToolTip")); componentResourceManager.ApplyResources(this.chkStartMinimized, "chkStartMinimized"); this.chkStartMinimized.Name = "chkStartMinimized"; this.toolTip.SetToolTip(this.chkStartMinimized, componentResourceManager.GetString("chkStartMinimized.ToolTip")); this.chkStartMinimized.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.chkTrayIconEnabled, "chkTrayIconEnabled"); this.chkTrayIconEnabled.Name = "chkTrayIconEnabled"; this.toolTip.SetToolTip(this.chkTrayIconEnabled, componentResourceManager.GetString("chkTrayIconEnabled.ToolTip")); this.chkTrayIconEnabled.UseVisualStyleBackColor = true; this.chkTrayIconEnabled.CheckedChanged += new EventHandler(this.chkTrayIconEnabled_CheckedChanged); componentResourceManager.ApplyResources(this.gbxBackground, "gbxBackground"); this.gbxBackground.Controls.Add(this.imgBackground); this.gbxBackground.Controls.Add(this.chkEnableBackground); this.gbxBackground.Name = "gbxBackground"; this.gbxBackground.TabStop = false; this.toolTip.SetToolTip(this.gbxBackground, componentResourceManager.GetString("gbxBackground.ToolTip")); componentResourceManager.ApplyResources(this.imgBackground, "imgBackground"); this.imgBackground.Image = Images32px.Background; this.imgBackground.Name = "imgBackground"; this.imgBackground.TabStop = false; this.toolTip.SetToolTip(this.imgBackground, componentResourceManager.GetString("imgBackground.ToolTip")); componentResourceManager.ApplyResources(this.tabControl, "tabControl"); this.tabControl.Controls.Add(this.tabElsword); this.tabControl.Controls.Add(this.tabProgram); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.toolTip.SetToolTip(this.tabControl, componentResourceManager.GetString("tabControl.ToolTip")); componentResourceManager.ApplyResources(this.tabElsword, "tabElsword"); this.tabElsword.Controls.Add(this.gbxSecurity); this.tabElsword.Controls.Add(this.gbxLaunchOptions); this.tabElsword.Controls.Add(this.gbxPaths); this.tabElsword.Name = "tabElsword"; this.toolTip.SetToolTip(this.tabElsword, componentResourceManager.GetString("tabElsword.ToolTip")); this.tabElsword.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.gbxSecurity, "gbxSecurity"); this.gbxSecurity.Controls.Add(this.lblBlockLogs); this.gbxSecurity.Controls.Add(this.chkBlockLogs); this.gbxSecurity.Controls.Add(this.imgSecurity); this.gbxSecurity.Name = "gbxSecurity"; this.gbxSecurity.TabStop = false; this.toolTip.SetToolTip(this.gbxSecurity, componentResourceManager.GetString("gbxSecurity.ToolTip")); componentResourceManager.ApplyResources(this.lblBlockLogs, "lblBlockLogs"); this.lblBlockLogs.Name = "lblBlockLogs"; this.toolTip.SetToolTip(this.lblBlockLogs, componentResourceManager.GetString("lblBlockLogs.ToolTip")); componentResourceManager.ApplyResources(this.chkBlockLogs, "chkBlockLogs"); this.chkBlockLogs.BackColor = Color.Transparent; this.chkBlockLogs.Name = "chkBlockLogs"; this.toolTip.SetToolTip(this.chkBlockLogs, componentResourceManager.GetString("chkBlockLogs.ToolTip")); this.chkBlockLogs.UseVisualStyleBackColor = false; componentResourceManager.ApplyResources(this.imgSecurity, "imgSecurity"); this.imgSecurity.Image = Images32px.Security; this.imgSecurity.Name = "imgSecurity"; this.imgSecurity.TabStop = false; this.toolTip.SetToolTip(this.imgSecurity, componentResourceManager.GetString("imgSecurity.ToolTip")); componentResourceManager.ApplyResources(this.gbxLaunchOptions, "gbxLaunchOptions"); this.gbxLaunchOptions.Controls.Add(this.tbxX2Args); this.gbxLaunchOptions.Controls.Add(this.chkSkipLauncher); this.gbxLaunchOptions.Controls.Add(this.lblWebLogin); this.gbxLaunchOptions.Controls.Add(this.chkWebLogin); this.gbxLaunchOptions.Controls.Add(this.imgLaunchOptions); this.gbxLaunchOptions.Name = "gbxLaunchOptions"; this.gbxLaunchOptions.TabStop = false; this.toolTip.SetToolTip(this.gbxLaunchOptions, componentResourceManager.GetString("gbxLaunchOptions.ToolTip")); componentResourceManager.ApplyResources(this.tbxX2Args, "tbxX2Args"); this.tbxX2Args.Name = "tbxX2Args"; this.toolTip.SetToolTip(this.tbxX2Args, componentResourceManager.GetString("tbxX2Args.ToolTip")); this.tbxX2Args.WaterMarkColor = Color.Gray; componentResourceManager.ApplyResources(this.chkSkipLauncher, "chkSkipLauncher"); this.chkSkipLauncher.Name = "chkSkipLauncher"; this.toolTip.SetToolTip(this.chkSkipLauncher, componentResourceManager.GetString("chkSkipLauncher.ToolTip")); this.chkSkipLauncher.UseVisualStyleBackColor = true; this.chkSkipLauncher.CheckedChanged += new EventHandler(this.chkSkipLauncher_CheckedChanged); componentResourceManager.ApplyResources(this.lblWebLogin, "lblWebLogin"); this.lblWebLogin.Name = "lblWebLogin"; this.toolTip.SetToolTip(this.lblWebLogin, componentResourceManager.GetString("lblWebLogin.ToolTip")); componentResourceManager.ApplyResources(this.chkWebLogin, "chkWebLogin"); this.chkWebLogin.BackColor = Color.Transparent; this.chkWebLogin.Name = "chkWebLogin"; this.toolTip.SetToolTip(this.chkWebLogin, componentResourceManager.GetString("chkWebLogin.ToolTip")); this.chkWebLogin.UseVisualStyleBackColor = false; this.chkWebLogin.CheckedChanged += new EventHandler(this.chkWebLogin_CheckedChanged); componentResourceManager.ApplyResources(this.imgLaunchOptions, "imgLaunchOptions"); this.imgLaunchOptions.Image = Images32px.Cmd; this.imgLaunchOptions.Name = "imgLaunchOptions"; this.imgLaunchOptions.TabStop = false; this.toolTip.SetToolTip(this.imgLaunchOptions, componentResourceManager.GetString("imgLaunchOptions.ToolTip")); componentResourceManager.ApplyResources(this.gbxPaths, "gbxPaths"); this.gbxPaths.Controls.Add(this.imgPaths); this.gbxPaths.Controls.Add(this.btnElswordDir); this.gbxPaths.Controls.Add(this.tbxElswordDir); this.gbxPaths.Name = "gbxPaths"; this.gbxPaths.TabStop = false; this.toolTip.SetToolTip(this.gbxPaths, componentResourceManager.GetString("gbxPaths.ToolTip")); componentResourceManager.ApplyResources(this.imgPaths, "imgPaths"); this.imgPaths.Image = Images32px.Elsword; this.imgPaths.Name = "imgPaths"; this.imgPaths.TabStop = false; this.toolTip.SetToolTip(this.imgPaths, componentResourceManager.GetString("imgPaths.ToolTip")); componentResourceManager.ApplyResources(this.btnElswordDir, "btnElswordDir"); this.btnElswordDir.Image = Images16px.Search; this.btnElswordDir.Name = "btnElswordDir"; this.toolTip.SetToolTip(this.btnElswordDir, componentResourceManager.GetString("btnElswordDir.ToolTip")); this.btnElswordDir.UseVisualStyleBackColor = true; this.btnElswordDir.Click += new EventHandler(this.btn_ElswordDir_Click); componentResourceManager.ApplyResources(this.tbxElswordDir, "tbxElswordDir"); this.tbxElswordDir.Name = "tbxElswordDir"; this.toolTip.SetToolTip(this.tbxElswordDir, componentResourceManager.GetString("tbxElswordDir.ToolTip")); this.tbxElswordDir.WaterMarkColor = Color.Gray; componentResourceManager.ApplyResources(this.menuInferior, "menuInferior"); this.menuInferior.Name = "menuInferior"; this.toolTip.SetToolTip(this.menuInferior, componentResourceManager.GetString("menuInferior.ToolTip")); this.menuInferior.ButtonOkClick += new EventHandler(this.btn_OK_Click); this.menuInferior.ButtonCancelClick += new EventHandler(this.btn_Cancel_Click); this.menuInferior.ButtonApplyClick += new EventHandler(this.btn_Apply_Click); componentResourceManager.ApplyResources(this, "$this"); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.menuInferior); base.Controls.Add(this.tabControl); this.DoubleBuffered = true; base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.KeyPreview = true; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "FrSettings"; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.toolTip.SetToolTip(this, componentResourceManager.GetString("$this.ToolTip")); base.Activated += new EventHandler(this.SettingsForm_Activated); base.Load += new EventHandler(this.SettingsForm_Load); base.VisibleChanged += new EventHandler(this.SettingsForm_VisibleChanged); base.KeyDown += new KeyEventHandler(this.SettingsForm_KeyDown); this.tabProgram.ResumeLayout(false); this.gbxUpdates.ResumeLayout(false); this.gbxUpdates.PerformLayout(); ((ISupportInitialize)this.imgUpdates).EndInit(); this.panLanguage.ResumeLayout(false); this.panLanguage.PerformLayout(); this.tlpLanguage.ResumeLayout(false); this.tlpLanguage.PerformLayout(); this.gbxTrayIcon.ResumeLayout(false); this.gbxTrayIcon.PerformLayout(); ((ISupportInitialize)this.imgTrayIcon).EndInit(); this.gbxBackground.ResumeLayout(false); this.gbxBackground.PerformLayout(); ((ISupportInitialize)this.imgBackground).EndInit(); this.tabControl.ResumeLayout(false); this.tabElsword.ResumeLayout(false); this.gbxSecurity.ResumeLayout(false); this.gbxSecurity.PerformLayout(); ((ISupportInitialize)this.imgSecurity).EndInit(); this.gbxLaunchOptions.ResumeLayout(false); this.gbxLaunchOptions.PerformLayout(); ((ISupportInitialize)this.imgLaunchOptions).EndInit(); this.gbxPaths.ResumeLayout(false); this.gbxPaths.PerformLayout(); ((ISupportInitialize)this.imgPaths).EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ModEditorForm)); this.tbxName = new TextBox(); this.lblName = new Label(); this.pictureBox2 = new PictureBox(); this.tabImageList = new ImageList(this.components); this.tabControl = new Dotnetrix.Controls.TabControl(); this.genTabPage = new TabPage(); this.genEditor = new ModEditor(); this.bgmTabPage = new TabPage(); this.bgmEditor = new ModEditor(); this.vidTabPage = new TabPage(); this.vidEditor = new ModEditor(); this.menuInferior = new MenuInferior(); this.tbxSearch = new ImageTextBox(); ((ISupportInitialize)this.pictureBox2).BeginInit(); this.tabControl.SuspendLayout(); this.genTabPage.SuspendLayout(); this.bgmTabPage.SuspendLayout(); this.vidTabPage.SuspendLayout(); base.SuspendLayout(); componentResourceManager.ApplyResources(this.tbxName, "tbxName"); this.tbxName.Name = "tbxName"; this.tbxName.KeyDown += new KeyEventHandler(this.tbx_Name_KeyDown); componentResourceManager.ApplyResources(this.lblName, "lblName"); this.lblName.BackColor = Color.Transparent; this.lblName.Name = "lblName"; componentResourceManager.ApplyResources(this.pictureBox2, "pictureBox2"); this.pictureBox2.BackColor = Color.Transparent; this.pictureBox2.Image = Images16px.Rename; this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.TabStop = false; this.tabImageList.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("tabImageList.ImageStream"); this.tabImageList.TransparentColor = Color.Transparent; this.tabImageList.Images.SetKeyName(0, "Mods_General.png"); this.tabImageList.Images.SetKeyName(1, "Mods_Music.png"); this.tabImageList.Images.SetKeyName(2, "Mods_Video.png"); componentResourceManager.ApplyResources(this.tabControl, "tabControl"); this.tabControl.Controls.Add(this.genTabPage); this.tabControl.Controls.Add(this.bgmTabPage); this.tabControl.Controls.Add(this.vidTabPage); this.tabControl.ImageList = this.tabImageList; this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.SizeMode = TabSizeMode.Fixed; componentResourceManager.ApplyResources(this.genTabPage, "genTabPage"); this.genTabPage.Controls.Add(this.genEditor); this.genTabPage.Name = "genTabPage"; this.genTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.genEditor, "genEditor"); this.genEditor.ModPack = null; this.genEditor.Name = "genEditor"; componentResourceManager.ApplyResources(this.bgmTabPage, "bgmTabPage"); this.bgmTabPage.Controls.Add(this.bgmEditor); this.bgmTabPage.Name = "bgmTabPage"; this.bgmTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.bgmEditor, "bgmEditor"); this.bgmEditor.ModPack = null; this.bgmEditor.ModType = ModTypes.BGM; this.bgmEditor.Name = "bgmEditor"; componentResourceManager.ApplyResources(this.vidTabPage, "vidTabPage"); this.vidTabPage.Controls.Add(this.vidEditor); this.vidTabPage.Name = "vidTabPage"; this.vidTabPage.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources(this.vidEditor, "vidEditor"); this.vidEditor.ModPack = null; this.vidEditor.ModType = ModTypes.Video; this.vidEditor.Name = "vidEditor"; componentResourceManager.ApplyResources(this.menuInferior, "menuInferior"); this.menuInferior.Name = "menuInferior"; this.menuInferior.ButtonOkClick += new EventHandler(this.btnOK_Click); this.menuInferior.ButtonCancelClick += new EventHandler(this.btnCancel_Click); this.menuInferior.ButtonApplyClick += new EventHandler(this.btnApply_Click); componentResourceManager.ApplyResources(this.tbxSearch, "tbxSearch"); this.tbxSearch.BackColor = SystemColors.Window; this.tbxSearch.Image = Images16px.Search; this.tbxSearch.Name = "tbxSearch"; this.tbxSearch.TextBoxTextChanged += new EventHandler(this.tbxSearch_TextChanged); componentResourceManager.ApplyResources(this, "$this"); base.AutoBackgroundImage = BackgroundImages.Raven; base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(this.menuInferior); base.Controls.Add(this.tbxSearch); base.Controls.Add(this.pictureBox2); base.Controls.Add(this.tbxName); base.Controls.Add(this.lblName); base.Controls.Add(this.tabControl); this.DoubleBuffered = true; base.KeyPreview = true; base.Name = "ModEditorForm"; base.Load += new EventHandler(this.NewModEditorDialog_Load); base.KeyDown += new KeyEventHandler(this.ModEditorForm_KeyDown); ((ISupportInitialize)this.pictureBox2).EndInit(); this.tabControl.ResumeLayout(false); this.genTabPage.ResumeLayout(false); this.bgmTabPage.ResumeLayout(false); this.vidTabPage.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void CrearChart1VegadaPagina() { grid = new Grid(); stackLayoutChart = new StackLayout(); this.ToolbarItems.Add(InicialitzarAboutChartToolbar()); if (valorInicial != 5 && valorInicial != 7 && valorInicial != 8 && valorInicial != 9 && valorInicial != 11 && valorInicial != 12 && valorInicial != 13) { if (Device.RuntimePlatform != Device.UWP) { this.ToolbarItems.Add(InicialitzarConfigToolBar()); } } // StackLayout del "Chart" stackLayoutChart.Margin = 0; stackLayoutChart.VerticalOptions = LayoutOptions.FillAndExpand; stackLayoutChart.HorizontalOptions = LayoutOptions.FillAndExpand; // "Grid" de la pestaña Types grid.HorizontalOptions = LayoutOptions.FillAndExpand; grid.VerticalOptions = LayoutOptions.FillAndExpand; grid.ColumnSpacing = 0; grid.RowSpacing = 0; grid.Margin = 0; switch (valorInicial) { case 3: menuInferior = new MenuInferior(var.GetCircularGaugesNomButtons); break; case 4: menuInferior = new MenuInferior(var.GetMapsNomButtons); break; case 5: menuInferior = new MenuInferior(var.GetTreeMapNomButtons); break; case 6: menuInferior = new MenuInferior(var.GetKnobGaugeNomButtons); break; case 7: menuInferior = new MenuInferior(var.GetClockNomButtons); break; case 8: menuInferior = new MenuInferior(var.GetOrganizationalNomButtons); break; case 9: menuInferior = new MenuInferior(var.GetNumericGaugeNomButtons); break; case 10: menuInferior = new MenuInferior(var.GetLinearGaugeNomButtons); break; case 11: menuInferior = new MenuInferior(var.GetCalendarNomButtons); break; case 12: menuInferior = new MenuInferior(var.GetSparkLinesNomButtons); break; case 13: menuInferior = new MenuInferior(var.GetTagCloudNomButtons); break; case 14: menuInferior = new MenuInferior(var.GetStandardFunctionsNomButtons); break; } this.Title = menuInferior.GetNomButtons[0]; switch (valorInicial) { case 5: case 8: case 9: case 13: grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); vChart = new ChartViewBase(this.Title); stackLayoutChart.Children.Add(vChart.GetChart); grid.Children.Add(stackLayoutChart, 0, 0); break; case 11: LabelSwipe labelHeader = new LabelSwipe(); Button btnBackMonth = new Button(); Button btnNextMonth = new Button(); btnBackMonth.Text = "<"; btnBackMonth.VerticalOptions = LayoutOptions.FillAndExpand; btnBackMonth.HorizontalOptions = LayoutOptions.Start; btnBackMonth.WidthRequest = 50; btnNextMonth.Text = ">"; btnNextMonth.VerticalOptions = LayoutOptions.FillAndExpand; btnNextMonth.HorizontalOptions = LayoutOptions.End; btnNextMonth.WidthRequest = 50; grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); if (Device.RuntimePlatform == Device.Android || Device.RuntimePlatform == Device.UWP) { grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.11, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.79, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.11, GridUnitType.Star) }); grid.Children.Add(labelHeader, 0, 0); grid.Children.Add(btnBackMonth, 0, 0); grid.Children.Add(btnNextMonth, 0, 0); grid.Children.Add(stackLayoutChart, 0, 1); grid.Children.Add(menuInferior.GetScrollView, 0, 2); } else { grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.08, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.81, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.11, GridUnitType.Star) }); btnBackMonth.BorderWidth = 1; btnBackMonth.BorderColor = Color.FromRgb(100, 100, 100); btnNextMonth.BorderWidth = 1; btnNextMonth.BorderColor = Color.FromRgb(100, 100, 100); grid.Children.Add(labelHeader, 0, 2); grid.Children.Add(btnBackMonth, 0, 2); grid.Children.Add(btnNextMonth, 0, 2); grid.Children.Add(stackLayoutChart, 0, 1); grid.Children.Add(menuInferior.GetScrollView, 0, 0); } vChart = new ChartViewBase(this.Title, labelHeader); stackLayoutChart.Children.Add(vChart.GetChart); AsignarClickEvent(valorInicial); break; default: grid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); switch (Device.RuntimePlatform) { case Device.Android: case Device.UWP: grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.89, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.11, GridUnitType.Star) }); grid.Children.Add(stackLayoutChart, 0, 0); grid.Children.Add(menuInferior.GetScrollView, 0, 1); break; case Device.iOS: grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.08, GridUnitType.Star) }); grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(0.92, GridUnitType.Star) }); grid.Children.Add(stackLayoutChart, 0, 1); grid.Children.Add(menuInferior.GetScrollView, 0, 0); break; default: throw new Exception("Unexpected Case"); } vChart = new ChartViewBase(menuInferior.GetButtons[0]); stackLayoutChart.Children.Add(vChart.GetChart); AsignarClickEvent(valorInicial); break; } this.Content = grid; }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(BaseProgressDialog)); this.tableLayoutPanel = new TableLayoutPanel(); this.lblCurrentFile = new Label(); this.progressBar = new ProgressBar(); this.pictureBox = new PictureBox(); this.backgroundWorker = new BackgroundWorker(); this.menuInferior = new MenuInferior(); this.tableLayoutPanel.SuspendLayout(); ((ISupportInitialize)this.pictureBox).BeginInit(); base.SuspendLayout(); this.tableLayoutPanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.tableLayoutPanel.AutoSize = true; this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanel.ColumnCount = 1; this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); this.tableLayoutPanel.Controls.Add(this.lblCurrentFile, 0, 0); this.tableLayoutPanel.Controls.Add(this.progressBar, 0, 1); this.tableLayoutPanel.Location = new Point(49, 12); this.tableLayoutPanel.Name = "tableLayoutPanel"; this.tableLayoutPanel.RowCount = 2; this.tableLayoutPanel.RowStyles.Add(new RowStyle()); this.tableLayoutPanel.RowStyles.Add(new RowStyle()); this.tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f)); this.tableLayoutPanel.Size = new System.Drawing.Size(258, 35); this.tableLayoutPanel.TabIndex = 0; this.lblCurrentFile.AutoEllipsis = true; this.lblCurrentFile.Dock = DockStyle.Fill; this.lblCurrentFile.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblCurrentFile.Location = new Point(3, 0); this.lblCurrentFile.Name = "lblCurrentFile"; this.lblCurrentFile.Size = new System.Drawing.Size(252, 13); this.lblCurrentFile.TabIndex = 0; this.progressBar.Dock = DockStyle.Fill; this.progressBar.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.progressBar.Location = new Point(3, 16); this.progressBar.Name = "progressBar"; this.progressBar.Size = new System.Drawing.Size(252, 16); this.progressBar.TabIndex = 1; this.pictureBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.pictureBox.Location = new Point(11, 12); this.pictureBox.Name = "pictureBox"; this.pictureBox.Size = new System.Drawing.Size(32, 32); this.pictureBox.TabIndex = 12; this.pictureBox.TabStop = false; this.backgroundWorker.WorkerReportsProgress = true; this.backgroundWorker.WorkerSupportsCancellation = true; BaseProgressDialog baseProgressDialog = this; this.backgroundWorker.DoWork += new DoWorkEventHandler(baseProgressDialog.OnDoWork); this.backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(this.OnProgressChanged); BaseProgressDialog baseProgressDialog1 = this; this.backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(baseProgressDialog1.OnRunWorkerCompleted); this.menuInferior.ButtonApplyVisible = false; this.menuInferior.ButtonOkVisible = false; this.menuInferior.Dock = DockStyle.Bottom; this.menuInferior.Font = new System.Drawing.Font("Segoe UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.menuInferior.Location = new Point(0, 57); this.menuInferior.MinimumSize = new System.Drawing.Size(255, 42); this.menuInferior.Name = "menuInferior"; this.menuInferior.Size = new System.Drawing.Size(316, 42); this.menuInferior.TabIndex = 13; BaseProgressDialog baseProgressDialog2 = this; this.menuInferior.ButtonCancelClick += new EventHandler(baseProgressDialog2.btn_Cancel_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(316, 99); base.Controls.Add(this.menuInferior); base.Controls.Add(this.tableLayoutPanel); base.Controls.Add(this.pictureBox); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("Segoe UI", 8.25f); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "BaseProgressDialog"; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterScreen; this.tableLayoutPanel.ResumeLayout(false); ((ISupportInitialize)this.pictureBox).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }