Example #1
0
        public void ClientConnected(EventArguments args)
        {
            ClientArguments customArgs = args as ClientArguments;
            IAPIClient client = customArgs.Client;

            APIServer.Log.Info("Client connected!");

            HelloWorldPage page = new HelloWorldPage(client);
            client.SetMainWindowPage(page);
        }
Example #2
0
 public static void FireEvent(Event ev, EventArguments args)
 {
     if (EventXDelegate.ContainsKey(ev))
     {
         List<Delegate> delegates = EventXDelegate[ev];
         foreach (Delegate d in delegates.ToList())
         {
             d.DynamicInvoke(new object[] { args });
         }
     }
 }
 public void ClientConnected(EventArguments args)
 {
     ClientArguments customArgs = args as ClientArguments;
     LoginPage page = new LoginPage(customArgs.Client);
     customArgs.Client.SetMainWindowPage(page);
 }
 public void Save(EventArguments args)
 {
     XMLDatabase.Save<Fixture>(Fixtures, "fixtures");
     XMLDatabase.Save<Prediction>(Predictions, "predictions");
 }