Skip to content

Commit

Permalink
Version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qhris committed Aug 2, 2016
1 parent 4cb957f commit beb3bbd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/DiabloSpeech/DiabloSpeech.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5B3DF163-CD50-4BFE-B449-6D5F30765CEA}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DiabloSpeech</RootNamespace>
<AssemblyName>DiabloSpeech</AssemblyName>
Expand Down
6 changes: 3 additions & 3 deletions src/DiabloSpeech/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
ResourceDictionaryLocation.SourceAssembly
)]

[assembly: AssemblyVersion("0.1.1")]
[assembly: AssemblyFileVersion("0.1.1")]
[assembly: AssemblyInformationalVersion("0.1.1")]
[assembly: AssemblyVersion("0.1.2")]
[assembly: AssemblyFileVersion("0.1.2")]
[assembly: AssemblyInformationalVersion("0.1.2")]
6 changes: 3 additions & 3 deletions src/DiabloSpeech/View/ChatBotWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
mc:Ignorable="d"
Title="Diablo Speech" Height="357.333" Width="557.333" Closing="Window_Closing">
<Grid>
<RichTextBox x:Name="messageLog" HorizontalAlignment="Left" Margin="10,10,0,38" Width="400" IsReadOnly="True" VerticalScrollBarVisibility="Visible" FontFamily="Open Sans">
<RichTextBox x:Name="messageLog" Margin="10,10,10,38" IsReadOnly="True" VerticalScrollBarVisibility="Visible" FontFamily="Open Sans">
<RichTextBox.Resources>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="Margin" Value="0"/>
</Style>
</RichTextBox.Resources>
</RichTextBox>
<TextBox x:Name="messageBox" HorizontalAlignment="Left" Margin="10,0,0,10" TextWrapping="Wrap" Width="320" Height="23" VerticalAlignment="Bottom" TabIndex="1" KeyDown="messageBox_KeyDown"/>
<Button x:Name="sendMessageButton" Content="Send" HorizontalAlignment="Left" Margin="335,0,0,10" Width="75" Height="22" VerticalAlignment="Bottom" Click="sendMessageButton_Click"/>
<TextBox x:Name="messageBox" Margin="10,0,90,10" TextWrapping="Wrap" Height="23" VerticalAlignment="Bottom" TabIndex="1" KeyDown="messageBox_KeyDown"/>
<Button x:Name="sendMessageButton" Content="Send" Margin="0,0,10,10" Height="22" VerticalAlignment="Bottom" Click="sendMessageButton_Click" HorizontalAlignment="Right" Width="75"/>

</Grid>
</Window>
11 changes: 9 additions & 2 deletions src/DiabloSpeech/View/ChatBotWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ public ChatBotWindow(TwitchClient client)
// Initialize business logic.
InitializeTwitchClient();
InitializeChatCommands();
SetWindowTitleVersion();
}

void SetWindowTitleVersion()
{
// Set window title.
var assembly = System.Reflection.Assembly.GetEntryAssembly();
var version = assembly.GetName().Version;

// Disable messaging until we joined a room.
MessagingEnabled(false);
Title = $"Diablo Speech {version.Major}.{version.Minor}.{version.Build}";
}

void MessagingEnabled(bool enabled)
Expand Down

0 comments on commit beb3bbd

Please sign in to comment.