BaseWIndow.cs
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using HHECS.Model;
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.Media.Imaging;
namespace HHECS.View.Win
{
public class BaseWindow:Window
{
public BaseWindow()
{
this.Loaded += BaseWindow_Loaded;
this.FontSize = 14;
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Content/Image/favicon.ico", UriKind.RelativeOrAbsolute));
}
private void BaseWindow_Loaded(object sender, RoutedEventArgs e)
{
//var temp = AppSession.Bll.FindMenuOperation(AppSession.User.Roles);
//AppSession.CheckPermission(temp.Success?temp.Data:new List<MenuOperation>(),)
}
///// <summary>
///// 遍历控件及其值
///// </summary>
///// <param name="uiControls">界面控件</param>
//private void SetNotEditable(UIElementCollection uiControls)
//{
// foreach (UIElement element in uiControls)
// {
// if (element is TextBox)
// {
// TextBox txtBox = (element as TextBox);
// }
// else if (element is Grid)
// {
// this.SetNotEditable((element as Grid).Children);
// }
// }
//}
}
}