Ok, Just Do It!

This commit is contained in:
Vitaliy
2017-02-18 00:15:59 +03:00
parent f0913f9873
commit 5c46ef7b7f
122 changed files with 1712 additions and 2177 deletions

View File

@@ -1,20 +1,8 @@
using BrightSharp.Diagrams;
using BrightSharp.Extensions;
using BrightSharp.Converters;
using Diagrams;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace BrightSharp.Ui.Tests
{
@@ -30,8 +18,6 @@ namespace BrightSharp.Ui.Tests
tb.Text = ThemeManager.Theme.ToString();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
if (Enum.IsDefined(typeof(ColorThemes), ThemeManager.Theme + 1))
@@ -44,5 +30,27 @@ namespace BrightSharp.Ui.Tests
}
tb.Text = ThemeManager.Theme.ToString();
}
private void Button_Click_ShowCustomWindow(object sender, RoutedEventArgs e)
{
new CustomWindow().ShowDialog();
}
private void Calendar_Loaded(object sender, RoutedEventArgs e)
{
var cal = (Calendar)sender;
cal.BlackoutDates.Add(new CalendarDateRange(DateTime.Now.AddDays(-10), DateTime.Now.AddDays(-8)));
cal.DisplayDateStart = DateTime.Now.AddDays(-400);
}
private void DataGrid_AutoGeneratedColumns(object sender, EventArgs e)
{
var dg = (DataGrid)sender;
var stringHelper = new StringHelpConverter();
foreach (var col in dg.Columns)
{
col.Header = stringHelper.Convert(col.Header, null, "SpaceBetweenCaps", null);
}
}
}
}