Permalink
Browse files

2008-08-19 Ivan N. Zlatev <contact@i-nz.net>

	* Make the file path textbox readonly in the New File dialog.
	[Fixes bug #417617]


svn path=/trunk/mwf-designer/; revision=110870
  • Loading branch information...
ivanz committed Aug 18, 2008
1 parent 4cd2699 commit 097d7ea321b8db56d2b32dbb89b5c981f8b1d807
Showing with 20 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +2 −0 src/UI/NewFileDialog.Designer.cs
  3. +13 −2 src/UI/NewFileDialog.cs
View
@@ -1,3 +1,8 @@
+2008-08-19 Ivan N. Zlatev <contact@i-nz.net>
+
+ * Make the file path textbox readonly in the New File dialog.
+ [Fixes bug #417617]
+
2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
* Misc fixes and improvements.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -78,12 +78,23 @@ private void cancelButton_Click(object sender, EventArgs e)
}
private void browseButton_Click(object sender, EventArgs e)
+ {
+ filenameTextbox.Text = SelectSaveLocation ();
+ }
+
+ private void filenameTextbox_Click (object sender, EventArgs e)
+ {
+ filenameTextbox.Text = SelectSaveLocation ();
+ }
+
+ private string SelectSaveLocation ()
{
SaveFileDialog dialog = new SaveFileDialog();
- dialog.OverwritePrompt = true;
+ dialog.OverwritePrompt = true;
dialog.Filter = "C# Source Code (*.cs)|*.cs| VB.NET Source Code (*.vb)|*.vb|Other|*.*";
if (dialog.ShowDialog() == DialogResult.OK)
- filenameTextbox.Text = dialog.FileName;
+ return dialog.FileName;
+ return null;
}
private void doneButton_Click(object sender, EventArgs e)

0 comments on commit 097d7ea

Please sign in to comment.