mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Work on UI, added splash screen
This commit is contained in:
@ -6,6 +6,7 @@ using RainmeterEditor.Business;
|
||||
using RainmeterEditor.UI.Dialogs;
|
||||
using RainmeterEditor.Model.Events;
|
||||
using RainmeterEditor.Model;
|
||||
using System.Windows;
|
||||
|
||||
namespace RainmeterEditor.UI.Controller
|
||||
{
|
||||
@ -29,10 +30,15 @@ namespace RainmeterEditor.UI.Controller
|
||||
{
|
||||
}
|
||||
|
||||
public void Create()
|
||||
public void Create(Window parent = null, DocumentFormat defaultFormat = null, string defaultPath = "")
|
||||
{
|
||||
// Show dialog
|
||||
var dialog = new CreateDocumentDialog();
|
||||
var dialog = new CreateDocumentDialog()
|
||||
{
|
||||
Owner = parent,
|
||||
SelectedFormat = defaultFormat,
|
||||
SelectedPath = defaultPath
|
||||
};
|
||||
bool? res = dialog.ShowDialog();
|
||||
|
||||
if (!res.HasValue || !res.Value)
|
||||
@ -44,5 +50,11 @@ namespace RainmeterEditor.UI.Controller
|
||||
// Call manager
|
||||
DocumentManager.Instance.Create(format, path);
|
||||
}
|
||||
|
||||
public void Create(DocumentFormat format, string path)
|
||||
{
|
||||
// Call manager
|
||||
DocumentManager.Instance.Create(format, path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user