mirror of https://github.com/2dust/v2rayN
parent
4458fd7541
commit
527362dc9f
|
@ -11,6 +11,10 @@ namespace v2rayN.Views
|
|||
public AddServer2Window(ProfileItem profileItem)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Loaded += Window_Loaded;
|
||||
ViewModel = new AddServer2ViewModel(profileItem, this);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using ReactiveUI;
|
||||
using System.Net.Security;
|
||||
using System.Reactive.Disposables;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
@ -15,6 +16,10 @@ namespace v2rayN.Views
|
|||
public AddServerWindow(ProfileItem profileItem)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Loaded += Window_Loaded;
|
||||
cmbNetwork.SelectionChanged += CmbNetwork_SelectionChanged;
|
||||
|
|
|
@ -14,6 +14,10 @@ namespace v2rayN.Views
|
|||
public DNSSettingWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
_config = LazyConfig.Instance.GetConfig();
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@ namespace v2rayN.Views
|
|||
public GlobalHotkeySettingWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
_config = LazyConfig.Instance.GetConfig();
|
||||
_config.globalHotkeys ??= new List<KeyEventItem>();
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
Title="v2rayN"
|
||||
Width="900"
|
||||
Height="700"
|
||||
MinWidth="900"
|
||||
MinHeight="700"
|
||||
x:TypeArguments="vms:MainWindowViewModel"
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{x:Static conv:MaterialDesignFonts.MyFont}"
|
||||
|
|
|
@ -25,6 +25,10 @@ namespace v2rayN.Views
|
|||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
_config = LazyConfig.Instance.GetConfig();
|
||||
|
||||
App.Current.SessionEnding += Current_SessionEnding;
|
||||
|
|
|
@ -18,6 +18,10 @@ namespace v2rayN.Views
|
|||
public OptionSettingWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
_config = LazyConfig.Instance.GetConfig();
|
||||
|
||||
|
|
|
@ -12,6 +12,10 @@ namespace v2rayN.Views
|
|||
public RoutingRuleDetailsWindow(RulesItem rulesItem)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Loaded += Window_Loaded;
|
||||
clbProtocol.SelectionChanged += ClbProtocol_SelectionChanged;
|
||||
|
|
|
@ -13,6 +13,10 @@ namespace v2rayN.Views
|
|||
public RoutingRuleSettingWindow(RoutingItem routingItem)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Loaded += Window_Loaded;
|
||||
this.PreviewKeyDown += RoutingRuleSettingWindow_PreviewKeyDown;
|
||||
|
|
|
@ -12,6 +12,10 @@ namespace v2rayN.Views
|
|||
public RoutingSettingWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Closing += RoutingSettingWindow_Closing;
|
||||
this.PreviewKeyDown += RoutingSettingWindow_PreviewKeyDown;
|
||||
|
|
|
@ -11,6 +11,10 @@ namespace v2rayN.Views
|
|||
public SubEditWindow(SubItem subItem)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
this.Loaded += Window_Loaded;
|
||||
|
||||
|
|
|
@ -13,6 +13,10 @@ namespace v2rayN.Views
|
|||
public SubSettingWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.MaxWidth = SystemParameters.WorkArea.Width;
|
||||
this.MaxHeight = SystemParameters.WorkArea.Height;
|
||||
|
||||
this.Owner = Application.Current.MainWindow;
|
||||
|
||||
ViewModel = new SubSettingViewModel(this);
|
||||
|
|
Loading…
Reference in New Issue