Ejemplo n.º 1
0
        public WordModel(int id, string word, string definition, PartSpeech part)
        {
            Word = word;

            Definition = definition;
            Part       = part;
            Id         = id;
            db         = DataBaseAccess.GetInstance();
        }
Ejemplo n.º 2
0
        public WordModel(string word, string definition, PartSpeech part)
        {
            SettingsModel settings = SettingsModel.GetInstance();

            Word       = word;
            Definition = definition;
            Part       = part;
            Id         = ++(settings.LastId);
            db         = DataBaseAccess.GetInstance();
        }