| | |
| | | Application.Current.MainWindow = this; |
| | | SystemSetting.SystemSettingChanged += SystemSetting_SystemSettingChanged; |
| | | |
| | | Task.Run(() => |
| | | if (Environment.Is64BitProcess) |
| | | { |
| | | ResourceListener.Instance.RefreshEvent += this.resourceUI.Refresh; |
| | | ResourceListener.Instance.Start(); |
| | | }); |
| | | Task.Run(() => |
| | | { |
| | | ResourceListener.Instance.RefreshEvent += this.resourceUI.Refresh; |
| | | ResourceListener.Instance.Start(); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | this.Minimize(); |
| | | break; |
| | | case "maxBtn": |
| | | this.Maximize(); |
| | | //var state = this.WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized; |
| | | //SetCurrentValue(Window.WindowStateProperty, state); |
| | | if (this.WindowState == WindowState.Maximized) |
| | | { |
| | | this.Normalmize(); |
| | | } |
| | | else |
| | | { |
| | | this.Maximize(); |
| | | } |
| | | break; |
| | | case "closeBtn": |
| | | this.Closed -= Logout_PanuonWindow_Closed; |