public static bool RegGetReminderVel(Mainfrm open3) { try { RegistryKey myKey2 = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\GreenFingers\AppSettings", false); { String value = (String)myKey2.GetValue("ReminderSet"); if (value == "0") { open3.btnActivate.Visible = true; return(true); } if (value == "1") { open3.btnDeactivate.Visible = true; DatePopupClass open = new DatePopupClass(); open.Datechecker(); return(true); } } } catch (Exception e) { ShowErrorMessages(e, "GetReminderVel Error!"); return(false); } return(true); }
public void btnActivate_Click(object sender, EventArgs e) { LoadSetRegistryClass.RegActavate(this); DatePopupClass open = new DatePopupClass(); open.Datechecker(); }
public static bool RegGetReminderVel(Mainfrm open3) { try { RegistryKey myKey2 = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\GreenFingers\AppSettings", false); { String value = (String)myKey2.GetValue("ReminderSet"); if (value == "0") { open3.btnActivate.Visible = true; return true; } if (value == "1") { open3.btnDeactivate.Visible = true; DatePopupClass open = new DatePopupClass(); open.Datechecker(); return true; } } } catch (Exception e) { ShowErrorMessages(e, "GetReminderVel Error!"); return false; } return true; }