private void ����ToolStripMenuItem_Click(object sender, EventArgs e) { Config_Form cf = new Config_Form(); cf.ShowDialog(); }
private void timer2_Tick(object sender, EventArgs e) { timer1.Stop(); string info=""; if (Convert.ToInt32(LabFlash.Tag) == 0) { info = "���ڼ���Ӧ�ó���..."; } else if (Convert.ToInt32(LabFlash.Tag) == 1) { info = "��ȡWindowsϵͳ��Ϣ..."; } else if (Convert.ToInt32(LabFlash.Tag) == 2) { info = "���ڻ�� Microsoft Visual Studio ʵ��..."; } else if (Convert.ToInt32(LabFlash.Tag) == 3) { info = "�ؼ������������..."; } else if (Convert.ToInt32(LabFlash.Tag) == 4) { info = "���ڼ��� Microsoft .NET Framework ���..."; } else if (Convert.ToInt32(LabFlash.Tag) > 4 && Convert.ToInt32(LabFlash.Tag) < 8) { info = "���ڴ������ݿ�����..."; } else if (Convert.ToInt32(LabFlash.Tag) < 12) { if (configreaded == 0) { info = "������Ϣ����ʧ�ܣ������ر�..."; } else { if (databaseconnected == 1) { info = "�������..."; } else { info = "���������ݿ�����..."; } } } else { if (configreaded == 0) { Application.Exit(); } else if (configreaded == 1 && databaseconnected == 0) { timer2.Stop(); timer3.Stop(); timer4.Stop(); timer5.Stop(); timer6.Stop(); timer7.Stop(); timer8.Stop(); timer9.Stop(); if (MessageBox.Show("���ݿ�����ʧ�ܣ��Ƿ�༭�����ַ�����", "��ʾ", MessageBoxButtons.OKCancel) == DialogResult.OK) { Config_Form cd = new Config_Form(); cd.ShowDialog(); } Application.Exit(); } } LabFlash.Text = info; LabFlash.Tag = Convert.ToString(Convert.ToInt32(LabFlash.Tag) + 1); }
private void toolStripButton7_Click(object sender, EventArgs e) { Config_Form cf = new Config_Form(); cf.Show(); }