aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-09-01 17:46:47 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-09-01 17:46:47 +0300
commit565afd35baab8b2846ebc80a6802a375b3fd876e (patch)
treefa478fa30e6b4bed5b629ef307d35e743bacf0d5 /Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views
parentb3ffc4c7ba0b7f9bb34c878ae186d380ac41a07f (diff)
downloadTango-565afd35baab8b2846ebc80a6802a375b3fd876e.tar.gz
Tango-565afd35baab8b2846ebc80a6802a375b3fd876e.zip
Added bug reporting module to PPC !!
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml94
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml.cs28
2 files changed, 122 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml
new file mode 100644
index 000000000..563cd49a6
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml
@@ -0,0 +1,94 @@
+<UserControl x:Class="Tango.PPC.BugReporting.Views.MainView"
+ 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.PPC.BugReporting.ViewModels"
+ xmlns:tfs="clr-namespace:Tango.TFS;assembly=Tango.TFS"
+ xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard;assembly=Tango.Touch"
+ xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
+ xmlns:global="clr-namespace:Tango.PPC.BugReporting"
+ xmlns:local="clr-namespace:Tango.PPC.BugReporting.Views"
+ mc:Ignorable="d"
+ d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
+
+ <Grid Background="{StaticResource TangoMidBackgroundBrush}" IsEnabled="{Binding IsFree}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto"/>
+ <RowDefinition Height="1*"/>
+ </Grid.RowDefinitions>
+
+ <Border Padding="20" Background="{StaticResource TangoPrimaryBackgroundBrush}" BorderThickness="0 0 0 1" BorderBrush="{StaticResource TangoDividerBrush}">
+ <Border.Effect>
+ <DropShadowEffect Color="Silver" ShadowDepth="0" BlurRadius="20" Opacity="1" />
+ </Border.Effect>
+ <TextBlock VerticalAlignment="Center" FontSize="{StaticResource TangoHeaderFontSize}" FontWeight="SemiBold">Report Issue</TextBlock>
+ </Border>
+
+ <Grid Grid.Row="1">
+
+ <DockPanel>
+ <touch:TouchDropShadowBorder DockPanel.Dock="Bottom" Margin="20" Padding="20">
+ <DockPanel>
+ <touch:TouchButton Command="{Binding SubmitCommand}" DockPanel.Dock="Right" Style="{StaticResource TangoHollowButton}" Width="200" Height="60">SUBMIT</touch:TouchButton>
+ <Grid Visibility="{Binding IsBusy,Converter={StaticResource BooleanToVisibilityConverter}}">
+ <StackPanel Orientation="Horizontal">
+ <touch:TouchBusyIndicator Width="45" Height="45" IsIndeterminate="{Binding IsBusy}"></touch:TouchBusyIndicator>
+ <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Foreground="{StaticResource TangoPrimaryAccentBrush}">Submitting report..</TextBlock>
+ </StackPanel>
+ </Grid>
+ </DockPanel>
+ </touch:TouchDropShadowBorder>
+
+ <StackPanel>
+ <touch:TouchDropShadowBorder Margin="20" Padding="20">
+ <StackPanel>
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+ <touch:TouchIcon Icon="PencilCircle" Width="30"></touch:TouchIcon>
+ <TextBlock FontWeight="Medium" Margin="20 0 0 0" FontSize="{StaticResource TangoExpanderHeaderFontSize}">Details</TextBlock>
+ </StackPanel>
+
+ <StackPanel Margin="0 40 0 0">
+ <DockPanel>
+ <touch:TouchIcon VerticalAlignment="Bottom" Icon="Pencil" Width="22" Height="22" />
+ <touch:TouchTextBox FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Title" Text="{Binding Title}" KeyboardAction="Next"></touch:TouchTextBox>
+ </DockPanel>
+
+ <DockPanel Margin="0 40 0 0">
+ <touch:TouchIcon VerticalAlignment="Bottom" Icon="UserTieSolid" Width="22" Height="22" />
+ <touch:TouchAutoComplete FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Created By" ItemsSource="{Binding Members}" AutoCompleteProvider="{Binding TeamMembersProvider}" SelectedItem="{Binding FromMember,Mode=TwoWay}" KeyboardAction="Next"></touch:TouchAutoComplete>
+ </DockPanel>
+
+ <DockPanel Margin="0 40 0 0">
+ <touch:TouchIcon VerticalAlignment="Bottom" Icon="UserTagSolid" Width="22" Height="22" />
+ <touch:TouchAutoComplete FontSize="{StaticResource TangoTitleFontSize}" Margin="10 0 0 0" Watermark="Assigned To" ItemsSource="{Binding Members}" AutoCompleteProvider="{Binding TeamMembersProvider}" SelectedItem="{Binding ToMember,Mode=TwoWay}" KeyboardAction="Next"></touch:TouchAutoComplete>
+ </DockPanel>
+
+ <DockPanel Margin="0 40 0 0">
+ <touch:TouchIcon VerticalAlignment="Bottom" Icon="CommentAlertOutline" Width="22" Height="22" />
+ <touch:TouchComboBox FontSize="{StaticResource TangoTitleFontSize}" ItemsSource="{Binding Source={x:Type tfs:Severity},Converter={StaticResource EnumToItemsSourceConverter},ConverterParameter='false'}" SelectedItem="{Binding Severity}" DisplayMemberPath="DisplayName" ValuePath="Value" Margin="10 0 0 0" Watermark="Severity" ></touch:TouchComboBox>
+ </DockPanel>
+ </StackPanel>
+ </StackPanel>
+ </touch:TouchDropShadowBorder>
+
+ <touch:TouchDropShadowBorder Margin="20" Padding="20">
+ <StackPanel>
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
+ <touch:TouchIcon Icon="Repeat" Width="30"></touch:TouchIcon>
+ <TextBlock FontWeight="Medium" Margin="20 0 0 0" FontSize="{StaticResource TangoExpanderHeaderFontSize}">Steps To Reproduce</TextBlock>
+ </StackPanel>
+
+ <StackPanel Margin="0 40 0 0">
+ <DockPanel>
+ <touch:TouchIcon VerticalAlignment="Top" Icon="ChevronRight" Width="24" />
+ <TextBox Margin="10 0 0 0" Text="{Binding Steps}" FocusVisualStyle="{x:Null}" BorderBrush="{StaticResource TangoDividerBrush}" Foreground="{StaticResource TangoDarkForegroundBrush}" AcceptsReturn="True" TextWrapping="Wrap" Height="80" Padding="5" keyboard:KeyboardView.Mode="AlphaNumeric" keyboard:KeyboardView.Action="Return" />
+ </DockPanel>
+ </StackPanel>
+ </StackPanel>
+ </touch:TouchDropShadowBorder>
+ </StackPanel>
+ </DockPanel>
+ </Grid>
+ </Grid>
+</UserControl>
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.xaml.cs
new file mode 100644
index 000000000..56342d3c2
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/Views/MainView.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.PPC.BugReporting.Views
+{
+ /// <summary>
+ /// Interaction logic for MainView.xaml
+ /// </summary>
+ public partial class MainView : UserControl
+ {
+ public MainView()
+ {
+ InitializeComponent();
+ }
+ }
+}