Work on UI, added splash screen

This commit is contained in:
2014-07-24 23:41:17 +03:00
parent 4e2eb5dd3f
commit 00f5ddf673
10 changed files with 108 additions and 6 deletions

View File

@ -1,7 +1,10 @@
<Window x:Class="RainmeterEditor.UI.Dialogs.CreateDocumentDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="CreateDocumentDialog" Height="250" Width="400">
Title="Create..." Height="250" Width="400"
WindowStartupLocation="CenterOwner"
WindowStyle="ToolWindow" ShowInTaskbar="False">
<Grid Background="WhiteSmoke">
<Grid.RowDefinitions>
<RowDefinition />

View File

@ -59,6 +59,7 @@ namespace RainmeterEditor.UI.Dialogs
InitializeComponent();
PopulateFormats();
Validate();
}
private void PopulateFormats()
@ -79,5 +80,14 @@ namespace RainmeterEditor.UI.Dialogs
DialogResult = false;
Close();
}
private void Validate()
{
bool res = true;
res &= !String.IsNullOrWhiteSpace(textPath.Text);
res &= (listFormats.SelectedItem != null);
buttonCreate.IsEnabled = res;
}
}
}