From: <du...@us...> - 2007-03-18 12:06:38
|
Revision: 193 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=193&view=rev Author: dukus Date: 2007-03-16 23:59:36 -0700 (Fri, 16 Mar 2007) Log Message: ----------- Advanced language editor Modified Paths: -------------- trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs trunk/plugins/mpinstaler/MPInstaler.suo Modified: trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs 2007-03-16 20:30:59 UTC (rev 192) +++ trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs 2007-03-17 06:59:36 UTC (rev 193) @@ -41,9 +41,9 @@ this.button4 = new System.Windows.Forms.Button(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.listView2 = new System.Windows.Forms.ListView(); - this.button5 = new System.Windows.Forms.Button(); this.columnHeader4 = new System.Windows.Forms.ColumnHeader(); this.columnHeader5 = new System.Windows.Forms.ColumnHeader(); + this.button5 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 @@ -77,6 +77,9 @@ // // listView1 // + this.listView1.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.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, @@ -154,6 +157,7 @@ this.listView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader4, this.columnHeader5}); + this.listView2.FullRowSelect = true; this.listView2.Location = new System.Drawing.Point(434, 12); this.listView2.Name = "listView2"; this.listView2.Size = new System.Drawing.Size(227, 311); @@ -161,6 +165,15 @@ this.listView2.UseCompatibleStateImageBehavior = false; this.listView2.View = System.Windows.Forms.View.Details; // + // columnHeader4 + // + this.columnHeader4.Text = "Id"; + // + // columnHeader5 + // + this.columnHeader5.Text = "Value"; + this.columnHeader5.Width = 134; + // // button5 // this.button5.Location = new System.Drawing.Point(390, 156); @@ -169,16 +182,8 @@ this.button5.TabIndex = 10; this.button5.Text = "<-"; this.button5.UseVisualStyleBackColor = true; + this.button5.Click += new System.EventHandler(this.button5_Click); // - // columnHeader4 - // - this.columnHeader4.Text = "Id"; - // - // columnHeader5 - // - this.columnHeader5.Text = "Value"; - this.columnHeader5.Width = 134; - // // Form2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); Modified: trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs 2007-03-16 20:30:59 UTC (rev 192) +++ trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs 2007-03-17 06:59:36 UTC (rev 193) @@ -141,5 +141,16 @@ lang.Load(languageComboBox.Text); load_lang(); } + + private void button5_Click(object sender, EventArgs e) + { + foreach (ListViewItem it in listView2.SelectedItems) + { + ListViewItem item1 = new ListViewItem(it.SubItems[0].Text, 0); + item1.SubItems.Add(it.SubItems[1].Text); + item1.SubItems.Add(languageComboBox.Text); + listView1.Items.AddRange(new ListViewItem[] { item1 }); + } + } } } \ No newline at end of file Modified: trunk/plugins/mpinstaler/MPInstaler.suo =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |