コード例 #1
0
        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);
        }
コード例 #2
0
        public void btnActivate_Click(object sender, EventArgs e)
        {
            LoadSetRegistryClass.RegActavate(this);
            DatePopupClass open = new DatePopupClass();

            open.Datechecker();
        }
コード例 #3
0
        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;
        }
コード例 #4
0
ファイル: Mainfrm.cs プロジェクト: mattu08/Green-Fingers
 public void btnActivate_Click(object sender, EventArgs e)
 {
     LoadSetRegistryClass.RegActavate(this);
     DatePopupClass open = new DatePopupClass();
     open.Datechecker();
 }