aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/TangoWebClientv2CodeFile.cs
blob: 421655d0788559510b8a5e6d30cad72f0655e9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    public class TangoWebClientv2CodeFile : Class
    {
        public class ControllerAction
        {
            public String Name { get; set; }
            public String Request { get; set; }
            public String Response { get; set; }
        }

        public String Namespace { get; set; }
        public String ControllerName { get; set; }
        public String LoginRequest { get; set; }
        public String LoginResponse { get; set; }

        public List<ControllerAction> Actions { get; set; }

        public TangoWebClientv2CodeFile()
        {
            Actions = new List<ControllerAction>();
        }
    }
}
/MahApps.Metro;component/Styles/Fonts.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> <!-- Accent and AppTheme setting --> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/VS/Colors.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/VS/Styles.xaml" /> <ResourceDictionary Source="Resources.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources> <Grid Background="{StaticResource IdeLightBackgroundBrush}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="40"/> <RowDefinition Height="41*"/> </Grid.RowDefinitions> <Grid> <Grid.RowDefinitions> <RowDefinition Height="20"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid> <Menu> <MenuItem Header="File"></MenuItem> <MenuItem Header="Edit"></MenuItem> <MenuItem Header="View"></MenuItem> <MenuItem Header="Project"></MenuItem> <MenuItem Header="Build"></MenuItem> <MenuItem Header="Debug"></MenuItem> <MenuItem Header="Tools"></MenuItem> <MenuItem Header="Theme"></MenuItem> </Menu> </Grid> </Grid> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" MinWidth="100" /> <ColumnDefinition Width="5"/> <ColumnDefinition Width="300" MinWidth="20" /> </Grid.ColumnDefinitions> <Grid> <Grid.RowDefinitions> <RowDefinition Height="1*" MinHeight="100" /> <RowDefinition Height="5"/> <RowDefinition Height="100" MinHeight="20" /> </Grid.RowDefinitions> <Grid> <TabControl ItemsSource="{Binding OpenProjectItems}" SelectedItem="{Binding SelectedProjectItem}"> <TabControl.ItemContainerStyle> <Style BasedOn="{StaticResource MetroTabItem}" TargetType="{x:Type TabItem}"> <Setter Property="Background" Value="{StaticResource IdeLightBackgroundBrush}"></Setter> <Setter Property="mahapps:ControlsHelper.HeaderFontSize" Value="12"></Setter> <Setter Property="HeaderTemplate"> <Setter.Value> <DataTemplate> <Border> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Name}" Foreground="Gainsboro" VerticalAlignment="Center"></TextBlock> <Button Command="{Binding ElementName=control,Path=DataContext.CloseProjectItemCommand}" CommandParameter="{Binding}" Margin="5 0 0 0" Cursor="Hand" Width="24" Height="24" VerticalAlignment="Center" Style="{DynamicResource MetroCircleButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0"> <StackPanel Orientation="Horizontal"> <fa:ImageAwesome Width="10" Height="10" Icon="WindowClose" Foreground="Gainsboro"></fa:ImageAwesome> </StackPanel> </Button> </StackPanel> </Border> </DataTemplate> </Setter.Value> </Setter> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},Path=IsSelected}" Value="True"> <Setter Property="Background" Value="#007ACC"></Setter> </DataTrigger> </Style.Triggers> </Style> </TabControl.ItemContainerStyle> <TabControl.ContentTemplate> <DataTemplate> <ContentPresenter Content="{Binding View}" /> </DataTemplate> </TabControl.ContentTemplate> </TabControl> </Grid> <GridSplitter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Background="{StaticResource IdeLightBackgroundBrush}" /> <Grid Grid.Row="2" Background="{StaticResource IdeMidBackgroundBrush}"> </Grid> </Grid> <GridSplitter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Background="{StaticResource IdeLightBackgroundBrush}" /> <Grid Grid.Column="2"> <GroupBox Margin="0" Header="Solution Explorer" BorderThickness="1" BorderBrush="{StaticResource IdeBorderBrush}" mahapps:ControlsHelper.ContentCharacterCasing="Normal"> <TreeView ItemsSource="{Binding Solution.Projects}" Background="{StaticResource IdeMidBackgroundBrush}" > <TreeView.ItemContainerStyle> <Style TargetType="TreeViewItem" BasedOn="{StaticResource {x:Type TreeViewItem}}"> <Setter Property="Background" Value="Transparent"></Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="Transparent"></Setter> </Trigger> </Style.Triggers> </Style> </TreeView.ItemContainerStyle> <TreeView.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding Path=Items}" DataType="{x:Type local:IProject}"> <controls:SolutionItemControl SolutionItem="{Binding}" OpenCommand="{Binding ElementName=control,Path=DataContext.OpenProjectItemCommand}" /> </HierarchicalDataTemplate> </TreeView.ItemTemplate> </TreeView> </GroupBox> </Grid> </Grid> </Grid> </Grid> </UserControl>