added icons and menu items

This commit is contained in:
Daniel Schick 2023-04-12 07:47:33 +02:00
parent ae232ae686
commit d68e92a464
16 changed files with 433 additions and 111 deletions

View File

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:RoleEditor" xmlns:local="clr-namespace:RoleEditor"
mc:Ignorable="d" mc:Ignorable="d"
Title="Bremen calling admin editor" Height="600" Width="800"> Title="Bremen calling admin editor" Height="600" Width="800" Icon="Resources/lock_preferences.ico">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height=".5*" /> <RowDefinition Height=".5*" />
@ -33,7 +33,22 @@
<ColumnDefinition Width=".38*" /> <ColumnDefinition Width=".38*" />
<ColumnDefinition Width=".62*" /> <ColumnDefinition Width=".62*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<ListBox x:Name="listBoxParticipant" Margin="2" Grid.RowSpan="7" SelectionChanged="listBoxParticipant_SelectionChanged" /> <ListBox x:Name="listBoxParticipant" Margin="2" Grid.RowSpan="7" SelectionChanged="listBoxParticipant_SelectionChanged">
<ListBox.ContextMenu>
<ContextMenu>
<MenuItem x:Name="menuItemNewParticipant" Header="New.." Click="menuItemNewParticipant_Click">
<MenuItem.Icon>
<Image Source="Resources/add.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="menuItemDeleteParticipant" Header="Delete" Click="menuItemDeleteParticipant_Click">
<MenuItem.Icon>
<Image Source="Resources/delete2.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<Label Content="Name" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right"/> <Label Content="Name" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right"/>
<Label Content="Street" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right"/> <Label Content="Street" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right"/>
<Label Content="Postal code" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right"/> <Label Content="Postal code" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right"/>
@ -48,7 +63,12 @@
<CheckBox x:Name="checkboxParticipantActive" Grid.Row="4" Grid.Column="2" VerticalAlignment="Center" /> <CheckBox x:Name="checkboxParticipantActive" Grid.Row="4" Grid.Column="2" VerticalAlignment="Center" />
<TextBox x:Name="textBoxParticipantCreated" Grid.Row="5" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" /> <TextBox x:Name="textBoxParticipantCreated" Grid.Row="5" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" />
<TextBox x:Name="textBoxParticipantModified" Grid.Row="6" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" /> <TextBox x:Name="textBoxParticipantModified" Grid.Row="6" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" />
<Button x:Name="buttonParticipantSave" Grid.Row="7" Grid.Column="2" Click="buttonParticipantSave_Click" Margin="2" Content="Save" /> <Button x:Name="buttonParticipantSave" Grid.Row="7" Grid.Column="2" Click="buttonParticipantSave_Click" Margin="2">
<DockPanel>
<Image Source="./Resources/disk_blue.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="16"/>
<TextBlock Text="Save" VerticalAlignment="Center" DockPanel.Dock="Right"/>
</DockPanel>
</Button>
</Grid> </Grid>
</GroupBox> </GroupBox>
<GroupBox Header="User" Margin="2" Grid.Row="1"> <GroupBox Header="User" Margin="2" Grid.Row="1">
@ -70,7 +90,22 @@
<ColumnDefinition Width=".38*" /> <ColumnDefinition Width=".38*" />
<ColumnDefinition Width=".62*" /> <ColumnDefinition Width=".62*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<ListBox x:Name="listBoxUser" Margin="2" Grid.RowSpan="9" SelectionChanged="listBoxUser_SelectionChanged" /> <ListBox x:Name="listBoxUser" Margin="2" Grid.RowSpan="9" SelectionChanged="listBoxUser_SelectionChanged">
<ListBox.ContextMenu>
<ContextMenu>
<MenuItem x:Name="menuItemNewUser" Header="New.." Click="menuItemNewUser_Click">
<MenuItem.Icon>
<Image Source="Resources/add.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="menuItemDeleteUser" Header="Delete" Click="menuItemDeleteUser_Click">
<MenuItem.Icon>
<Image Source="Resources/delete2.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<Label Grid.Row="0" Grid.Column="1" Content="First name" HorizontalAlignment="Right"/> <Label Grid.Row="0" Grid.Column="1" Content="First name" HorizontalAlignment="Right"/>
<Label Grid.Row="1" Grid.Column="1" Content="Last name" HorizontalAlignment="Right"/> <Label Grid.Row="1" Grid.Column="1" Content="Last name" HorizontalAlignment="Right"/>
<Label Grid.Row="2" Grid.Column="1" Content="User name" HorizontalAlignment="Right"/> <Label Grid.Row="2" Grid.Column="1" Content="User name" HorizontalAlignment="Right"/>
@ -86,8 +121,13 @@
<TextBox x:Name="textBoxUserAPIKey" Grid.Row="4" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" /> <TextBox x:Name="textBoxUserAPIKey" Grid.Row="4" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" />
<TextBox x:Name="textBoxUserCreated" Grid.Row="5" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" /> <TextBox x:Name="textBoxUserCreated" Grid.Row="5" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" />
<TextBox x:Name="textBoxUserModified" Grid.Row="6" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" /> <TextBox x:Name="textBoxUserModified" Grid.Row="6" IsReadOnly="True" IsEnabled="False" Grid.Column="2" Margin="2" VerticalContentAlignment="Center" />
<Button x:Name="buttonUserSave" Grid.Row="7" Grid.Column="2" Click="buttonUserSave_Click" Margin="2" Content="Save" /> <Button x:Name="buttonUserSave" Grid.Row="7" Grid.Column="2" Click="buttonUserSave_Click" Margin="2">
<DockPanel>
<Image Source="./Resources/disk_blue.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="16"/>
<TextBlock Text="Save" VerticalAlignment="Center" DockPanel.Dock="Right"/>
</DockPanel>
</Button>
</Grid> </Grid>
</GroupBox> </GroupBox>
<GroupBox Header="Role" Margin="2" Grid.Column="1"> <GroupBox Header="Role" Margin="2" Grid.Column="1">
@ -110,14 +150,38 @@
<Label Content="User roles" Grid.Row="0" Grid.Column="0" /> <Label Content="User roles" Grid.Row="0" Grid.Column="0" />
<Label Content="All roles" Grid.Row="0" Grid.Column="2" /> <Label Content="All roles" Grid.Row="0" Grid.Column="2" />
<ListBox x:Name="listBoxUserRoles" Grid.Row="1" Grid.Column="0" Grid.RowSpan="3" Margin="2" /> <ListBox x:Name="listBoxUserRoles" Grid.Row="1" Grid.Column="0" Grid.RowSpan="3" Margin="2" />
<ListBox x:Name="listBoxRoles" Grid.Row="1" Grid.Column="2" Grid.RowSpan="3" Margin="2" SelectionChanged="listBoxRoles_SelectionChanged"/> <ListBox x:Name="listBoxRoles" Grid.Row="1" Grid.Column="2" Grid.RowSpan="3" Margin="2" SelectionChanged="listBoxRoles_SelectionChanged">
<Button x:Name="buttonAddRole" Margin="2" Content="&lt;" Grid.Row="1" Grid.Column="1" Click="buttonAddRole_Click"/> <ListBox.ContextMenu>
<Button x:Name="buttonRemoveRole" Margin="2" Content="X" Grid.Row="2" Grid.Column="1" Click="buttonRemoveRole_Click" /> <ContextMenu>
<MenuItem x:Name="menuItemNewRole" Header="New.." Click="menuItemNewRole_Click">
<MenuItem.Icon>
<Image Source="Resources/add.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="menuItemDeleteRole" Header="Delete" Click="menuItemDeleteRole_Click">
<MenuItem.Icon>
<Image Source="Resources/delete2.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<Button x:Name="buttonAddRole" Margin="2" Grid.Row="1" Grid.Column="1" Click="buttonAddRole_Click">
<Image Source="./Resources/arrow_left_green.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="22"/>
</Button>
<Button x:Name="buttonRemoveRole" Margin="2" Grid.Row="2" Grid.Column="1" Click="buttonRemoveRole_Click">
<Image Source="./Resources/delete2.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="22"/>
</Button>
<Label Content="Name" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" /> <Label Content="Name" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" />
<Label Content="Descr." Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" /> <Label Content="Descr." Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" />
<TextBox x:Name="textBoxRoleName" Grid.Row="4" Grid.Column="2" Margin="2" /> <TextBox x:Name="textBoxRoleName" Grid.Row="4" Grid.Column="2" Margin="2" />
<TextBox x:Name="textBoxRoleDescription" Grid.Row="5" Grid.Column="2" Grid.RowSpan="2" Margin="2" /> <TextBox x:Name="textBoxRoleDescription" Grid.Row="5" Grid.Column="2" Grid.RowSpan="2" Margin="2" />
<Button x:Name="buttonSaveRole" Grid.Row="7" Grid.Column="2" Margin="2" Content="Save" Click="buttonSaveRole_Click" /> <Button x:Name="buttonSaveRole" Grid.Row="7" Grid.Column="2" Margin="2" Click="buttonSaveRole_Click">
<DockPanel>
<Image Source="./Resources/disk_blue.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="16"/>
<TextBlock Text="Save" VerticalAlignment="Center" DockPanel.Dock="Right"/>
</DockPanel>
</Button>
</Grid> </Grid>
</GroupBox> </GroupBox>
<GroupBox Header="Securable" Margin="2" Grid.Row="1" Grid.Column="1"> <GroupBox Header="Securable" Margin="2" Grid.Row="1" Grid.Column="1">
@ -138,12 +202,36 @@
<Label Grid.Row="0" Grid.Column="0" Content="Role securables" /> <Label Grid.Row="0" Grid.Column="0" Content="Role securables" />
<Label Grid.Row="0" Grid.Column="2" Content="Securables" /> <Label Grid.Row="0" Grid.Column="2" Content="Securables" />
<ListBox x:Name="listBoxRoleSecurables" Grid.Row="1" Grid.Column="0" Grid.RowSpan="3" Margin="2" /> <ListBox x:Name="listBoxRoleSecurables" Grid.Row="1" Grid.Column="0" Grid.RowSpan="3" Margin="2" />
<ListBox x:Name="listBoxSecurables" Grid.Row="1" Grid.Column="2" Grid.RowSpan="3" Margin="2" SelectionChanged="listBoxSecurables_SelectionChanged" /> <ListBox x:Name="listBoxSecurables" Grid.Row="1" Grid.Column="2" Grid.RowSpan="3" Margin="2" SelectionChanged="listBoxSecurables_SelectionChanged">
<Button x:Name="buttonAddSecurable" Margin="2" Content="&lt;" Grid.Row="1" Grid.Column="1" Click="buttonAddSecurable_Click" /> <ListBox.ContextMenu>
<Button x:Name="buttonRemoveSecurable" Margin="2" Content="X" Grid.Row="2" Grid.Column="1" Click="buttonRemoveSecurable_Click" /> <ContextMenu>
<MenuItem x:Name="menuItemNewSecurable" Header="New.." Click="menuItemNewSecurable_Click">
<MenuItem.Icon>
<Image Source="Resources/add.png" />
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="menuItemDeleteSecurable" Header="Delete" Click="menuItemDeleteSecurable_Click">
<MenuItem.Icon>
<Image Source="Resources/delete2.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
<Button x:Name="buttonAddSecurable" Margin="2" Grid.Row="1" Grid.Column="1" Click="buttonAddSecurable_Click">
<Image Source="./Resources/arrow_left_green.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="22"/>
</Button>
<Button x:Name="buttonRemoveSecurable" Margin="2" Grid.Row="2" Grid.Column="1" Click="buttonRemoveSecurable_Click">
<Image Source="./Resources/delete2.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="22"/>
</Button>
<Label Content="Name" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" /> <Label Content="Name" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" />
<TextBox x:Name="textBoxSecurableName" Grid.Row="4" Grid.Column="2" Margin="2" /> <TextBox x:Name="textBoxSecurableName" Grid.Row="4" Grid.Column="2" Margin="2" />
<Button x:Name="buttonSaveSecurable" Grid.Row="5" Grid.Column="2" Margin="2" Content="Save" Click="buttonSaveSecurable_Click" /> <Button x:Name="buttonSaveSecurable" Grid.Row="5" Grid.Column="2" Margin="2" Click="buttonSaveSecurable_Click">
<DockPanel>
<Image Source="./Resources/disk_blue.png" Margin="0,0,5,0" Height="24" DockPanel.Dock="Left" Width="16"/>
<TextBlock Text="Save" VerticalAlignment="Center" DockPanel.Dock="Right"/>
</DockPanel>
</Button>
</Grid> </Grid>
</GroupBox> </GroupBox>
</Grid> </Grid>

View File

@ -90,5 +90,45 @@ namespace RoleEditor
{ {
} }
private void menuItemDeleteParticipant_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemNewParticipant_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemNewUser_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemDeleteUser_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemNewRole_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemDeleteRole_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemNewSecurable_Click(object sender, RoutedEventArgs e)
{
}
private void menuItemDeleteSecurable_Click(object sender, RoutedEventArgs e)
{
}
} }
} }

View File

@ -59,5 +59,115 @@ namespace RoleEditor {
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] about {
get {
object obj = ResourceManager.GetObject("about", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] add {
get {
object obj = ResourceManager.GetObject("add", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] arrow_left_green {
get {
object obj = ResourceManager.GetObject("arrow_left_green", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] businessman {
get {
object obj = ResourceManager.GetObject("businessman", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] delete2 {
get {
object obj = ResourceManager.GetObject("delete2", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] disk_blue {
get {
object obj = ResourceManager.GetObject("disk_blue", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] id_card {
get {
object obj = ResourceManager.GetObject("id_card", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] key1 {
get {
object obj = ResourceManager.GetObject("key1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] key1_add {
get {
object obj = ResourceManager.GetObject("key1_add", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] lock_preferences {
get {
object obj = ResourceManager.GetObject("lock_preferences", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] safe {
get {
object obj = ResourceManager.GetObject("safe", resourceCulture);
return ((byte[])(obj));
}
}
} }
} }

View File

@ -1,101 +1,154 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <data name="about" type="System.Resources.ResXFileRef, System.Windows.Forms">
</xsd:sequence> <value>Resources\about.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> </data>
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <data name="add" type="System.Resources.ResXFileRef, System.Windows.Forms">
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <value>Resources\add.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</xsd:complexType> </data>
</xsd:element> <data name="arrow_left_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
<xsd:element name="resheader"> <value>Resources\arrow_left_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:complexType> </data>
<xsd:sequence> <data name="businessman" type="System.Resources.ResXFileRef, System.Windows.Forms">
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <value>Resources\businessman.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</xsd:sequence> </data>
<xsd:attribute name="name" type="xsd:string" use="required" /> <data name="delete2" type="System.Resources.ResXFileRef, System.Windows.Forms">
</xsd:complexType> <value>Resources\delete2.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</xsd:element> </data>
</xsd:choice> <data name="disk_blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
</xsd:complexType> <value>Resources\disk_blue.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</xsd:element> </data>
</xsd:schema> <data name="id_card" type="System.Resources.ResXFileRef, System.Windows.Forms">
<resheader name="resmimetype"> <value>Resources\id_card.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>text/microsoft-resx</value> </data>
</resheader> <data name="key1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<resheader name="version"> <value>Resources\key1.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>1.3</value> </data>
</resheader> <data name="key1_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
<resheader name="reader"> <value>Resources\key1_add.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data>
</resheader> <data name="lock_preferences" type="System.Resources.ResXFileRef, System.Windows.Forms">
<resheader name="writer"> <value>Resources\lock_preferences.ico;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </data>
</resheader> <data name="safe" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\safe.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 928 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -5,8 +5,39 @@
<TargetFramework>net6.0-windows</TargetFramework> <TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<ApplicationIcon>Resources\lock_preferences.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<None Remove="Resources\about.png" />
<None Remove="Resources\add.png" />
<None Remove="Resources\arrow_left_green.png" />
<None Remove="Resources\businessman.png" />
<None Remove="Resources\delete2.png" />
<None Remove="Resources\disk_blue.png" />
<None Remove="Resources\id_card.png" />
<None Remove="Resources\key1.png" />
<None Remove="Resources\key1_add.png" />
<None Remove="Resources\safe.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources/lock_preferences.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\about.png" />
<Resource Include="Resources\add.png" />
<Resource Include="Resources\arrow_left_green.png" />
<Resource Include="Resources\businessman.png" />
<Resource Include="Resources\delete2.png" />
<Resource Include="Resources\disk_blue.png" />
<Resource Include="Resources\id_card.png" />
<Resource Include="Resources\key1.png" />
<Resource Include="Resources\key1_add.png" />
<Resource Include="Resources\safe.png" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="Resources.Designer.cs"> <Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>