mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
Ok, Just Do It!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user