Esempio n. 1
0
 public static void UpdateRemaindPasswrodByName(string string_0)
 {
     if (!string.IsNullOrEmpty(PropertyUtil.GetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_0)).Replace("-", ""))))
     {
         PropertyUtil.SetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_0)).Replace("-", ""), "");
     }
 }
Esempio n. 2
0
        public static void ChangeRemaindUserName(string string_0, string string_1)
        {
            string str = PropertyUtil.GetValue(string_0);

            if (!string.IsNullOrEmpty(str))
            {
                PropertyUtil.SetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_1)).Replace("-", ""), str);
                PropertyUtil.SetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_0)).Replace("-", ""), "");
            }
        }
Esempio n. 3
0
 public static void UpdateRemaindPasswrodByName(string string_0, string string_1)
 {
     if (!string.IsNullOrEmpty(PropertyUtil.GetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_0)).Replace("-", ""))))
     {
         string[] strArray = string_1.Split(new char[] { '-' });
         if (strArray.Length == 2)
         {
             strArray[0] = string_1;
             PropertyUtil.SetValue("Login_" + BitConverter.ToString(ToolUtil.GetBytes(string_0)).Replace("-", ""), strArray[0] + "-" + strArray[1]);
         }
     }
 }
Esempio n. 4
0
 public static void SetUpFonts()
 {
     try
     {
         string str            = "OCRAEXT_0.TTF";
         string str2           = "OCRAEXT_0";
         string sourceFileName = Path.Combine(PropertyUtil.GetValue("MAIN_PATH"), string.Format(@"Config\Fonts\{0}", str));
         string path           = Path.Combine(Path.Combine(Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.System).TrimEnd(new char[] { '\\' })), "Fonts"), str);
         if (!File.Exists(path))
         {
             File.Copy(sourceFileName, path);
             AddFontResource(path);
             SendMessage(0xffff, 0x1d, 0, 0);
             WriteProfileString("fonts", str2 + "(TrueType)", str);
         }
     }
     catch (Exception)
     {
     }
 }