Пример #1
0
        //Write properties method
        public void InfoWrite()
        {
            DataEncrypter MyEncrypter = new DataEncrypter();
            StringBuilder strData     = GetData();

            MyEncrypter.WriteData(_defaultPath, strData);
        }
Пример #2
0
        //Read properties method
        public bool InfoRead()
        {
            DataEncrypter MyEncrypter = new DataEncrypter();
            string        strData;

            if (MyEncrypter.ReadData(_defaultPath) == true)
            {
                strData = MyEncrypter.Data;
                ParseData(strData);
                return(true);
            }
            return(false);
        }
Пример #3
0
        //
        private bool FileWriter()
        {
            DataEncrypter MyEncrypter = new DataEncrypter(ActualPreferences.Algorithm,
                                                          ActualPreferences.Key,
                                                          ActualPreferences.Password);
            String        Path    = GetPathToStorage();
            StringBuilder strData = GetDataString();

            if (MyEncrypter.WriteData(Path, strData) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #4
0
        //
        private void FileReader()
        {
            DataEncrypter MyEncrypter = new DataEncrypter(ActualPreferences.Algorithm,
                                                          ActualPreferences.Key,
                                                          ActualPreferences.Password);
            string strData;
            String Path = GetPathToStorage();

            if (MyEncrypter.ReadData(Path) == true)
            {
                strData = MyEncrypter.Data;
                ReadDataString(strData);
            }
            else
            {
                strData = "";
            }
        }
Пример #5
0
 //
 private bool FileWriter()
 {
     DataEncrypter MyEncrypter = new DataEncrypter(ActualPreferences.Algorithm,
                                                     ActualPreferences.Key,
                                                     ActualPreferences.Password);
     String Path = GetPathToStorage();
     StringBuilder strData = GetDataString();
     if (MyEncrypter.WriteData(Path, strData) == true)
         return true;
     else
         return false;
 }
Пример #6
0
 //
 private void FileReader()
 {
     DataEncrypter MyEncrypter = new DataEncrypter(ActualPreferences.Algorithm,
                                                     ActualPreferences.Key,
                                                     ActualPreferences.Password);
     string strData;
     String Path = GetPathToStorage();
     if (MyEncrypter.ReadData(Path) == true)
     {
         strData = MyEncrypter.Data;
         ReadDataString(strData);
     }
     else
         strData = "";
 }
Пример #7
0
 //Write properties method
 public void InfoWrite()
 {
     DataEncrypter MyEncrypter = new DataEncrypter();
     StringBuilder strData = GetData();
     MyEncrypter.WriteData(_defaultPath, strData);
 }
Пример #8
0
 //Read properties method
 public bool InfoRead()
 {
     DataEncrypter MyEncrypter = new DataEncrypter();
     string strData;
     if (MyEncrypter.ReadData(_defaultPath) == true)
     {
         strData = MyEncrypter.Data;
         ParseData(strData);
         return true;
     }
     return false;
 }