Barsik Kato 2 年 前
コミット
a3ae7d4a83

+ 6 - 1
Session1/App.xaml

@@ -4,6 +4,11 @@
              xmlns:local="clr-namespace:Session1"
              StartupUri="MainWindow.xaml">
     <Application.Resources>
-         
+        <Style TargetType="TextBlock">
+            <Setter Property="FontFamily" Value="Monotype Corsiva"></Setter>
+        </Style>
+        <Style TargetType="Button">
+            <Setter Property="Background" Value="#46B29D"></Setter>
+        </Style>
     </Application.Resources>
 </Application>

BIN
Session1/Images/Приятный шелест.png


+ 10 - 2
Session1/MainWindow.xaml

@@ -5,8 +5,16 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:Session1"
         mc:Ignorable="d"
-        Title="MainWindow" Height="450" Width="650">
+        Title="Приятный шелест" Height="450" Width="650">
     <Grid>
-        <Frame x:Name="MainFrm"></Frame>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="68*"/>
+            <RowDefinition Height="351*"/>
+        </Grid.RowDefinitions>
+        <StackPanel Orientation="Horizontal" >
+            <Image Source="Images/Приятный шелест.png" Height="68" Width="68" HorizontalAlignment="Left"></Image>
+            <TextBlock Text="Приятный шелест" FontSize="58" VerticalAlignment="Center"/>
+        </StackPanel>
+        <Frame x:Name="MainFrm" Grid.Row="1"></Frame>
     </Grid>
 </Window>

+ 1 - 1
Session1/Pages/AgentList.xaml

@@ -48,7 +48,7 @@
             </ComboBox>
         </StackPanel>
         <ListBox x:Name="agentList" Grid.Row="1" ItemTemplate="{DynamicResource lbItem}" SelectionChanged="agentList_SelectionChanged" SelectionMode="Extended" MouseDoubleClick="agentList_MouseDoubleClick"></ListBox>
-        <StackPanel Grid.Row="2" Orientation="Horizontal">
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Background="#C6D7FF">
             <Button x:Name="addAgent" Click="addAgent_Click">Добавить</Button>
             <Button x:Name="changePriority" Visibility="Hidden" Click="ChangePriority_Click">Изменить приоритет на ...</Button>
         </StackPanel>

+ 5 - 0
Session1/Session1.csproj

@@ -34,6 +34,9 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
+  <PropertyGroup>
+    <ApplicationIcon>Приятный шелест.ico</ApplicationIcon>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
       <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
@@ -196,6 +199,8 @@
     <None Include="App.config" />
   </ItemGroup>
   <ItemGroup>
+    <Resource Include="Images\Приятный шелест.png" />
+    <Resource Include="Приятный шелест.ico" />
     <Resource Include="agents\picture.png" />
     <Resource Include="agents\agent_1.png" />
     <Resource Include="agents\agent_10.png" />

BIN
Session1/Приятный шелест.ico