コード例 #1
0
ファイル: IrcBot.cs プロジェクト: wargamer/EquiChat
 public IrcBot(Action<Action> pSynchronousInvoker, Controller pController)
 {
     synchronousInvoker = pSynchronousInvoker;
     gs = GameScanner.getInstance();
     gu = new GameUpdate(gs_GameLaunched);
     gs.GameLaunched += gu;
     ctrl = pController;
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: wargamer/EquiChat
        public MainWindow()
        {
            InitializeComponent();
            controller = new Controller();
            bot = new IrcBot(a => this.Dispatcher.Invoke(a), controller);
            chat.DataContext = bot;

            playersBox.ItemsSource = controller.Players;
            connected = false;
            lastMessage = "";
            chat.VerticalContentAlignment = VerticalAlignment.Bottom;
        }
コード例 #3
0
ファイル: debug.cs プロジェクト: wargamer/EquiChat
 public static void init(Controller ctrl)
 {
     controller = ctrl;
     addSomePlayers();
 }