diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-04 11:58:10 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-04 11:58:10 +0300 |
| commit | 0b804fd5df94b66c6be119660581ab3978d31d59 (patch) | |
| tree | 54aa895584710e980f5f0c0701824586f1aaf3d1 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views | |
| parent | 3e11b6594d73eb3e7eda93920ecef942f4c301c4 (diff) | |
| download | Tango-0b804fd5df94b66c6be119660581ab3978d31d59.tar.gz Tango-0b804fd5df94b66c6be119660581ab3978d31d59.zip | |
Fixed issue with machine studio update service version sorting.
Added about dialog to machine studio with version information.
Fixed issue with Stubs UI installer.
Stubs UI v3.1
Machine Studio v1.0.0.10
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views')
3 files changed, 98 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml new file mode 100644 index 000000000..2ac0df9de --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml @@ -0,0 +1,63 @@ +<UserControl x:Class="Tango.MachineStudio.UI.Views.AboutView" + 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:vm="clr-namespace:Tango.MachineStudio.UI.ViewModels" + xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI" + xmlns:local="clr-namespace:Tango.MachineStudio.UI.Views" + mc:Ignorable="d" + d:DesignHeight="300" d:DesignWidth="300" Width="600" Height="700" Background="White" d:DataContext="{d:DesignInstance Type=vm:AboutViewVM, IsDesignTimeCreatable=False}" DataContext="{Binding AboutViewVM, Source={StaticResource Locator}}"> + <Grid> + <Grid> + <Grid.RowDefinitions> + <RowDefinition Height="80"/> + <RowDefinition Height="1*"/> + </Grid.RowDefinitions> + + <Grid> + <StackPanel Orientation="Horizontal" Margin="10"> + <Image Source="/Images/machine-trans.png" RenderOptions.BitmapScalingMode="Fant"></Image> + <TextBlock Text="About" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="20"></TextBlock> + </StackPanel> + </Grid> + + <Grid Grid.Row="1" Margin="10 0 10 10"> + <Grid.RowDefinitions> + <RowDefinition Height="1*"/> + <RowDefinition Height="50"/> + </Grid.RowDefinitions> + + <Grid Margin="0 10 0 0"> + <DockPanel> + <TextBlock DockPanel.Dock="Top"> + This dialog contains information about your current version of Machine Studio. + </TextBlock> + + + + <controls:TableGrid RowHeight="30" Height="120" DockPanel.Dock="Top"> + <TextBlock FontWeight="SemiBold">Machine Studio:</TextBlock> + <TextBlock><Run>v</Run><Run Text="{Binding ApplicationManager.Version,Mode=OneWay}"></Run></TextBlock> + <TextBlock FontWeight="SemiBold">Core Libraries:</TextBlock> + <TextBlock><Run>v</Run><Run Text="{Binding ApplicationManager.CoreVersion,Mode=OneWay}"></Run></TextBlock> + <TextBlock FontWeight="SemiBold">Build Date:</TextBlock> + <TextBlock Text="{Binding ApplicationManager.BuildDate,Mode=OneWay}"></TextBlock> + </controls:TableGrid> + + <DockPanel> + <TextBlock DockPanel.Dock="Top" FontWeight="SemiBold">Change Log:</TextBlock> + <TextBox Margin="0 5 0 0" Style="{x:Null}" IsReadOnly="True" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" TextWrapping="Wrap" AcceptsReturn="True" Foreground="DimGray" Text="{Binding ApplicationManager.ChangeLog,Mode=OneWay}"> + + </TextBox> + </DockPanel> + </DockPanel> + </Grid> + + <Grid Grid.Row="1"> + <Button HorizontalAlignment="Right" Width="140" Command="{Binding OKCommand}">CLOSE</Button> + </Grid> + </Grid> + </Grid> + </Grid> +</UserControl> diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml.cs new file mode 100644 index 000000000..79a7f3e2c --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.UI.Views +{ + /// <summary> + /// Interaction logic for AboutView.xaml + /// </summary> + public partial class AboutView : UserControl + { + public AboutView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml index 8417c70c8..e36a03ffe 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml @@ -202,6 +202,13 @@ </Button> <Separator/> </StackPanel> + <Button Command="{Binding AboutCommand}"> + <StackPanel Orientation="Horizontal"> + <materialDesign:PackIcon Kind="Information" Width="24" Height="24" /> + <TextBlock Margin="5 0 0 0" VerticalAlignment="Center">About</TextBlock> + </StackPanel> + </Button> + <Separator/> <Button Command="{Binding ExitCommand}"> <StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="CloseCircleOutline" Width="24" Height="24" /> |
