Esempio n. 1
0
 public frm_main()
 {
     InitializeComponent();
     lbl_owner.Visible    = false;
     lbl_desc.Visible     = false;
     lbl_cpu.Visible      = false;
     lbl_mobo.Visible     = false;
     lbl_ram.Visible      = false;
     lbl_video.Visible    = false;
     lbl_psu.Visible      = false;
     lbl_hdd.Visible      = false;
     lbl_os.Visible       = false;
     lbl_backup.Visible   = false;
     lbl_bak_id.Visible   = false;
     lbl_bak_date.Visible = false;
     try
     {
         Form_Methods.FillCombo(comboBox1);
         Form_Methods.NRSystems(lbl_sys_count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         Form_Methods.CloseDBConnection();
     }
 }
Esempio n. 2
0
 private void btn_reload_Click(object sender, EventArgs e)
 {
     comboBox1.Items.Clear();
     richTextBox1.Clear();
     try
     {
         lbl_owner.Visible    = false;
         lbl_desc.Visible     = false;
         lbl_cpu.Visible      = false;
         lbl_mobo.Visible     = false;
         lbl_ram.Visible      = false;
         lbl_video.Visible    = false;
         lbl_psu.Visible      = false;
         lbl_backup.Visible   = false;
         lbl_bak_id.Visible   = false;
         lbl_bak_date.Visible = false;
         lbl_hdd.Visible      = false;
         lbl_os.Visible       = false;
         Form_Methods.FillCombo(comboBox1);
         Form_Methods.NRSystems(lbl_sys_count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         Form_Methods.CloseDBConnection();
     }
 }