public void minimize() { if (UrlBoxRow >= 1) { if (CheckForInternetConnection() == true) { access_data dd = new access_data(); int jj = dd.GetNoficationInterval(); if (jj != 0) { myTimer.Tick += new EventHandler(myEvent); myTimer.Interval = jj * 60 * 1000; myTimer.Start(); } } else { MessageBox.Show("No internet connection available,please check your internet connection or troubleshoot your internet connection", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Empty url list.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void setting_Load(object sender, EventArgs e) { access_data d = new access_data(); string checkboxvalue = d.CheckUpdateNotificationThroughEmail(); if (checkboxvalue == "yes") { metroCheckBox1.Checked = true; } if (checkboxvalue == "no") { metroCheckBox1.Checked = false; } access_data dd = new access_data(); int jj = dd.GetNoficationInterval(); metroTextBox4.Text = jj.ToString(); }