//private void panellogo_Click(object sender, EventArgs e) //{ // countESTABLISHMENT(); // //SHOW CODE FOR COUNT ALL NEW APPLICATION // countNEWAPP(); // //END...... // //SHOW CODE FOR COUNT ALL RENEW APPLICATION // countRENEW(); // //END...... // //SHOW CODE FOR COUNT ALL INSPECTED // countNOTINSPECTED(); // //END...... // //SHOW CODE FOR COUNT ALL INSPECTED // countINSPECTED(); // //END...... // //SHOW DATA FROM LABEL ESTABLISHMENT // showTOTAL_ESTABLISHMENT(); // //END...... // btnREGISTER.Font = new Font("Bahnschrift", 9, FontStyle.Bold); // btnMASTERLIST.Font = new Font("Bahnschrift", 9, FontStyle.Bold); // btnREGISTER.BackColor = Color.FromArgb(39, 55, 70); // btnMASTERLIST.BackColor = Color.FromArgb(39, 55, 70); // Sidepanel1.BackColor = Color.FromArgb(39, 55, 70); // Sidepanel2.BackColor = Color.FromArgb(39, 55, 70); // panel.Controls.Remove(ucREGISTER.Instance); // panel.Controls.Remove(ucMASTERLIST.Instance); //} private void panel8_Click(object sender, EventArgs e) { DialogResult exit = MessageBox.Show("Logout Program?", "Logout Confirmation", MessageBoxButtons.YesNo); if (exit == DialogResult.Yes) { frmLOGIN x = new frmLOGIN(); x.ShowDialog(); } }
private void MainForm_Load(object sender, EventArgs e) { if (state == "nk") { frmLOGIN login = new frmLOGIN(); login.ShowDialog(); } System.Threading.Thread initproc = new System.Threading.Thread(new System.Threading.ThreadStart(initiate)); ucLOADING y = new ucLOADING(); initproc.Start(); //countESTABLISHMENT(); ////SHOW CODE FOR COUNT ALL NEW APPLICATION //countNEWAPP(); ////END...... ////SHOW CODE FOR COUNT ALL RENEW APPLICATION //countRENEW(); ////END...... ////SHOW CODE FOR COUNT ALL INSPECTED //countNOTINSPECTED(); ////END...... ////SHOW CODE FOR COUNT ALL INSPECTED //countINSPECTED(); ////END...... ////SHOW DATA FROM LABEL ESTABLISHMENT //showTOTAL_ESTABLISHMENT(); ////END...... initproc.Abort(); //THIS FOR TIMER time.Text = DateTime.Now.ToLongTimeString(); Timer timez = new Timer(); timez.Interval = 1000; timez.Start(); timez.Tick += new EventHandler(timer); //TIMER CODE END... }