Skip to content
Browse files

CL-318

  • Loading branch information...
1 parent aebe13d commit ef7aa608583e4d8fd79fa68c2434c0085b0e36d8 Petro committed Dec 12, 2012
View
2 silverlight/3.3.0.1/PubnubSilverlight.Example/Views/CodeExampleView.xaml
@@ -19,7 +19,7 @@
<StackPanel Orientation="Horizontal">
<TextBlock Text="Channel Name : " VerticalAlignment="Center" FontFamily="Verdana" FontSize="14" />
- <TextBox Text="my_channel" VerticalAlignment="Center" Foreground="Gray" Width="150" FontFamily="Verdana" FontSize="12" TextChanged="TextBox_TextChanged" />
+ <TextBox x:Name="ChannelInput" Text="my_channel" VerticalAlignment="Center" Foreground="Gray" Width="150" FontFamily="Verdana" FontSize="12" />
</StackPanel>
View
16 silverlight/3.3.0.1/PubnubSilverlight.Example/Views/CodeExampleView.xaml.cs
@@ -30,7 +30,13 @@ public partial class CodeExampleView : Page
static public Pubnub pubnub;
static public bool deliveryStatus = false;
- static public string channel = "";
+ public string channel
+ {
+ get
+ {
+ return string.IsNullOrEmpty(ChannelInput.Text) ? string.Empty : ChannelInput.Text;
+ }
+ }
static public bool enableSSL = false;
static public string cipheryKey = string.Empty;
@@ -40,7 +46,7 @@ public partial class CodeExampleView : Page
public CodeExampleView()
{
InitializeComponent();
-
+
Console.Container = ConsoleContainer;
MessageBoxResult result = MessageBox.Show("Enable SSL?", "Settings", MessageBoxButton.OKCancel);
@@ -221,12 +227,6 @@ static void ParseObject(object result, int loop)
}
}
-
- private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
- {
- TextBox chanelTextBox = sender as TextBox;
- channel = chanelTextBox.Text;
- }
}
#region "Console View"

0 comments on commit ef7aa60

Please sign in to comment.
Something went wrong with that request. Please try again.