예제 #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;
 }