Exemplo n.º 1
0
        public void DatabaseSetKey()
        {
            int record;

            record = DatabaseStoreStatic.NewRecord();
            DatabaseStoreStatic.SetKey(record, "testing");
            Assert.AreEqual("testing", DatabaseStoreStatic.GetKey(record));
        }
Exemplo n.º 2
0
        public void SetKey(string key)
        {
            if (DatabaseStoreStatic.GetKey(RecordId) != key)
            {
                Enter(this);
                WriteLine(5, "Key set: {0}", key);
                DatabaseStoreStatic.SetKey(RecordId, key);
                Exit(this);

                OnRecordModified(new EventArgs());
            }
        }