Add project files.
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
using HandyControl.Tools.Extension;
|
||||
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.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SafeBagDE70.Admin
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for AdminWindow.xaml
|
||||
/// </summary>
|
||||
public partial class AdminWindow : HandyControl.Controls.Window
|
||||
{
|
||||
LogViewerUC loguc;
|
||||
AdminConfigurationUC configuration;
|
||||
public AdminWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
loguc= new LogViewerUC();
|
||||
configuration = new AdminConfigurationUC();
|
||||
this.MainContentControl.Content = loguc;
|
||||
this.Loaded += AdminWindow_Loaded;
|
||||
}
|
||||
|
||||
private void AdminWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
lblStatus.DataContext = AppData.CDMSTATE;
|
||||
}
|
||||
|
||||
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void UserManagementButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void DashboardButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.MainContentControl.Content = loguc;
|
||||
}
|
||||
|
||||
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ReportsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ConfigurationButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.MainContentControl.Content = configuration;
|
||||
}
|
||||
|
||||
private void btnShutdownApp_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var bResult = MessageBox.Show("LƯU Ý, THAO TÁC NÀY SẼ LÀM MẤT TẤT CẢ DỮ LIỆU ĐANG THAO TÁC. " +
|
||||
"CHỈ THỰC HIỆN KHI KHÔNG CÓ NGƯỜI DÙNG ĐANG THAO TÁC TRÊN MÁY","CẢNH BÁO",MessageBoxButton.OKCancel);
|
||||
if (bResult == MessageBoxResult.OK)
|
||||
{
|
||||
System.Windows.Application.Current.Shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user