blob: 26a2b211ddb429d3a3a66a031769ff723a421820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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();
}
}
}
|