diff options
author | Halil İbrahim Kalkan <hi_kalkan@yahoo.com> | 2013-04-08 21:44:58 +0300 |
---|---|---|
committer | Halil İbrahim Kalkan <hi_kalkan@yahoo.com> | 2013-04-08 21:44:58 +0300 |
commit | 79953cb56cda204f190ffcd9995b27ebea25e62d (patch) | |
tree | de939755c2e32eaa5fa3e41e21114e1c727ed0a4 /samples/IrcChatSystem/ChatClientApp/ChatClientApplication.xaml.cs | |
parent | 934c543eb6b0bd7173038e45a7dac0241d091da4 (diff) | |
download | scs-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.cs | 26 |
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(); + } + } +} |