public string ProvideKeyFile() { string result = null; if (MessageBoxFactory.Confirm(null, "Do you have a key file?", "Please provide a valid key file (.snk).") == DialogResult.Yes) { Vista_Api.OpenFileDialog dialog = new Vista_Api.OpenFileDialog(); dialog.Filter = "Key Files (*.snk)|*.snk"; dialog.FilterIndex = 0; dialog.Multiselect = false; if (dialog.ShowDialog() == DialogResult.OK) { result = dialog.FileName; } } return result; }
//private void DoInsertCodeTemplate(object aSender, EventArgs e) { // IOTAEditView _EditView = OTAUtils.GetCurrentEditView(); // if (_EditView != null) { // IOTAEditActions _EditActions = _EditView as IOTAEditActions; // if (_EditActions != null) { // _EditActions.CodeTemplate(); // } // } //} private void DoInsertFileAsText(object aSender, EventArgs AEventArgs) { if (!ValidationHelpers.ValidateCurrentSourceEditorNotNull()) { return; } IOTAEditView _EditView = OtaUtils.GetCurrentEditView(); if (_EditView != null) { Vista_Api.OpenFileDialog _OpenFileDialog = new Vista_Api.OpenFileDialog(); _OpenFileDialog.Title = "Sharp Builder Tools - Select the file to insert"; _OpenFileDialog.Filter += "Any file (*.*)|*.*"; _OpenFileDialog.CheckFileExists = true; if (_OpenFileDialog.ShowDialog() == DialogResult.OK) { _EditView.Position.InsertFile(_OpenFileDialog.FileName); } } }
void BtnImportClick(object sender, EventArgs e) { if (!Lextm.Diagnostics.ShellHelper.IsProcessRunning(OpenTools.IO.Path.JcfStyler)) { Vista_Api.OpenFileDialog dialog = new Vista_Api.OpenFileDialog(); dialog.Filter = "configuration files (*.cfg)|*.cfg"; if (dialog.ShowDialog() == DialogResult.OK) { if (!FileHelper.IsTheSameFile(dialog.FileName, OpenTools.IO.Path.UserConfigFile)) { System.IO.File.Copy(dialog.FileName, OpenTools.IO.Path.UserConfigFile); } } } else { MessageBoxFactory.Warn(null, "Already opened", "Please close JCF Format Settings dialog before importing a configuration file."); } }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormExpertManager)); this.lvExperts = new Vista_Api.ListView(); this.colStatus = new System.Windows.Forms.ColumnHeader(); this.colName = new System.Windows.Forms.ColumnHeader(); this.colFileName = new System.Windows.Forms.ColumnHeader(); this.menuFile = new System.Windows.Forms.MenuItem(); this.menuExit = new System.Windows.Forms.MenuItem(); this.menuHelp = new System.Windows.Forms.MenuItem(); this.menuAbout = new System.Windows.Forms.MenuItem(); this.openFileDialog = new Vista_Api.OpenFileDialog(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.tsbtnEnable = new System.Windows.Forms.ToolStripButton(); this.tsbtnDisable = new System.Windows.Forms.ToolStripButton(); this.tsbtnRefresh = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.tsbtnAdd = new System.Windows.Forms.ToolStripButton(); this.tsbtnDelete = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.tscbIdeVersion = new System.Windows.Forms.ToolStripComboBox(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.alExpertManager = new Crad.Windows.Forms.Actions.ActionList(); this.actEnable = new Crad.Windows.Forms.Actions.Action(); this.actDisable = new Crad.Windows.Forms.Actions.Action(); this.actRefresh = new Crad.Windows.Forms.Actions.Action(); this.actAdd = new Crad.Windows.Forms.Actions.Action(); this.actDelete = new Crad.Windows.Forms.Actions.Action(); this.toolStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.alExpertManager)).BeginInit(); this.SuspendLayout(); // // lvExperts // this.lvExperts.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colStatus, this.colName, this.colFileName}); this.lvExperts.Dock = System.Windows.Forms.DockStyle.Fill; this.lvExperts.FullRowSelect = true; this.lvExperts.HideSelection = false; this.lvExperts.Location = new System.Drawing.Point(0, 50); this.lvExperts.MultiSelect = false; this.lvExperts.Name = "lvExperts"; this.lvExperts.Size = new System.Drawing.Size(734, 332); this.lvExperts.TabIndex = 0; this.lvExperts.UseCompatibleStateImageBehavior = false; this.lvExperts.View = System.Windows.Forms.View.Details; //this.lvExperts.KeyUp += new System.Windows.Forms.KeyEventHandler(this.ListView_KeyUp); //this.lvExperts.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListView_KeyDown); //this.lvExperts.Click += new System.EventHandler(this.ListView_Click); // // colStatus // this.colStatus.Text = "Status"; // // colName // this.colName.Text = "Name"; this.colName.Width = 142; // // colFileName // this.colFileName.Text = "FileName"; this.colFileName.Width = 395; // // menuFile // this.menuFile.Index = -1; this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuExit}); this.menuFile.Text = "File"; // // menuExit // this.menuExit.Index = 0; this.menuExit.Text = "Exit"; this.menuExit.Click += new System.EventHandler(this.menuExit_Click); // // menuHelp // this.menuHelp.Index = -1; this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuAbout}); this.menuHelp.Text = "Help"; // // menuAbout // this.menuAbout.Index = 0; this.menuAbout.Text = "About ..."; // // openFileDialog // this.openFileDialog.Filter = "IDE Experts (*.dll)|*.dll"; // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsbtnEnable, this.tsbtnDisable, this.tsbtnRefresh, this.toolStripSeparator2, this.tsbtnAdd, this.tsbtnDelete, this.toolStripSeparator1, this.toolStripLabel1, this.tscbIdeVersion}); this.toolStrip1.Location = new System.Drawing.Point(0, 25); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(734, 25); this.toolStrip1.TabIndex = 8; this.toolStrip1.Text = "toolStrip1"; // // tsbtnEnable // this.alExpertManager.SetAction(this.tsbtnEnable, this.actEnable); this.tsbtnEnable.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnEnable.Image"))); this.tsbtnEnable.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbtnEnable.Name = "tsbtnEnable"; this.tsbtnEnable.Size = new System.Drawing.Size(67, 22); this.tsbtnEnable.Text = "Enable"; // // tsbtnDisable // this.alExpertManager.SetAction(this.tsbtnDisable, this.actDisable); this.tsbtnDisable.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnDisable.Image"))); this.tsbtnDisable.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbtnDisable.Name = "tsbtnDisable"; this.tsbtnDisable.Size = new System.Drawing.Size(71, 22); this.tsbtnDisable.Text = "Disable"; // // tsbtnRefresh // this.alExpertManager.SetAction(this.tsbtnRefresh, this.actRefresh); this.tsbtnRefresh.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnRefresh.Image"))); this.tsbtnRefresh.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbtnRefresh.Name = "tsbtnRefresh"; this.tsbtnRefresh.Size = new System.Drawing.Size(72, 22); this.tsbtnRefresh.Text = "Refresh"; // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // tsbtnAdd // this.alExpertManager.SetAction(this.tsbtnAdd, this.actAdd); this.tsbtnAdd.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnAdd.Image"))); this.tsbtnAdd.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbtnAdd.Name = "tsbtnAdd"; this.tsbtnAdd.Size = new System.Drawing.Size(52, 22); this.tsbtnAdd.Text = "Add"; // // tsbtnDelete // this.alExpertManager.SetAction(this.tsbtnDelete, this.actDelete); this.tsbtnDelete.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnDelete.Image"))); this.tsbtnDelete.ImageTransparentColor = System.Drawing.Color.Magenta; this.tsbtnDelete.Name = "tsbtnDelete"; this.tsbtnDelete.Size = new System.Drawing.Size(65, 22); this.tsbtnDelete.Text = "Delete"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripLabel1 // this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new System.Drawing.Size(28, 22); this.toolStripLabel1.Text = "IDE"; // // tscbIdeVersion // this.tscbIdeVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tscbIdeVersion.Name = "tscbIdeVersion"; this.tscbIdeVersion.Size = new System.Drawing.Size(300, 25); this.tscbIdeVersion.SelectedIndexChanged += new System.EventHandler(this.cbIDEVersion_SelectedIndexChanged); // // statusStrip1 // this.statusStrip1.Location = new System.Drawing.Point(0, 382); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.statusStrip1.Size = new System.Drawing.Size(734, 22); this.statusStrip1.TabIndex = 9; this.statusStrip1.Text = "statusStrip1"; // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(734, 25); this.menuStrip1.TabIndex = 10; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.aboutToolStripMenuItem, this.exitToolStripMenuItem}); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(39, 21); this.fileToolStripMenuItem.Text = "File"; // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; this.aboutToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.aboutToolStripMenuItem.Text = "About"; // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.exitToolStripMenuItem.Text = "Exit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.menuExit_Click); // // alExpertManager // this.alExpertManager.Actions.Add(this.actEnable); this.alExpertManager.Actions.Add(this.actDisable); this.alExpertManager.Actions.Add(this.actRefresh); this.alExpertManager.Actions.Add(this.actAdd); this.alExpertManager.Actions.Add(this.actDelete); this.alExpertManager.ContainerControl = this; // // actEnable // this.actEnable.Image = ((System.Drawing.Image)(resources.GetObject("actEnable.Image"))); this.actEnable.Text = "Enable"; this.actEnable.ToolTipText = "Enable"; this.actEnable.Update += new System.EventHandler(this.actEnable_Update); this.actEnable.Execute += new System.EventHandler(this.btActivate_Click); // // actDisable // this.actDisable.Image = ((System.Drawing.Image)(resources.GetObject("actDisable.Image"))); this.actDisable.Text = "Disable"; this.actDisable.ToolTipText = "Disable"; this.actDisable.Update += new System.EventHandler(this.actDisable_Update); this.actDisable.Execute += new System.EventHandler(this.btDesactivate_Click); // // actRefresh // this.actRefresh.Image = ((System.Drawing.Image)(resources.GetObject("actRefresh.Image"))); this.actRefresh.Text = "Refresh"; this.actRefresh.ToolTipText = "Refresh"; this.actRefresh.Execute += new System.EventHandler(this.btRefresh_Click); // // actAdd // this.actAdd.Image = ((System.Drawing.Image)(resources.GetObject("actAdd.Image"))); this.actAdd.Text = "Add"; this.actAdd.ToolTipText = "Add"; this.actAdd.Execute += new System.EventHandler(this.btAdd_Click); // // actDelete // this.actDelete.Image = ((System.Drawing.Image)(resources.GetObject("actDelete.Image"))); this.actDelete.Text = "Delete"; this.actDelete.ToolTipText = "Delete"; this.actDelete.Update += new System.EventHandler(this.actDelete_Update); this.actDelete.Execute += new System.EventHandler(this.btDelete_Click); // // FormExpertManager // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(734, 404); this.Controls.Add(this.lvExperts); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.menuStrip1); this.Font = new System.Drawing.Font("Tahoma", 8.25F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(750, 440); this.Name = "FormExpertManager"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Expert Manager"; this.Load += new System.EventHandler(this.FrmMain_Load); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.alExpertManager)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.btCancel = new System.Windows.Forms.Button(); this.tabControl = new System.Windows.Forms.TabControl(); this.tpEdition = new System.Windows.Forms.TabPage(); this.lblInputFileName = new System.Windows.Forms.Label(); this.btCancelEdit = new System.Windows.Forms.Button(); this.btSave = new System.Windows.Forms.Button(); this.btEdit = new System.Windows.Forms.Button(); this.chkDelaySign = new System.Windows.Forms.CheckBox(); this.label13 = new System.Windows.Forms.Label(); this.txtKey = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.txtKeyFile = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.txtVersion = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.txtCulture = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); this.txtTrademark = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); this.txtCopyright = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.nuIndex = new System.Windows.Forms.NumericUpDown(); this.label7 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.txtFileName = new System.Windows.Forms.TextBox(); this.btAdd = new System.Windows.Forms.Button(); this.btDelete = new System.Windows.Forms.Button(); this.btNew = new System.Windows.Forms.Button(); this.label6 = new System.Windows.Forms.Label(); this.txtProduct = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.txtCompany = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.txtConfiguration = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.txtDescription = new System.Windows.Forms.TextBox(); this.lvFiles = new Vista_Api.ListView(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); this.columnHeader3 = new System.Windows.Forms.ColumnHeader(); this.label1 = new System.Windows.Forms.Label(); this.txtTitle = new System.Windows.Forms.TextBox(); this.btGenerate = new System.Windows.Forms.Button(); this.btOk = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog = new Vista_Api.OpenFileDialog(); this.saveFileDialog = new Vista_Api.SaveFileDialog(); this.tabControl.SuspendLayout(); this.tpEdition.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nuIndex)).BeginInit(); this.SuspendLayout(); // // btCancel // this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btCancel.Location = new System.Drawing.Point(538, 551); this.btCancel.Name = "btCancel"; this.btCancel.Size = new System.Drawing.Size(96, 26); this.btCancel.TabIndex = 0; this.btCancel.Text = "Cancel"; // // tabControl // this.tabControl.Controls.Add(this.tpEdition); this.tabControl.Location = new System.Drawing.Point(10, 9); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.Size = new System.Drawing.Size(739, 534); this.tabControl.TabIndex = 1; // // tpEdition // this.tpEdition.Controls.Add(this.lblInputFileName); this.tpEdition.Controls.Add(this.btCancelEdit); this.tpEdition.Controls.Add(this.btSave); this.tpEdition.Controls.Add(this.btEdit); this.tpEdition.Controls.Add(this.chkDelaySign); this.tpEdition.Controls.Add(this.label13); this.tpEdition.Controls.Add(this.txtKey); this.tpEdition.Controls.Add(this.label12); this.tpEdition.Controls.Add(this.txtKeyFile); this.tpEdition.Controls.Add(this.label11); this.tpEdition.Controls.Add(this.txtVersion); this.tpEdition.Controls.Add(this.label10); this.tpEdition.Controls.Add(this.txtCulture); this.tpEdition.Controls.Add(this.label9); this.tpEdition.Controls.Add(this.txtTrademark); this.tpEdition.Controls.Add(this.label8); this.tpEdition.Controls.Add(this.txtCopyright); this.tpEdition.Controls.Add(this.groupBox1); this.tpEdition.Controls.Add(this.btAdd); this.tpEdition.Controls.Add(this.btDelete); this.tpEdition.Controls.Add(this.btNew); this.tpEdition.Controls.Add(this.label6); this.tpEdition.Controls.Add(this.txtProduct); this.tpEdition.Controls.Add(this.label5); this.tpEdition.Controls.Add(this.txtCompany); this.tpEdition.Controls.Add(this.label4); this.tpEdition.Controls.Add(this.txtConfiguration); this.tpEdition.Controls.Add(this.label2); this.tpEdition.Controls.Add(this.txtDescription); this.tpEdition.Controls.Add(this.lvFiles); this.tpEdition.Controls.Add(this.label1); this.tpEdition.Controls.Add(this.txtTitle); this.tpEdition.Location = new System.Drawing.Point(4, 22); this.tpEdition.Name = "tpEdition"; this.tpEdition.Size = new System.Drawing.Size(731, 508); this.tpEdition.TabIndex = 0; this.tpEdition.Text = "Edit"; // // lblInputFileName // this.lblInputFileName.Location = new System.Drawing.Point(10, 474); this.lblInputFileName.Name = "lblInputFileName"; this.lblInputFileName.Size = new System.Drawing.Size(700, 26); this.lblInputFileName.TabIndex = 35; // // btCancelEdit // this.btCancelEdit.Location = new System.Drawing.Point(624, 276); this.btCancelEdit.Name = "btCancelEdit"; this.btCancelEdit.Size = new System.Drawing.Size(96, 26); this.btCancelEdit.TabIndex = 34; this.btCancelEdit.Text = "Cancel Edit"; this.btCancelEdit.Click += new System.EventHandler(this.btCancelEdit_Click); // // btSave // this.btSave.Location = new System.Drawing.Point(624, 241); this.btSave.Name = "btSave"; this.btSave.Size = new System.Drawing.Size(96, 26); this.btSave.TabIndex = 33; this.btSave.Text = "Save"; this.btSave.Click += new System.EventHandler(this.btSave_Click); // // btEdit // this.btEdit.Location = new System.Drawing.Point(624, 207); this.btEdit.Name = "btEdit"; this.btEdit.Size = new System.Drawing.Size(96, 26); this.btEdit.TabIndex = 32; this.btEdit.Text = "Edit"; this.btEdit.Click += new System.EventHandler(this.btEdit_Click); // // chkDelaySign // this.chkDelaySign.Checked = true; this.chkDelaySign.CheckState = System.Windows.Forms.CheckState.Checked; this.chkDelaySign.Location = new System.Drawing.Point(336, 422); this.chkDelaySign.Name = "chkDelaySign"; this.chkDelaySign.Size = new System.Drawing.Size(154, 17); this.chkDelaySign.TabIndex = 31; this.chkDelaySign.Text = "Delay sign"; // // label13 // this.label13.Location = new System.Drawing.Point(307, 388); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(58, 17); this.label13.TabIndex = 30; this.label13.Text = "Key name"; // // txtKey // this.txtKey.Location = new System.Drawing.Point(394, 388); this.txtKey.Name = "txtKey"; this.txtKey.Size = new System.Drawing.Size(120, 21); this.txtKey.TabIndex = 29; // // label12 // this.label12.Location = new System.Drawing.Point(307, 353); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(58, 17); this.label12.TabIndex = 28; this.label12.Text = "Key file"; // // txtKeyFile // this.txtKeyFile.Location = new System.Drawing.Point(394, 353); this.txtKeyFile.Name = "txtKeyFile"; this.txtKeyFile.Size = new System.Drawing.Size(120, 21); this.txtKeyFile.TabIndex = 27; // // label11 // this.label11.Location = new System.Drawing.Point(307, 319); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(58, 17); this.label11.TabIndex = 26; this.label11.Text = "Version"; // // txtVersion // this.txtVersion.Location = new System.Drawing.Point(394, 319); this.txtVersion.Name = "txtVersion"; this.txtVersion.Size = new System.Drawing.Size(120, 21); this.txtVersion.TabIndex = 25; // // label10 // this.label10.Location = new System.Drawing.Point(307, 284); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(58, 18); this.label10.TabIndex = 24; this.label10.Text = "Culture"; // // txtCulture // this.txtCulture.Location = new System.Drawing.Point(394, 284); this.txtCulture.Name = "txtCulture"; this.txtCulture.Size = new System.Drawing.Size(120, 21); this.txtCulture.TabIndex = 23; // // label9 // this.label9.Location = new System.Drawing.Point(307, 250); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(77, 17); this.label9.TabIndex = 22; this.label9.Text = "Trademark"; // // txtTrademark // this.txtTrademark.Location = new System.Drawing.Point(394, 250); this.txtTrademark.Name = "txtTrademark"; this.txtTrademark.Size = new System.Drawing.Size(220, 21); this.txtTrademark.TabIndex = 21; // // label8 // this.label8.Location = new System.Drawing.Point(307, 215); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(77, 18); this.label8.TabIndex = 20; this.label8.Text = "Copyright"; // // txtCopyright // this.txtCopyright.Location = new System.Drawing.Point(394, 215); this.txtCopyright.Name = "txtCopyright"; this.txtCopyright.Size = new System.Drawing.Size(220, 21); this.txtCopyright.TabIndex = 19; // // groupBox1 // this.groupBox1.Controls.Add(this.nuIndex); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.txtFileName); this.groupBox1.Location = new System.Drawing.Point(10, 129); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(710, 69); this.groupBox1.TabIndex = 18; this.groupBox1.TabStop = false; // // nuIndex // this.nuIndex.Location = new System.Drawing.Point(374, 26); this.nuIndex.Name = "nuIndex"; this.nuIndex.Size = new System.Drawing.Size(144, 21); this.nuIndex.TabIndex = 13; // // label7 // this.label7.Location = new System.Drawing.Point(288, 29); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(58, 17); this.label7.TabIndex = 14; this.label7.Text = "Index"; // // label3 // this.label3.Location = new System.Drawing.Point(10, 26); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(115, 17); this.label3.TabIndex = 6; this.label3.Text = "Output File Name"; // // txtFileName // this.txtFileName.Location = new System.Drawing.Point(134, 26); this.txtFileName.Name = "txtFileName"; this.txtFileName.Size = new System.Drawing.Size(120, 21); this.txtFileName.TabIndex = 5; // // btAdd // this.btAdd.Location = new System.Drawing.Point(624, 43); this.btAdd.Name = "btAdd"; this.btAdd.Size = new System.Drawing.Size(96, 26); this.btAdd.TabIndex = 17; this.btAdd.Text = "Add"; this.btAdd.Click += new System.EventHandler(this.btAdd_Click); // // btDelete // this.btDelete.Location = new System.Drawing.Point(624, 78); this.btDelete.Name = "btDelete"; this.btDelete.Size = new System.Drawing.Size(96, 25); this.btDelete.TabIndex = 16; this.btDelete.Text = "Delete"; this.btDelete.Click += new System.EventHandler(this.btDelete_Click); // // btNew // this.btNew.Location = new System.Drawing.Point(624, 9); this.btNew.Name = "btNew"; this.btNew.Size = new System.Drawing.Size(96, 25); this.btNew.TabIndex = 15; this.btNew.Text = "New"; this.btNew.Click += new System.EventHandler(this.btNew_Click); // // label6 // this.label6.Location = new System.Drawing.Point(19, 353); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(58, 17); this.label6.TabIndex = 12; this.label6.Text = "Product"; // // txtProduct // this.txtProduct.Location = new System.Drawing.Point(106, 353); this.txtProduct.Name = "txtProduct"; this.txtProduct.Size = new System.Drawing.Size(192, 21); this.txtProduct.TabIndex = 11; // // label5 // this.label5.Location = new System.Drawing.Point(19, 319); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(77, 17); this.label5.TabIndex = 10; this.label5.Text = "Company"; // // txtCompany // this.txtCompany.Location = new System.Drawing.Point(106, 319); this.txtCompany.Name = "txtCompany"; this.txtCompany.Size = new System.Drawing.Size(192, 21); this.txtCompany.TabIndex = 9; // // label4 // this.label4.Location = new System.Drawing.Point(19, 284); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(87, 18); this.label4.TabIndex = 8; this.label4.Text = "Configuration"; // // txtConfiguration // this.txtConfiguration.Location = new System.Drawing.Point(106, 284); this.txtConfiguration.Name = "txtConfiguration"; this.txtConfiguration.Size = new System.Drawing.Size(192, 21); this.txtConfiguration.TabIndex = 7; // // label2 // this.label2.Location = new System.Drawing.Point(19, 250); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(77, 17); this.label2.TabIndex = 4; this.label2.Text = "Description"; // // txtDescription // this.txtDescription.Location = new System.Drawing.Point(106, 250); this.txtDescription.Name = "txtDescription"; this.txtDescription.Size = new System.Drawing.Size(192, 21); this.txtDescription.TabIndex = 3; // // lvFiles // this.lvFiles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3}); this.lvFiles.FullRowSelect = true; this.lvFiles.HideSelection = false; this.lvFiles.Location = new System.Drawing.Point(10, 9); this.lvFiles.MultiSelect = false; this.lvFiles.Name = "lvFiles"; this.lvFiles.Size = new System.Drawing.Size(604, 112); this.lvFiles.TabIndex = 2; this.lvFiles.UseCompatibleStateImageBehavior = false; this.lvFiles.View = System.Windows.Forms.View.Details; this.lvFiles.Click += new System.EventHandler(this.lvFiles_Click); // // columnHeader1 // this.columnHeader1.Text = "Path"; this.columnHeader1.Width = 300; // // columnHeader2 // this.columnHeader2.Text = "File name"; this.columnHeader2.Width = 120; // // columnHeader3 // this.columnHeader3.Text = "Index"; this.columnHeader3.Width = 65; // // label1 // this.label1.Location = new System.Drawing.Point(19, 215); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(58, 18); this.label1.TabIndex = 1; this.label1.Text = "Title"; // // txtTitle // this.txtTitle.Location = new System.Drawing.Point(106, 215); this.txtTitle.Name = "txtTitle"; this.txtTitle.Size = new System.Drawing.Size(192, 21); this.txtTitle.TabIndex = 0; // // btGenerate // this.btGenerate.Location = new System.Drawing.Point(643, 551); this.btGenerate.Name = "btGenerate"; this.btGenerate.Size = new System.Drawing.Size(96, 26); this.btGenerate.TabIndex = 2; this.btGenerate.Text = "Generate"; this.btGenerate.Click += new System.EventHandler(this.btGenerate_Click); // // btOk // this.btOk.DialogResult = System.Windows.Forms.DialogResult.OK; this.btOk.Location = new System.Drawing.Point(432, 551); this.btOk.Name = "btOk"; this.btOk.Size = new System.Drawing.Size(96, 26); this.btOk.TabIndex = 3; this.btOk.Text = "Ok"; // // saveFileDialog1 // this.saveFileDialog1.Filter = "Assembly Info Def|*.aid"; // // openFileDialog1 // this.openFileDialog1.CheckFileExists = false; this.openFileDialog1.Filter = "Assembly Info Def|*.aid"; // // openFileDialog // this.openFileDialog.FileName = "openFileDialog2"; this.openFileDialog.Filter = null; // // saveFileDialog // this.saveFileDialog.Filter = null; // // FrmAssemblyInfoEditor // this.AcceptButton = this.btOk; this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.CancelButton = this.btCancel; this.ClientSize = new System.Drawing.Size(760, 583); this.Controls.Add(this.btOk); this.Controls.Add(this.tabControl); this.Controls.Add(this.btCancel); this.Controls.Add(this.btGenerate); this.Font = new System.Drawing.Font("Tahoma", 8.25F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.Name = "FrmAssemblyInfoEditor"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Sharp Builder Tools - Assembly Info Editor / Runner"; this.Load += new System.EventHandler(this.FrmAssemblyInfoEditor_Load); this.tabControl.ResumeLayout(false); this.tpEdition.ResumeLayout(false); this.tpEdition.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.nuIndex)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WinForm_AutoSave)); this.checkBox_AutoSave = new System.Windows.Forms.CheckBox(); this.button_Ok = new System.Windows.Forms.Button(); this.button_Cancel = new System.Windows.Forms.Button(); this.panel_Sound = new System.Windows.Forms.Panel(); this.panel_WavAttributes = new System.Windows.Forms.Panel(); this.button_OpenWav = new System.Windows.Forms.Button(); this.textBox_Wav = new System.Windows.Forms.TextBox(); this.panel_BeepAttributes = new System.Windows.Forms.Panel(); this.label3 = new System.Windows.Forms.Label(); this.label_Duration = new System.Windows.Forms.Label(); this.numericUpDown_Duration = new System.Windows.Forms.NumericUpDown(); this.numericUpDown_Frequency = new System.Windows.Forms.NumericUpDown(); this.radioButton_Wav = new System.Windows.Forms.RadioButton(); this.radioButton_Beep = new System.Windows.Forms.RadioButton(); this.button_TestSound = new System.Windows.Forms.Button(); this.checkBox_PlaySound = new System.Windows.Forms.CheckBox(); this.openFileDialog_Wav1 = new System.Windows.Forms.OpenFileDialog(); this.panel_AutoSaveDelay = new System.Windows.Forms.Panel(); this.radioButton_Seconds = new System.Windows.Forms.RadioButton(); this.radioButton_Minutes = new System.Windows.Forms.RadioButton(); this.numericUpDown_Delay = new System.Windows.Forms.NumericUpDown(); this.button_About = new System.Windows.Forms.Button(); this.openFileDialog_Wav = new Vista_Api.OpenFileDialog(); this.panel_Sound.SuspendLayout(); this.panel_WavAttributes.SuspendLayout(); this.panel_BeepAttributes.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Duration)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Frequency)).BeginInit(); this.panel_AutoSaveDelay.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Delay)).BeginInit(); this.SuspendLayout(); // // checkBox_AutoSave // this.checkBox_AutoSave.Location = new System.Drawing.Point(19, 26); this.checkBox_AutoSave.Name = "checkBox_AutoSave"; this.checkBox_AutoSave.Size = new System.Drawing.Size(250, 17); this.checkBox_AutoSave.TabIndex = 0; this.checkBox_AutoSave.Text = "automatically save IDE project every"; this.checkBox_AutoSave.CheckedChanged += new System.EventHandler(this.checkBox_AutoSave_CheckedChanged); // // button_Ok // this.button_Ok.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.button_Ok.Location = new System.Drawing.Point(374, 258); this.button_Ok.Name = "button_Ok"; this.button_Ok.Size = new System.Drawing.Size(90, 25); this.button_Ok.TabIndex = 3; this.button_Ok.Text = "OK"; this.button_Ok.Click += new System.EventHandler(this.button_Ok_Click); // // button_Cancel // this.button_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.button_Cancel.Location = new System.Drawing.Point(499, 258); this.button_Cancel.Name = "button_Cancel"; this.button_Cancel.Size = new System.Drawing.Size(90, 25); this.button_Cancel.TabIndex = 4; this.button_Cancel.Text = "Cancel"; this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click); // // panel_Sound // this.panel_Sound.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel_Sound.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel_Sound.Controls.Add(this.panel_WavAttributes); this.panel_Sound.Controls.Add(this.panel_BeepAttributes); this.panel_Sound.Controls.Add(this.radioButton_Wav); this.panel_Sound.Controls.Add(this.radioButton_Beep); this.panel_Sound.Controls.Add(this.button_TestSound); this.panel_Sound.Enabled = false; this.panel_Sound.Location = new System.Drawing.Point(10, 103); this.panel_Sound.Name = "panel_Sound"; this.panel_Sound.Size = new System.Drawing.Size(585, 138); this.panel_Sound.TabIndex = 16; // // panel_WavAttributes // this.panel_WavAttributes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel_WavAttributes.Controls.Add(this.button_OpenWav); this.panel_WavAttributes.Controls.Add(this.textBox_Wav); this.panel_WavAttributes.Enabled = false; this.panel_WavAttributes.Location = new System.Drawing.Point(96, 86); this.panel_WavAttributes.Name = "panel_WavAttributes"; this.panel_WavAttributes.Size = new System.Drawing.Size(480, 43); this.panel_WavAttributes.TabIndex = 27; // // button_OpenWav // this.button_OpenWav.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button_OpenWav.Location = new System.Drawing.Point(241, 9); this.button_OpenWav.Name = "button_OpenWav"; this.button_OpenWav.Size = new System.Drawing.Size(125, 24); this.button_OpenWav.TabIndex = 27; this.button_OpenWav.Text = "Open wav-file"; this.button_OpenWav.Click += new System.EventHandler(this.button_OpenWav_Click); // // textBox_Wav // this.textBox_Wav.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBox_Wav.Location = new System.Drawing.Point(11, 9); this.textBox_Wav.Name = "textBox_Wav"; this.textBox_Wav.Size = new System.Drawing.Size(228, 21); this.textBox_Wav.TabIndex = 26; // // panel_BeepAttributes // this.panel_BeepAttributes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel_BeepAttributes.Controls.Add(this.label3); this.panel_BeepAttributes.Controls.Add(this.label_Duration); this.panel_BeepAttributes.Controls.Add(this.numericUpDown_Duration); this.panel_BeepAttributes.Controls.Add(this.numericUpDown_Frequency); this.panel_BeepAttributes.Location = new System.Drawing.Point(96, 39); this.panel_BeepAttributes.Name = "panel_BeepAttributes"; this.panel_BeepAttributes.Size = new System.Drawing.Size(480, 34); this.panel_BeepAttributes.TabIndex = 26; // // label3 // this.label3.Location = new System.Drawing.Point(250, 9); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(134, 17); this.label3.TabIndex = 25; this.label3.Text = "Beep frequency (Hz):"; // // label_Duration // this.label_Duration.Location = new System.Drawing.Point(10, 9); this.label_Duration.Name = "label_Duration"; this.label_Duration.Size = new System.Drawing.Size(126, 17); this.label_Duration.TabIndex = 24; this.label_Duration.Text = "Beep duration (ms):"; // // numericUpDown_Duration // this.numericUpDown_Duration.Increment = new decimal(new int[] { 10, 0, 0, 0}); this.numericUpDown_Duration.Location = new System.Drawing.Point(144, 9); this.numericUpDown_Duration.Maximum = new decimal(new int[] { 5000, 0, 0, 0}); this.numericUpDown_Duration.Minimum = new decimal(new int[] { 10, 0, 0, 0}); this.numericUpDown_Duration.Name = "numericUpDown_Duration"; this.numericUpDown_Duration.Size = new System.Drawing.Size(77, 21); this.numericUpDown_Duration.TabIndex = 23; this.numericUpDown_Duration.Value = new decimal(new int[] { 500, 0, 0, 0}); // // numericUpDown_Frequency // this.numericUpDown_Frequency.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.numericUpDown_Frequency.Increment = new decimal(new int[] { 500, 0, 0, 0}); this.numericUpDown_Frequency.Location = new System.Drawing.Point(394, 9); this.numericUpDown_Frequency.Maximum = new decimal(new int[] { 20000, 0, 0, 0}); this.numericUpDown_Frequency.Minimum = new decimal(new int[] { 500, 0, 0, 0}); this.numericUpDown_Frequency.Name = "numericUpDown_Frequency"; this.numericUpDown_Frequency.Size = new System.Drawing.Size(76, 21); this.numericUpDown_Frequency.TabIndex = 22; this.numericUpDown_Frequency.Value = new decimal(new int[] { 5000, 0, 0, 0}); // // radioButton_Wav // this.radioButton_Wav.Location = new System.Drawing.Point(10, 95); this.radioButton_Wav.Name = "radioButton_Wav"; this.radioButton_Wav.Size = new System.Drawing.Size(86, 26); this.radioButton_Wav.TabIndex = 23; this.radioButton_Wav.Text = "Wav-file"; this.radioButton_Wav.CheckedChanged += new System.EventHandler(this.radioButton_Wav_CheckedChanged); // // radioButton_Beep // this.radioButton_Beep.Checked = true; this.radioButton_Beep.Location = new System.Drawing.Point(10, 43); this.radioButton_Beep.Name = "radioButton_Beep"; this.radioButton_Beep.Size = new System.Drawing.Size(96, 26); this.radioButton_Beep.TabIndex = 22; this.radioButton_Beep.TabStop = true; this.radioButton_Beep.Text = "Beep"; this.radioButton_Beep.CheckedChanged += new System.EventHandler(this.radioButton_Beep_CheckedChanged); // // button_TestSound // this.button_TestSound.Location = new System.Drawing.Point(10, 9); this.button_TestSound.Name = "button_TestSound"; this.button_TestSound.Size = new System.Drawing.Size(90, 24); this.button_TestSound.TabIndex = 17; this.button_TestSound.Text = "Test sound"; this.button_TestSound.Click += new System.EventHandler(this.button_TestSound_Click); // // checkBox_PlaySound // this.checkBox_PlaySound.Enabled = false; this.checkBox_PlaySound.Location = new System.Drawing.Point(19, 69); this.checkBox_PlaySound.Name = "checkBox_PlaySound"; this.checkBox_PlaySound.Size = new System.Drawing.Size(183, 26); this.checkBox_PlaySound.TabIndex = 17; this.checkBox_PlaySound.Text = "Play sound during saving"; this.checkBox_PlaySound.CheckedChanged += new System.EventHandler(this.checkBox_PlaySound_CheckedChanged); // // openFileDialog_Wav1 // this.openFileDialog_Wav1.DefaultExt = "WAV"; this.openFileDialog_Wav1.Filter = "Wav-files|*.wav|All files|*.*"; // // panel_AutoSaveDelay // this.panel_AutoSaveDelay.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel_AutoSaveDelay.Controls.Add(this.radioButton_Seconds); this.panel_AutoSaveDelay.Controls.Add(this.radioButton_Minutes); this.panel_AutoSaveDelay.Controls.Add(this.numericUpDown_Delay); this.panel_AutoSaveDelay.Enabled = false; this.panel_AutoSaveDelay.Location = new System.Drawing.Point(259, 9); this.panel_AutoSaveDelay.Name = "panel_AutoSaveDelay"; this.panel_AutoSaveDelay.Size = new System.Drawing.Size(336, 69); this.panel_AutoSaveDelay.TabIndex = 20; // // radioButton_Seconds // this.radioButton_Seconds.Location = new System.Drawing.Point(76, 33); this.radioButton_Seconds.Name = "radioButton_Seconds"; this.radioButton_Seconds.Size = new System.Drawing.Size(124, 18); this.radioButton_Seconds.TabIndex = 22; this.radioButton_Seconds.Text = "second(s)"; // // radioButton_Minutes // this.radioButton_Minutes.Checked = true; this.radioButton_Minutes.Location = new System.Drawing.Point(76, 10); this.radioButton_Minutes.Name = "radioButton_Minutes"; this.radioButton_Minutes.Size = new System.Drawing.Size(124, 17); this.radioButton_Minutes.TabIndex = 21; this.radioButton_Minutes.TabStop = true; this.radioButton_Minutes.Text = "minute(s)"; // // numericUpDown_Delay // this.numericUpDown_Delay.Location = new System.Drawing.Point(8, 18); this.numericUpDown_Delay.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.numericUpDown_Delay.Name = "numericUpDown_Delay"; this.numericUpDown_Delay.Size = new System.Drawing.Size(59, 21); this.numericUpDown_Delay.TabIndex = 20; this.numericUpDown_Delay.Value = new decimal(new int[] { 1, 0, 0, 0}); // // button_About // this.button_About.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button_About.Location = new System.Drawing.Point(10, 258); this.button_About.Name = "button_About"; this.button_About.Size = new System.Drawing.Size(90, 25); this.button_About.TabIndex = 21; this.button_About.Text = "About"; this.button_About.Click += new System.EventHandler(this.button_About_Click); // // openFileDialog_Wav // this.openFileDialog_Wav.FileName = "openFileDialog1"; this.openFileDialog_Wav.Filter = null; // // WinForm_AutoSave // this.AcceptButton = this.button_Ok; this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.CancelButton = this.button_Cancel; this.ClientSize = new System.Drawing.Size(602, 292); this.Controls.Add(this.button_About); this.Controls.Add(this.panel_AutoSaveDelay); this.Controls.Add(this.checkBox_PlaySound); this.Controls.Add(this.panel_Sound); this.Controls.Add(this.button_Cancel); this.Controls.Add(this.button_Ok); this.Controls.Add(this.checkBox_AutoSave); this.Font = new System.Drawing.Font("Tahoma", 8.25F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "WinForm_AutoSave"; this.Text = "Auto-Save Options"; this.Load += new System.EventHandler(this.WinForm_AutoSave_Load); this.panel_Sound.ResumeLayout(false); this.panel_WavAttributes.ResumeLayout(false); this.panel_WavAttributes.PerformLayout(); this.panel_BeepAttributes.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Duration)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Frequency)).EndInit(); this.panel_AutoSaveDelay.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Delay)).EndInit(); this.ResumeLayout(false); }
private void mmNewFile_Click(object sender, System.EventArgs e) { Vista_Api.OpenFileDialog _OpenFileDialog = new Vista_Api.OpenFileDialog(); _OpenFileDialog.CheckFileExists = true; _OpenFileDialog.Filter = filter; _OpenFileDialog.FilterIndex = 0 ; IOTAProject _IOTAProject = OtaUtils.GetCurrentProject(); string _Dir = string.Empty; if (_IOTAProject != null) { _Dir = Path.GetDirectoryName(_IOTAProject.FileName); } if (string.IsNullOrEmpty(_Dir)) { _Dir = Directory.GetCurrentDirectory(); } _OpenFileDialog.InitialDirectory = _Dir; _OpenFileDialog.Multiselect = true; _OpenFileDialog.ShowReadOnly = false; _OpenFileDialog.Title = "Add to Favorites"; if(_OpenFileDialog.ShowDialog() == DialogResult.OK) { foreach (string _FileName in _OpenFileDialog.FileNames) { ListViewItem _ListViewItem = lvFiles.Items.Add(Path.GetFileNameWithoutExtension(_FileName)); _ListViewItem.SubItems.Add(_FileName); _ListViewItem.ImageIndex = fFileIconManager.GetImageIndex(_FileName); } } }