mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Merge pull request #1135 from disarray2077/idedialogs
Some changes to file dialogs of the IDE
This commit is contained in:
commit
2c7daf0376
1 changed files with 7 additions and 0 deletions
|
@ -851,6 +851,7 @@ namespace IDE
|
||||||
|
|
||||||
var fileDialog = scope OpenFileDialog();
|
var fileDialog = scope OpenFileDialog();
|
||||||
fileDialog.Title = "Open File";
|
fileDialog.Title = "Open File";
|
||||||
|
fileDialog.SetFilter("All files (*.*)|*.*");
|
||||||
fileDialog.Multiselect = true;
|
fileDialog.Multiselect = true;
|
||||||
fileDialog.ValidateNames = true;
|
fileDialog.ValidateNames = true;
|
||||||
if (!fullDir.IsEmpty)
|
if (!fullDir.IsEmpty)
|
||||||
|
@ -1460,8 +1461,14 @@ namespace IDE
|
||||||
public bool SaveFileAs(SourceViewPanel sourceViewPanel)
|
public bool SaveFileAs(SourceViewPanel sourceViewPanel)
|
||||||
{
|
{
|
||||||
#if !CLI
|
#if !CLI
|
||||||
|
String fullDir = scope .();
|
||||||
|
Path.GetDirectoryPath(sourceViewPanel.mFilePath, fullDir);
|
||||||
|
|
||||||
SaveFileDialog dialog = scope .();
|
SaveFileDialog dialog = scope .();
|
||||||
|
dialog.SetFilter("All files (*.*)|*.*");
|
||||||
//dialog.ValidateNames = true;
|
//dialog.ValidateNames = true;
|
||||||
|
if (!fullDir.IsEmpty)
|
||||||
|
dialog.InitialDirectory = fullDir;
|
||||||
|
|
||||||
if (sourceViewPanel.mFilePath != null)
|
if (sourceViewPanel.mFilePath != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue