Ejemplo n.º 1
0
 public void Save(Key key)
 {
     key.AddVariable().SValue = this.m_Name;
     for (int i = 0; i < this.m_Params.Count; i++)
     {
         key.AddKey("Param").AddVariable().SValue = this.m_Params[i].m_Name;
     }
     for (int j = 0; j < this.m_Samples.Count; j++)
     {
         Key key2 = key.AddKey("Sample");
         this.m_Samples[j].Save(key2);
     }
 }
Ejemplo n.º 2
0
    public void Save(Key key)
    {
        CJVariable cjvariable = key.AddVariable();

        cjvariable.SValue = this.m_WavName;
        foreach (MSCurveData mscurveData in this.m_Curves.Keys)
        {
            Key key2 = key.AddKey("Curve");
            cjvariable        = key2.AddVariable();
            cjvariable.SValue = mscurveData.m_Name;
            cjvariable        = key2.AddVariable();
            cjvariable.SValue = this.m_Curves[mscurveData].preWrapMode.ToString();
            cjvariable        = key2.AddVariable();
            cjvariable.SValue = this.m_Curves[mscurveData].postWrapMode.ToString();
            foreach (Keyframe keyframe in this.m_Curves[mscurveData].keys)
            {
                Key key3 = key2.AddKey("Key");
                cjvariable        = key3.AddVariable();
                cjvariable.FValue = keyframe.time;
                cjvariable        = key3.AddVariable();
                cjvariable.FValue = keyframe.value;
                cjvariable        = key3.AddVariable();
                cjvariable.FValue = keyframe.inTangent;
                cjvariable        = key3.AddVariable();
                cjvariable.FValue = keyframe.outTangent;
            }
        }
    }
Ejemplo n.º 3
0
        public static void Main(string[] args)
        {
            Encrypted encrypted = new Encrypted();
            Decrypted decrypted = new Decrypted();
            Key       key       = new Key();

            key.AddKey();

            while (true)
            {
                ShowOptions();
                int choice = int.Parse(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    decrypted.DecryptedText(ChoiceSearch.search);
                    break;

                case 2:
                    Console.Write("Введите наименование: ");
                    string tittle = Console.ReadLine();
                    Console.Write("\nВведите пароль: ");
                    string password = Console.ReadLine();
                    Console.Write("\nВведите наименование: ");
                    string description = Console.ReadLine();

                    encrypted.EncryptedText(tittle, password, description);
                    break;

                case 3:
                    decrypted.DecryptedText(ChoiceSearch.all);
                    break;

                case 4:
                    return;

                    break;

                default:
                    ShowOptionsError();
                    break;
                }
            }
        }