コード例 #1
0
        /// <summary>
        /// Edit the specified nicotine.
        /// </summary>
        /// <param name="element">The nicotine to edit.</param>
        public override void EditElement(Nicotine element)
        {
            NicotineActivity na = Activity as NicotineActivity;

            if (na != null)
            {
                na.StartEditNicotine(element);
            }
        }
コード例 #2
0
        /// <summary>
        /// Create a new nicotine.
        /// </summary>
        public override void CreateElement()
        {
            Nicotine newNic = new Nicotine();

            newNic.ID = -1;
            //newNic.Name = GetString(Resource.String.DefaultNicotineName);
            NicotineActivity na = Activity as NicotineActivity;

            if (na != null)
            {
                na.StartEditNicotine(newNic);
            }
        }