private void LogOut(object sender, RoutedEventArgs e) { DataWork.CheckOut(ActiveUser.login, ActiveUser.password); Window w = new UserLogin(); w.Show(); this.Close(); }
private void Close_Click(object sender, RoutedEventArgs e) { DataWork.CheckOut(ActiveUser.login, ActiveUser.password); ActiveUser.wnDataWork = null; this.Close(); }
/* 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; }