示例#1
0
        private void LogOut(object sender, RoutedEventArgs e)
        {
            DataWork.CheckOut(ActiveUser.login, ActiveUser.password);
            Window w = new UserLogin();

            w.Show();
            this.Close();
        }
示例#2
0
 private void Close_Click(object sender, RoutedEventArgs e)
 {
     DataWork.CheckOut(ActiveUser.login, ActiveUser.password);
     ActiveUser.wnDataWork = null;
     this.Close();
 }
示例#3
0
        /* private void Refresh(object sender, RoutedEventArgs e)
         * {
         *   switch (ActiveUser.UserID)
         *   {
         *       case 1:
         *           dgUser1.ItemsSource = DataWork.GetInfoUser1();
         *           break;
         *
         *       case 2:
         *           dgUser2.ItemsSource = DataWork.GetInfoUser2(ActiveUser.UserID);
         *           break;
         *
         *       case 3:
         *           dgUser2.ItemsSource = DataWork.GetInfoUser2(ActiveUser.UserID);
         *           break;
         *       case 5:
         *           dgUser2.ItemsSource = DataWork.GetInfoUser2(ActiveUser.UserID);
         *           break;
         *   }
         * }*/

        private void wMainWindow_Closed(object sender, EventArgs e)
        {
            DataWork.CheckOut(ActiveUser.login, ActiveUser.password);
            ActiveUser.wnDataWork = null;
        }