Last-Modified: Thu, 30 Jul 2026 15:51:48 GMT Expires: Sun, 27 Jul 2036 15:51:48 GMT app.png « Images « Tango.MachineStudio.Common « MachineStudio « Visual_Studio « Software - Tango - Twine softwares
aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Images/app.png
blob: 9798ed866c8d24b279e674c4d56eb6e228dad594 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 20 00 00 00 20 08 03 00 00 00 44 a4 8a .PNG........IHDR.............D..
0020 c6 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 09 70 48 59 73 00 00 00 dd 00 00 00 dd .....sBIT.....O.....pHYs........
0040 01 70 53 a2 07 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 61 .pS......tEXtSoftware.www.inksca
0060 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 02 01 50 4c 54 45 ff ff ff ff db 6d ff df 80 ff df 75 ff d6 pe.org..<.....PLTE.....m.....u..
0080 7a ff dd 77 f7 7c 54 ff dc 7a 50 55 5a f7 7c 56 ff da 7a f8 83 57 ff dc 7a ff dc 79 ff db 7a 5c z..w.|T..zPUZ.|V..z..W..z..y..z\
00a0 5f 5c ff db 79 7e 79 63 fb b6 6c ff db 78 f2 81 4b ff db 79 f8 ad 61 ff eb b4 ff db 79 ff db 79 _\..y~yc..l..x..K..y..a.....y..y
00c0 ff db 79 a0 92 68 f1 77 4e 35 3f 49 36 40 4a 37 40 49 37 41 4b 38 41 4b 3a 44 4e 3b 45 4f 3c 45 ..y..h.wN5?I6@J7@I7AK8AK:DN;EO<E
00e0 4b 3c 46 50 41 4a 54 47 45 4a 47 47 4c 47 49 50 47 4a 51 47 4c 54 47 4f 59 4b 54 5d 50 58 61 51 K<FPAJTGEJGGLGIPGJQGLTGOYKT]PXaQ
0100 59 62 53 48 4b 61 69 71 63 64 5e 63 6a 72 65 6c 74 68 6f 77 6d 73 7b 73 79 81 74 72 61 78 74 61 YbSHKaiqcd^cjrelthowms{sy.traxta
0120 79 70 73 7e 5d 58 80 7a 63 83 5e 58 8c 8b 8e 91 96 9c 98 9c a2 9a 9f a4 9b 8f 67 9e 90 62 9e a2 yps~]X.zc.^X..............g..b..
0140 a5 a0 93 68 a3 92 71 a3 a2 a5 a4 66 57 a8 67 57 a8 99 6a a9 a8 ab ab ae b3 ac b0 b4 b3 b7 bb b7 ...h..q....fW.gW..j.............
0160 b2 9f bb a7 6c bd b4 98 bd c0 c3 be aa 6e c1 6e 56 c4 ae 6f d0 be 8a d1 b8 71 d5 ba 70 d6 73 56 ....l........n.nV..o.....q..p.sV
0180 d7 87 70 d8 da dc df c3 73 e0 e1 e3 e1 e2 e4 e3 e3 e3 e6 c7 73 e6 e8 e9 e7 e8 ea e9 78 55 e9 8e ..p.....s...........s.......xU..
01a0 72 e9 ea eb ed 8f 73 ef dc a8 f2 85 66 f3 85 4d f3 e3 b9 f3 e5 be f4 d2 76 f5 d3 77 f6 f7 f7 f7 r.....s.....f..M........v..w....
01c0 7b 55 f7 7d 57 f7 7d 58 f7 7f 5a f7 80 5c f8 87 65 f8 8a 68 f8 8b 69 f8 8c 6a f8 8d 6c f8 8f 6e {U.}W.}X..Z..\..e..h..i..j..l..n
01e0 f8 90 70 f9 94 76 f9 96 78 f9 96 79 f9 98 7a f9 9a 7d f9 9c 7f f9 9d 80 f9 ae 62 f9 d7 78 f9 f9 ..p..v..x..y..z..}........b..x..
0200 f9 fa 9c 61 fa a9 90 fa ad 95 fa e9 bb fa fa fa fb b7 a2 fb bd aa fb c1 b0 fb f6 ea fb fb fb fb ...a............................
0220 fc fc fc b2 69 fc b7 6b fc c8 b8 fd d6 ca fd d9 79 fd da 79 fe 9d 70 fe a9 6f fe bf 73 fe d2 76 ....i..k........y..y..p..o..s..v
0240 fe da 79 fe eb e5 fe fe fe ff a6 71 ff a9 8d ff bf 75 ff cc bb ff cd 77 ff d1 78 ff d6 78 ff db ..y........q.....u.....w..x..x..
0260 79 ff eb b3 ff ed bc ff ee c0 ff f8 e6 ff f9 eb ff ff ff b6 fd a7 04 00 00 00 1d 74 52 4e 53 00 y..........................tRNS.
0280 07 08 18 19 2d 40 49 5d 80 84 8c 97 98 c1 c7 c8 d4 da da db e3 e7 ee f2 f3 f5 f9 f9 15 00 ed d4 ....-@I]........................
02a0 00 00 02 03 49 44 41 54 38 8d 63 60 80 03 46 76 5e 3e 61 49 49 61 3e 5e 76 46 06 4c c0 c2 23 b1 ....IDAT8.c`..Fv^>aIIa>^vF.L..#.
02c0 04 0e 24 78 58 d0 a4 99 b8 a4 96 e4 24 c0 41 ce 12 29 2e 26 64 79 66 81 25 4b 9c 55 64 e1 40 c5 ..$xX.......$.A..).&dyf.%K.Ud.@.
02e0 79 c9 12 01 66 84 3c ab e8 92 25 b9 60 79 25 65 65 25 b0 8a dc 25 4b 44 59 e1 fa 81 f2 4b 12 c0 y...f.<...%.`y%ee%...%KDY....K..
0300 5a e5 14 14 e4 c0 8c 04 a0 90 28 d4 0c 26 01 90 bb 12 e4 0d 90 80 3c 48 c1 12 01 88 3b b8 c0 0e Z.........(..&........<H....;...
0320 4f 50 cf 47 02 ea 09 53 41 82 5c 60 ff 49 a1 28 28 68 07 01 bb 74 b7 89 13 27 ce 94 02 f9 96 67 OP.G...SA.\`.I.((h...t...'.....g
0340 56 38 10 c4 00 15 94 57 54 54 94 c1 4c 80 04 08 0f 30 fc 24 9a 75 80 c0 06 a8 a0 b6 b4 b4 b4 1a V8.....WTT..L....0.$.u..........
0360 55 81 04 23 03 fb 12 88 82 08 8d e4 7a a0 4c 1d aa 82 25 ec 0c bc 50 05 01 9a 91 10 05 9e d6 40 U..#........z.L...%...P........@
0380 a0 6d e9 0a 51 c0 cb c0 b7 04 6e 05 48 77 4d be ad 8e 8e 1e 50 c0 02 a2 80 8f 41 78 c9 14 2f 20 .m..Q.....n.HwM.....P.....Ax../.
03a0 08 05 2a a8 6f 68 68 a8 03 29 70 30 83 2b 10 66 90 84 5a 06 0f 07 5b 1d 30 80 2a 90 c4 54 10 e2 ..*.ohh..)p0.+
<UserControl x:Class="Tango.MachineStudio.UsersAndRoles.Views.OrganizationManagementView"
             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:global="clr-namespace:Tango.MachineStudio.UsersAndRoles"
             xmlns:vm="clr-namespace:Tango.MachineStudio.UsersAndRoles.ViewModels"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:mahApps="http://metro.mahapps.com/winfx/xaml/controls"
              xmlns:providers="clr-namespace:Tango.MachineStudio.UsersAndRoles.Providers"
             xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
             xmlns:local="clr-namespace:Tango.MachineStudio.UsersAndRoles.Views"
              xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
             mc:Ignorable="d" 
             d:DesignHeight="1080" d:DesignWidth="1920" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}" Background="Transparent">

    <UserControl.Resources>
        <converters:DateTimeUTCToShortDateTimeConverter x:Key="DateTimeUTCToShortDateTimeConverter" />
        <providers:PlacesProvider x:Key="PlacesProvider" />
    </UserControl.Resources>

    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="400"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Border Background="{StaticResource TransparentBackgroundBrush420}" BorderBrush="{StaticResource GrayBrush}" BorderThickness="0 0 1 0">
                <Grid Margin="10 20 10 10">
                    <StackPanel HorizontalAlignment="Center">

                        <StackPanel Orientation="Horizontal" Margin="-30 0 0 30">
                            <Image Source="../Images/organization.png" Width="58" />
                            <TextBlock Margin="10 0 0 0" FontSize="40" VerticalAlignment="Center" Text="{Binding ManagedOrganization.Name}"></TextBlock>
                        </StackPanel>

                        <TextBlock FontSize="14" FontWeight="SemiBold">ADDRESS</TextBlock>

                        <Border BorderBrush="Gray" BorderThickness="1" Width="300" HorizontalAlignment="Left" Padding="5" Margin="0 10 0 0" Background="{StaticResource TransparentBackgroundBrush420}" Height="300">
                            <DockPanel>
                                <DockPanel DockPanel.Dock="Top">
                                    <materialDesign:PackIcon Kind="Magnify" DockPanel.Dock="Left" Width="24" Height="24" />
                                    <autoComplete:AutoCompleteTextBox x:Name="address_auto" Margin="5 0 0 0" Delay="500" DisplayMember="DisplayName" SelectedItem="{Binding SelectedOrganizationPlace,Mode=OneWayToSource}" Provider="{StaticResource PlacesProvider}" materialDesign:HintAssist.Hint="Find address" />
                                </DockPanel>
                                <local:AddressView DataContext="{Binding ManagedOrganization.Address}" />
                            </DockPanel>
                        </Border>

                        <TextBlock FontSize="14" FontWeight="SemiBold" Margin="0 40 0 0">CONTACT</TextBlock>

                        <Border BorderBrush="Gray" BorderThickness="1" Width="300" HorizontalAlignment="Left" Padding="5" Margin="0 10 0 0" Background="{StaticResource TransparentBackgroundBrush420}" Height="250">
                            <local:ContactView DataContext="{Binding ManagedOrganization.Contact}" />
                        </Border>

                        <Button  Margin="0 40 0 0" MinWidth="160" Height="50" Command="{Binding SaveOrganizationCommand}" Background="Gray" BorderBrush="Gray">
                            <StackPanel Orientation="Horizontal">
                                <materialDesign:PackIcon Kind="ContentSave" Width="20" Height="20" />
                                <TextBlock Margin="5 0 0 0" FontSize="16">SAVE</TextBlock>
                            </StackPanel>
                        </Button>

                    </StackPanel>
                </Grid>
            </Border>

            <Grid Grid.Column="1">
                <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="30" FontStyle="Italic" Margin="150 40">
                    <Run Text="{Binding ManagedOrganization.Name}"></Run> <Run Text="Users"></Run>
                </TextBlock>
                <DockPanel Margin="100" MaxWidth="1200">
                    <Grid DockPanel.Dock="Top">
                        <StackPanel>
                            <Image Source="../Images/users.png" Width="300" Height="250" />
                            <Button Margin="0 -210 0 0" MinWidth="160" Height="50" Command="{Binding BackToOrganizationsCommand}" HorizontalAlignment="Left">
                                <StackPanel Orientation="Horizontal">
                                    <materialDesign:PackIcon Kind="KeyboardBackspace" Width="20" Height="20" />
                                    <TextBlock Margin="5 0 0 0" FontSize="16">BACK</TextBlock>
                                </StackPanel>
                            </Button>
                        </StackPanel>
                    </Grid>
                    <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom"  VerticalAlignment="Center" Margin="0 10 0 5" HorizontalAlignment="Left">
                        <CheckBox Name="cbShowDeleted" IsChecked="{Binding ShowDeleted}" VerticalAlignment="Center"></CheckBox>
                        <TextBlock Margin="10 0 0 0" VerticalAlignment="Center" Text="Show deleted accounts" FontSize="16" FontWeight="Normal"></TextBlock>
                    </StackPanel>
                    <Grid DockPanel.Dock="Bottom">
                        <StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0 0 0 0">
                            <Button Margin="0 0 10 0" MinWidth="160" Height="50" Background="{StaticResource RedBrush300}" BorderBrush="{StaticResource RedBrush300}" Command="{Binding RemoveUserCommand}">
                                <StackPanel Orientation="Horizontal">
                                    <materialDesign:PackIcon Kind="Delete" Width="20" Height="20" />
                                    <TextBlock Margin="5 0 0 0" FontSize="16">DELETE</TextBlock>
                                </StackPanel>
                            </Button>
                            <Button Margin="0 0 10 0" MinWidth="160" Height="50" Background="{StaticResource GreenBrush300}" BorderBrush="{StaticResource GreenBrush300}" Command="{Binding AddUserCommand}">
                                <StackPanel Orientation="Horizontal">
                                    <materialDesign:PackIcon Kind="Plus" Width="20" Height="20" />
                                    <TextBlock Margin="5 0 0 0" FontSize="16">NEW USER</TextBlock>
                                </StackPanel>
                            </Button>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                            <Button Margin="50 0 0 0" MinWidth="200" Height="60" Command="{Binding ManageUserCommand}">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontSize="18" VerticalAlignment="Center">MANAGE</TextBlock>
                                    <materialDesign:PackIcon Margin="5 0 0 0" Kind="ChevronRight" Width="30" Height="30" />
                                </StackPanel>
                            </Button>
                        </StackPanel>
                    </Grid>
                    <Grid>
                        <DataGrid Margin="0 0 0 10" ItemsSource="{Binding ManagedOrganization.Users}" SelectedItem="{Binding SelectedUser}"  d:DataContext="{d:DesignInstance Type=entities:User, IsDesignTimeCreatable=False}" BorderBrush="{StaticResource borderBrush}" BorderThickness="1" Background="{StaticResource TransparentBackgroundBrush}" AlternatingRowBackground="{StaticResource Transparent200}" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" IsReadOnly="True">
                            <DataGrid.CellStyle>
                                <Style TargetType="DataGridCell" BasedOn="{StaticResource {x:Type DataGridCell}}">
                                    <Setter Property="BorderThickness" Value="0"/>
                                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                                    <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
                                    <Setter Property="Visibility" Value="Visible" />
                                    <Style.Triggers>
                                        <MultiDataTrigger>
                                            <MultiDataTrigger.Conditions>
                                                <Condition Binding="{Binding ElementName=cbShowDeleted, Path=IsChecked}" Value="False"/>
                                                <Condition Binding="{Binding Deleted}" Value="True"/>
                                            </MultiDataTrigger.Conditions>
                                            <MultiDataTrigger.Setters>
                                                <Setter Property="Visibility" Value="Collapsed" />
                                            </MultiDataTrigger.Setters>
                                        </MultiDataTrigger>
                                        <MultiDataTrigger>
                                            <MultiDataTrigger.Conditions>
                                                <Condition Binding="{Binding ElementName=cbShowDeleted, Path=IsChecked}" Value="true"/>
                                                <Condition Binding="{Binding Deleted}" Value="True"/>
                                            </MultiDataTrigger.Conditions>
                                            <MultiDataTrigger.Setters>
                                                <Setter Property="Visibility" Value="Visible" />
                                                <Setter Property="Foreground" Value="{StaticResource RedBrush100}" />
                                            </MultiDataTrigger.Setters>
                                        </MultiDataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </DataGrid.CellStyle>
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="LAST UPDATED" Binding="{Binding LastUpdated,Converter={StaticResource DateTimeUTCToShortDateTimeConverter}}" Width="1*" />
                                <DataGridTextColumn Header="NAME" Binding="{Binding Contact.FullName}" Width="1*" />
                                <DataGridTextColumn Header="LOGIN EMAIL" Binding="{Binding Email}" Width="1*" />
                                <DataGridTextColumn Header="CONTACT EMAIL" Binding="{Binding Contact.Email}" Width="1*" />
                                <DataGridTextColumn Header="ADDRESS" Binding="{Binding Address.AddressString}" Width="1*" />
                                <DataGridTemplateColumn Header="ROLES" Width="1*">
                                    <DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Roles[0].Name}" TextTrimming="CharacterEllipsis">
                                                <TextBlock.ToolTip>
                                                    <ItemsControl ItemsSource="{Binding Roles}">
                                                        <ItemsControl.ItemTemplate>
                                                            <DataTemplate>
                                                                <StackPanel Orientation="Horizontal" Margin="2">
                                                                    <materialDesign:PackIcon Kind="AccountKey" Width="16" Height="16" />
                                                                    <TextBlock Margin="5 0 0 0" Text="{Binding Name}"></TextBlock>
                                                                </StackPanel>
                                                            </DataTemplate>
                                                        </ItemsControl.ItemTemplate>
                                                    </ItemsControl>
                                                </TextBlock.ToolTip>
                                            </TextBlock>
                                        </DataTemplate>
                                    </DataGridTemplateColumn.CellTemplate>
                                </DataGridTemplateColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </DockPanel>
            </Grid>
        </Grid>
    </Grid>
</UserControl>