Mercurial > silverbladetech
comparison Messaging/Server/UI/MainWindow.xaml @ 27:96fdf58e05b4
Server working with sockets and rabbitmq
author | adminsh@apollo |
---|---|
date | Wed, 21 Mar 2012 19:00:59 +0000 |
parents | 045dac571339 |
children | 9919ee227c93 |
comparison
equal
deleted
inserted
replaced
26:045dac571339 | 27:96fdf58e05b4 |
---|---|
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 xmlns:c="clr-namespace:Common.Controls;assembly=Common" | 4 xmlns:c="clr-namespace:Common.Controls;assembly=Common" |
5 xmlns:converters="clr-namespace:Server.Converters" | 5 xmlns:converters="clr-namespace:Server.Converters" |
6 xmlns:metro="http://schemas.codeplex.com/elysium/theme" | 6 xmlns:metro="http://schemas.codeplex.com/elysium/theme" |
7 xmlns:Xaml="clr-namespace:Common.Xaml;assembly=Common" | |
7 Title="Messaging Server" | 8 Title="Messaging Server" |
8 Width="700" | 9 Width="700" |
9 Height="475" | 10 Height="475" |
10 MinWidth="700" | 11 MinWidth="700" |
11 MinHeight="475" | 12 MinHeight="475" |
38 IsThreeState="False" /> | 39 IsThreeState="False" /> |
39 | 40 |
40 <ToggleButton Grid.Row="0" | 41 <ToggleButton Grid.Row="0" |
41 Grid.Column="1" | 42 Grid.Column="1" |
42 Margin="10,10,10,0" | 43 Margin="10,10,10,0" |
43 Content="{Binding SocketEndPoint.IsListening, | 44 Content="{Binding RabbitEndPoint.IsListening, |
44 Converter={converters:ToggleButtonToTextConverter}}" | 45 Converter={converters:ToggleButtonToTextConverter}}" |
45 IsChecked="{Binding SocketEndPoint.IsListening}" | 46 IsChecked="{Binding RabbitEndPoint.IsListening}" |
46 IsEnabled="True" /> | 47 IsEnabled="True" /> |
47 | 48 |
48 <ToggleButton Grid.Row="0" | 49 <ToggleButton Grid.Row="0" |
49 Grid.Column="2" | 50 Grid.Column="2" |
50 Margin="10,10,10,0" | 51 Margin="10,10,10,0" |
51 Content="{Binding SocketEndPoint.IsListening, | 52 Content="{Binding RabbitProtoEndPoint.IsListening, |
52 Converter={converters:ToggleButtonToTextConverter}}" | 53 Converter={converters:ToggleButtonToTextConverter}}" |
53 IsChecked="{Binding SocketEndPoint.IsListening}" | 54 IsChecked="{Binding RabbitProtoEndPoint.IsListening}" |
54 IsEnabled="True" /> | 55 IsEnabled="True" /> |
55 | 56 |
56 <c:MessageTile Grid.Row="1" | 57 <c:MessageTile Grid.Row="1" |
57 Grid.Column="0" | 58 Grid.Column="0" |
58 Background="{StaticResource MetroPurpleBrush}" | 59 Background="{StaticResource MetroPurpleBrush}" |
59 DisplayCount="{Binding SocketEndPoint.DisplayCount, Mode= TwoWay, UpdateSourceTrigger=PropertyChanged}" | 60 DisplayCount="{Binding SocketEndPoint.DisplayCount, |
61 Mode=TwoWay, | |
62 UpdateSourceTrigger=PropertyChanged}" | |
60 DisplayIcon="{StaticResource Mail}" | 63 DisplayIcon="{StaticResource Mail}" |
61 DisplayText="{Binding SocketEndPoint.DisplayText}" | 64 DisplayText="{Binding SocketEndPoint.DisplayText}" |
62 Foreground="White" | 65 Foreground="White" |
63 ToolTip="{Binding SocketEndPoint.ToolTip}" /> | 66 ToolTip="{Binding SocketEndPoint.ToolTip}" /> |
64 | 67 |
65 <c:MessageTile Grid.Row="1" | 68 <c:MessageTile Grid.Row="1" |
66 Grid.Column="1" | 69 Grid.Column="1" |
67 Background="{StaticResource MetroGreenBrush}" | 70 Background="{StaticResource MetroGreenBrush}" |
68 DisplayCount="{Binding SocketEndPoint.DisplayCount}" | 71 DisplayCount="{Binding RabbitEndPoint.DisplayCount}" |
69 DisplayIcon="{StaticResource Mail}" | 72 DisplayIcon="{StaticResource Mail}" |
70 DisplayText="{Binding DisplayText}" | 73 DisplayText="{Binding RabbitEndPoint.DisplayText}" |
71 Foreground="White" | 74 Foreground="White" |
72 ToolTip="{Binding SocketEndPoint.ToolTip}" /> | 75 ToolTip="{Binding RabbitEndPoint.ToolTip}" /> |
73 | 76 |
74 <c:MessageTile Grid.Row="1" | 77 <c:MessageTile Grid.Row="1" |
75 Grid.Column="2" | 78 Grid.Column="2" |
76 Background="{StaticResource MetroOrangeBrush}" | 79 Background="{StaticResource MetroOrangeBrush}" |
77 DisplayCount="{Binding SocketEndPoint.DisplayCount}" | 80 DisplayCount="{Binding RabbitProtoEndPoint.DisplayCount}" |
78 DisplayIcon="{StaticResource Mail}" | 81 DisplayIcon="{StaticResource Mail}" |
79 DisplayText="{Binding SocketEndPoint.DisplayText}" | 82 DisplayText="{Binding RabbitProtoEndPoint.DisplayText}" |
80 Foreground="White" | 83 Foreground="White" |
81 ToolTip="{Binding SocketEndPoint.ToolTip}" /> | 84 ToolTip="{Binding RabbitProtoEndPoint.ToolTip}" /> |
82 | 85 <ScrollViewer Grid.Row="2" |
83 <TextBlock Grid.Row="2" | 86 Grid.Column="0" |
84 Grid.Column="0" | 87 Xaml:XamlHelper.AutoScroll="{Binding SocketEndPoint.IsLogChanged}"> |
85 Margin="10" | 88 <TextBlock Margin="10" |
86 Background="{StaticResource MetroGrayBrush}" | 89 Background="{StaticResource MetroGrayBrush}" |
87 Padding="10" | 90 Padding="10" |
88 Text="{Binding SocketEndPoint.DisplayLog}" | 91 Text="{Binding SocketEndPoint.DisplayLog}" |
89 TextWrapping="Wrap" /> | 92 TextWrapping="Wrap" /> |
90 | 93 </ScrollViewer> |
91 <TextBlock Grid.Row="2" | 94 <ScrollViewer Grid.Row="2" |
92 Grid.Column="1" | 95 Grid.Column="1" |
93 Margin="10" | 96 Xaml:XamlHelper.AutoScroll="{Binding RabbitEndPoint.IsLogChanged}"> |
94 Background="{StaticResource MetroGrayBrush}" | 97 <TextBlock Margin="10" |
95 Padding="10" | 98 Background="{StaticResource MetroGrayBrush}" |
96 Text="{Binding SocketEndPoint.DisplayLog}" | 99 Padding="10" |
97 TextWrapping="WrapWithOverflow" /> | 100 Text="{Binding RabbitEndPoint.DisplayLog}" |
98 | 101 TextWrapping="WrapWithOverflow" /> |
99 <TextBlock Grid.Row="2" | 102 </ScrollViewer> |
100 Grid.Column="2" | 103 <ScrollViewer Grid.Row="2" |
101 Margin="10" | 104 Grid.Column="2" |
102 Background="{StaticResource MetroGrayBrush}" | 105 Xaml:XamlHelper.AutoScroll="{Binding RabbitProtoEndPoint.IsLogChanged}"> |
103 Padding="10" | 106 <TextBlock Grid.Row="2" |
104 Text="{Binding SocketEndPoint.DisplayLog}" | 107 Grid.Column="2" |
105 TextWrapping="WrapWithOverflow" /> | 108 Margin="10" |
106 | 109 Background="{StaticResource MetroGrayBrush}" |
110 Padding="10" | |
111 Text="{Binding RabbitProtoEndPoint.DisplayLog}" | |
112 TextWrapping="WrapWithOverflow" /> | |
113 </ScrollViewer> | |
107 <metro:ToggleSwitch Grid.Row="3" | 114 <metro:ToggleSwitch Grid.Row="3" |
108 Grid.Column="0" | 115 Grid.Column="0" |
109 Width="80" | 116 Width="80" |
110 Height="50" | 117 Height="50" |
111 Margin="10" | 118 Margin="10" |