Beispiel #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            string          Server = "";
            ClickOnceParams prms   = new ClickOnceParams();

            if (prms.dictParams.ContainsKey("SERV") == true)
            {
                Server = prms.dictParams["SERV"];
            }
            if (string.IsNullOrEmpty(Server))
            {
                MessageBox.Show("Server missing from parameters");
                this.Close();
                return;
            }

            TeenProxy.ClientProxy.TargetServer = Server;
            lblGuestList.TabStop = false;
            ClearForm();
            initializeNightlyRecordsToolStripMenuItem.Enabled = false;

            AutoPopulateAutoFill();
            DoAllPopulation();
        }
Beispiel #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            string Server = "";
            ClickOnceParams prms = new ClickOnceParams();
            if (prms.dictParams.ContainsKey("SERV") == true) Server = prms.dictParams["SERV"];
            if (string.IsNullOrEmpty(Server))
            {
                MessageBox.Show("Server missing from parameters");
                this.Close();
                return;
            }

            TeenProxy.ClientProxy.TargetServer = Server;
            lblGuestList.TabStop = false;
            ClearForm();
            initializeNightlyRecordsToolStripMenuItem.Enabled = false;

            AutoPopulateAutoFill();
            DoAllPopulation();
        }