-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#83 the common options now can show as
<different options>
in multi…
…-edit.
- Loading branch information
Showing
43 changed files
with
865 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
PRM.Core/Protocol/BaseClassForm/ProtocolServerWithAddrPortBaseForm.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<baseClassForm:ProtocolServerFormBase x:Class="PRM.Core.Protocol.BaseClassForm.ProtocolServerWithAddrPortBaseForm" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:protocol="clr-namespace:PRM.Core.Protocol" | ||
xmlns:controls="clr-namespace:PRM.Core.Resources.Controls" | ||
xmlns:local="clr-namespace:PRM.Core.Protocol.VNC" | ||
xmlns:passwordEx="clr-namespace:Shawn.Utils" | ||
xmlns:baseClassForm="clr-namespace:PRM.Core.Protocol.BaseClassForm" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance protocol:ProtocolServerWithAddrPortBase}" | ||
d:DesignHeight="1450" d:DesignWidth="800"> | ||
<StackPanel> | ||
<StackPanel.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="pack://application:,,,/PRM.Core;component/Utils/PasswordEx/PasswordBoxEx.xaml"></ResourceDictionary> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</StackPanel.Resources> | ||
|
||
<StackPanel> | ||
|
||
<TextBlock Style="{StaticResource EditorGroupTextBlockTitle}" Text="{DynamicResource server_editor_group_title_connection}"></TextBlock> | ||
|
||
<Grid Style="{StaticResource EditorRowGrid}"> | ||
<StackPanel Orientation="Horizontal"> | ||
<TextBlock Style="{StaticResource EditorRowGridTitle}" Text="{DynamicResource server_editor_connection_address}"></TextBlock> | ||
<Grid Style="{StaticResource EditorRowGridInput}"> | ||
<TextBox Text="{Binding Address,UpdateSourceTrigger=PropertyChanged}" | ||
Style="{StaticResource TextBoxWithPlaceHolder}" | ||
Tag="e.g. 192.168.0.101"></TextBox> | ||
</Grid> | ||
<TextBlock Style="{StaticResource EditorRowGridTitle}" Width="60" Text="{DynamicResource server_editor_connection_port}"></TextBlock> | ||
<Grid Style="{StaticResource EditorRowGridInput}"> | ||
<TextBox Width="50" Text="{Binding Port,UpdateSourceTrigger=PropertyChanged,ValidatesOnExceptions=True,NotifyOnValidationError=True}" | ||
HorizontalAlignment="Left" | ||
InputMethod.IsInputMethodEnabled="False" | ||
InputScope="Number" | ||
></TextBox> | ||
</Grid> | ||
</StackPanel> | ||
</Grid> | ||
|
||
<Grid Name="GridPwd"> | ||
<Grid.Style> | ||
<Style TargetType="Grid" BasedOn="{StaticResource EditorRowGrid}"> | ||
<Style.Triggers> | ||
<DataTrigger Binding="{Binding ElementName=CbUsePrivateKey,Path= IsChecked}" Value="True"> | ||
<Setter Property="Visibility" Value="Collapsed"></Setter> | ||
<Setter Property="IsEnabled" Value="False"></Setter> | ||
</DataTrigger> | ||
</Style.Triggers> | ||
</Style> | ||
</Grid.Style> | ||
</Grid> | ||
</StackPanel> | ||
</StackPanel> | ||
</baseClassForm:ProtocolServerFormBase> |
13 changes: 13 additions & 0 deletions
13
PRM.Core/Protocol/BaseClassForm/ProtocolServerWithAddrPortBaseForm.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace PRM.Core.Protocol.BaseClassForm | ||
{ | ||
public partial class ProtocolServerWithAddrPortBaseForm : ProtocolServerFormBase | ||
{ | ||
public readonly ProtocolServerBase Vm; | ||
public ProtocolServerWithAddrPortBaseForm(ProtocolServerBase vm) : base(vm) | ||
{ | ||
InitializeComponent(); | ||
Vm = vm; | ||
DataContext = vm; | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
PRM.Core/Protocol/BaseClassForm/ProtocolServerWithAddrPortUserPwdBaseForm.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<baseClassForm:ProtocolServerFormBase x:Class="PRM.Core.Protocol.BaseClassForm.ProtocolServerWithAddrPortUserPwdBaseForm" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:protocol="clr-namespace:PRM.Core.Protocol" | ||
xmlns:controls="clr-namespace:PRM.Core.Resources.Controls" | ||
xmlns:local="clr-namespace:PRM.Core.Protocol.VNC" | ||
xmlns:passwordEx="clr-namespace:Shawn.Utils" | ||
xmlns:baseClassForm="clr-namespace:PRM.Core.Protocol.BaseClassForm" | ||
mc:Ignorable="d" | ||
d:DataContext="{d:DesignInstance protocol:ProtocolServerWithAddrPortUserPwdBase}" | ||
d:DesignHeight="1450" d:DesignWidth="800"> | ||
<StackPanel> | ||
<StackPanel.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="pack://application:,,,/PRM.Core;component/Utils/PasswordEx/PasswordBoxEx.xaml"></ResourceDictionary> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</StackPanel.Resources> | ||
|
||
<StackPanel> | ||
|
||
<TextBlock Style="{StaticResource EditorGroupTextBlockTitle}" Text="{DynamicResource server_editor_group_title_connection}"></TextBlock> | ||
|
||
<Grid Style="{StaticResource EditorRowGrid}"> | ||
<StackPanel Orientation="Horizontal"> | ||
<TextBlock Style="{StaticResource EditorRowGridTitle}" Text="{DynamicResource server_editor_connection_address}"></TextBlock> | ||
<Grid Style="{StaticResource EditorRowGridInput}"> | ||
<TextBox Text="{Binding Address,UpdateSourceTrigger=PropertyChanged}" | ||
Style="{StaticResource TextBoxWithPlaceHolder}" | ||
Tag="e.g. 192.168.0.101"></TextBox> | ||
</Grid> | ||
<TextBlock Style="{StaticResource EditorRowGridTitle}" Width="60" Text="{DynamicResource server_editor_connection_port}"></TextBlock> | ||
<Grid Style="{StaticResource EditorRowGridInput}"> | ||
<!--TODO needs a number only text box --> | ||
<TextBox MinWidth="50" Text="{Binding Port,UpdateSourceTrigger=PropertyChanged,ValidatesOnExceptions=True,NotifyOnValidationError=True}" | ||
HorizontalAlignment="Left" | ||
InputMethod.IsInputMethodEnabled="False" | ||
InputScope="Number" | ||
></TextBox> | ||
</Grid> | ||
</StackPanel> | ||
</Grid> | ||
|
||
<Grid Name="GridPwd"> | ||
<Grid.Style> | ||
<Style TargetType="Grid" BasedOn="{StaticResource EditorRowGrid}"> | ||
<Style.Triggers> | ||
<DataTrigger Binding="{Binding ElementName=CbUsePrivateKey,Path= IsChecked}" Value="True"> | ||
<Setter Property="Visibility" Value="Collapsed"></Setter> | ||
<Setter Property="IsEnabled" Value="False"></Setter> | ||
</DataTrigger> | ||
</Style.Triggers> | ||
</Style> | ||
</Grid.Style> | ||
<StackPanel Orientation="Horizontal"> | ||
<TextBlock Style="{StaticResource EditorRowGridTitle}" Text="{DynamicResource server_editor_connection_password}"></TextBlock> | ||
<Grid Style="{StaticResource EditorRowGridInput}"> | ||
<PasswordBox passwordEx:PasswordBoxEx.Password="{Binding Password,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" | ||
Style="{StaticResource PasswordBoxEx}" /> | ||
</Grid> | ||
</StackPanel> | ||
</Grid> | ||
</StackPanel> | ||
</StackPanel> | ||
</baseClassForm:ProtocolServerFormBase> |
13 changes: 13 additions & 0 deletions
13
PRM.Core/Protocol/BaseClassForm/ProtocolServerWithAddrPortUserPwdBaseForm.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace PRM.Core.Protocol.BaseClassForm | ||
{ | ||
public partial class ProtocolServerWithAddrPortUserPwdBaseForm : ProtocolServerFormBase | ||
{ | ||
public readonly ProtocolServerBase Vm; | ||
public ProtocolServerWithAddrPortUserPwdBaseForm(ProtocolServerBase vm) : base(vm) | ||
{ | ||
InitializeComponent(); | ||
Vm = vm; | ||
DataContext = vm; | ||
} | ||
} | ||
} |
Oops, something went wrong.