Exemplo n.º 1
0
 public Launcher(string[] args)
 {
     InitializeComponent();
     settings.GetSettings();
     sq = new ServerQuerier();
     ServerInfoListViewAdder silva = new ServerInfoListViewAdder(sq, this);
     try
     {
         sq.SetMasterServer(settings.msAddress, Convert.ToUInt16(settings.msPort));
     }
     catch (Exception exception)
     {
         MSFail = exception.Message;
     }
     sq.StartListening(silva);
     backgroundWorkerQueryServers.RunWorkerAsync();
     foreach (string arg in args)
     {
         if (arg == "-debug")
         {
             debug.Show();
             break;
         }
     }
     RandomBanner();
 }
Exemplo n.º 2
0
        public Launcher(string[] args)
        {
            InitializeComponent();
            settings.GetSettings();
            sq = new ServerQuerier();
            ServerInfoListViewAdder silva = new ServerInfoListViewAdder(sq, this);

            try
            {
                sq.SetMasterServer(settings.msAddress, Convert.ToUInt16(settings.msPort));
            }
            catch (Exception exception)
            {
                MSFail = exception.Message;
            }
            sq.StartListening(silva);
            backgroundWorkerQueryServers.RunWorkerAsync();
            foreach (string arg in args)
            {
                if (arg == "-debug")
                {
                    debug.Show();
                    break;
                }
            }
            RandomBanner();
        }