mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +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();
|
||||
fileDialog.Title = "Open File";
|
||||
fileDialog.SetFilter("All files (*.*)|*.*");
|
||||
fileDialog.Multiselect = true;
|
||||
fileDialog.ValidateNames = true;
|
||||
if (!fullDir.IsEmpty)
|
||||
|
@ -1460,8 +1461,14 @@ namespace IDE
|
|||
public bool SaveFileAs(SourceViewPanel sourceViewPanel)
|
||||
{
|
||||
#if !CLI
|
||||
String fullDir = scope .();
|
||||
Path.GetDirectoryPath(sourceViewPanel.mFilePath, fullDir);
|
||||
|
||||
SaveFileDialog dialog = scope .();
|
||||
dialog.SetFilter("All files (*.*)|*.*");
|
||||
//dialog.ValidateNames = true;
|
||||
if (!fullDir.IsEmpty)
|
||||
dialog.InitialDirectory = fullDir;
|
||||
|
||||
if (sourceViewPanel.mFilePath != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue