Ejemplo n.º 1
0
 public LoginWindow()
 {
     InitializeComponent();
     //判断标志符,防止配置文件重复加载报错
     if (StaticGlobal.flag == true)
     {
         //配置文件读取
         GlobalXmlConfig.ReadXmlConfig();
     }
     string[] points = (string[])ReadKeys("UserLog").ToArray(typeof(string));
     if (points.Length != 0)
     {
         userBox.Text = points[0];
         passwordBox.Focus();
     }
     else
     {
         userBox.Focus();
     }
 }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     GlobalXmlConfig.ReadXmlConfig();
 }