Exemple #1
0
        private void Main_Load(object sender, EventArgs e)
        {
            // Point to where the auto updater XML file is located
            AutoUpdater.Start("http://www.xpshosting.com/sw/update/update.xml");

            string checkvalue     = ConfigurationManager.AppSettings["qamk_check"];
            string checkvalue1    = ConfigurationManager.AppSettings["Gymea_Check"];
            string checkstitching = ConfigurationManager.AppSettings["Stitching"];

            // First Time Startup Check
            string firsttime = ConfigurationManager.AppSettings["First_Time"];

            if (firsttime == "0")
            {
                DialogResult result = MessageBox.Show("Please go through the First Time Setup Menu", "First Time Setup",
                                                      MessageBoxButtons.OK, MessageBoxIcon.Information);
                defaultsettings frm = new defaultsettings();
                frm.ShowDialog();
            }

            // Initialize Drop Box
            comboBox1.Items.Add("Aspen Services");
            comboBox1.Items.Add("Borrego Computers");
            if (checkvalue == "1")
            {
                comboBox1.Items.Add("Moby Computers");
            }
            else if (checkvalue == "0")
            {
                comboBox1.Items.Add("Moby Computers - RIT");
            }
            else if (checkvalue1 == "1")
            {
                comboBox1.Items.Add("Gymea Computers");
            }
            comboBox1.Items.Add("Xitron Rip Computers");

            // Stitching
            //if (checkstitching == "True")
            //{
            //    label2.Visible = true;
            //    StitchingStripMenuItem1.Visible = true;
            //    stitchingStatus();
            //}
            //else if (checkstitching == "False")
            //{
            //    label2.Visible = false;
            //    StitchingStripMenuItem1.Visible = false;
            //}
            StitchingStatus();
            Timer timer = new Timer();

            timer.Interval = (10 * 1000); // 10 secs
            timer.Tick    += new EventHandler(Timer_Tick);
            timer.Start();
        }
Exemple #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            defaultsettings frm = new defaultsettings();

            frm.ShowDialog();
        }
Exemple #3
0
        private void TestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            defaultsettings frm = new defaultsettings();

            frm.ShowDialog();
        }