summaryrefslogtreecommitdiffstats
path: root/samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs
diff options
context:
space:
mode:
authorHalil İbrahim Kalkan <hi_kalkan@yahoo.com>2013-04-08 21:44:58 +0300
committerHalil İbrahim Kalkan <hi_kalkan@yahoo.com>2013-04-08 21:44:58 +0300
commit79953cb56cda204f190ffcd9995b27ebea25e62d (patch)
treede939755c2e32eaa5fa3e41e21114e1c727ed0a4 /samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs
parent934c543eb6b0bd7173038e45a7dac0241d091da4 (diff)
downloadscs-79953cb56cda204f190ffcd9995b27ebea25e62d.zip
scs-79953cb56cda204f190ffcd9995b27ebea25e62d.tar.gz
scs-79953cb56cda204f190ffcd9995b27ebea25e62d.tar.bz2
Adding to github
Adding to github
Diffstat (limited to 'samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs')
-rw-r--r--samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs b/samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs
new file mode 100644
index 0000000..26a2b21
--- /dev/null
+++ b/samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs
@@ -0,0 +1,26 @@
+using System.Windows;
+using Hik.Samples.Scs.IrcChat.Client;
+using Hik.Samples.Scs.IrcChat.Windows;
+
+namespace Hik.Samples.Scs.IrcChat
+{
+ /// <summary>
+ /// Interaction logic for App.xaml
+ /// </summary>
+ public partial class ChatClientApplication : Application
+ {
+ public ChatClientApplication()
+ {
+ Startup += AppStartUp;
+ }
+
+ static void AppStartUp(object sender, StartupEventArgs e)
+ {
+ var controller = new ChatController();
+ var mainWindow = new MainWindow(controller);
+ controller.ChatRoom = mainWindow;
+ controller.LoginForm = mainWindow;
+ mainWindow.Show();
+ }
+ }
+}