• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Tools.ParentClass类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MLifter.DAL.Tools.ParentClass的典型用法代码示例。如果您正苦于以下问题:C# ParentClass类的具体用法?C# ParentClass怎么用?C# ParentClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ParentClass类属于MLifter.DAL.Tools命名空间,在下文中一共展示了ParentClass类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DbCardStyle

        /// <summary>
        /// Initializes a new instance of the <see cref="DbCardStyle"/> class.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="checkId">if set to <c>true</c> [check id].</param>
        /// <param name="parentClass">The parent class.</param>
        /// <remarks>Documented by Dev03, 2009-01-13</remarks>
        public DbCardStyle(int id, bool checkId, ParentClass parentClass)
        {
            parent = parentClass;

            if (checkId)
                connector.CheckId(id);

            this.id = id;
            String XmlValue = connector.GetCardStyle(id);

            if ((XmlValue != null) && (XmlValue.Length > 0))
            {
                try
                {
                    xmlStyle = (XmlCardStyle)styleSerializer.Deserialize(new StringReader(XmlValue));
                }
                catch
                {
                    Debug.WriteLine("Failed to deserialize card style!");
                    xmlStyle = new XmlCardStyle(parentClass);
                }
            }
            else
            {
                xmlStyle = new XmlCardStyle(parentClass);
            }
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:34,代码来源:DbCardStyle.cs


示例2: PreviewWord

 public PreviewWord(string word, WordType type, bool isDefault, ParentClass parent)
 {
     this.word = word;
     this.type = type;
     this._default = isDefault;
     this.parent = parent;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:PreviewWord.cs


示例3: XmlDistractor

 internal XmlDistractor(XmlElement card, string distractor,ParentClass parent)
 {
     m_Distractor = card.OwnerDocument.CreateElement(m_XPathDistractor);
     XmlHelper.CreateAndAppendAttribute(m_Distractor, m_XPathId, Convert.ToString(-1));
     m_Distractor.InnerText = distractor;
     this.parent = parent;
 }
开发者ID:hmehr,项目名称:OSS,代码行数:7,代码来源:XmlDistractor.cs


示例4: DbChapter

 /// <summary>
 /// Initializes a new instance of the <see cref="DbChapter"/> class.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="CheckId">if set to <c>true</c> [check id].</param>
 /// <param name="parent">The parent.</param>
 /// <remarks>Documented by Dev03, 2009-01-13</remarks>
 public DbChapter(int id, bool CheckId, ParentClass parent)
 {
     this.parent = parent;
     if (CheckId)
         connector.CheckChapterId(id);
     this.id = id;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:14,代码来源:DbChapter.cs


示例5: XmlAudio

 internal XmlAudio(XmlDictionary dictionary, string filename, bool active, bool defaultAudio, bool exampleAudio, ParentClass parent)
     : base(dictionary, EMedia.Audio, filename, parent)
 {
     m_active = active;
     m_default = defaultAudio;
     m_example = exampleAudio;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:XmlAudio.cs


示例6: DbUser

        internal DbUser(UserStruct? user, ParentClass parent, ConnectionStringStruct connection, DataAccessErrorDelegate errorMessageDelegate, bool standAlone)
        {
            this.parent = parent;
            connectionString = connection;
            ErrorMessageDelegate = errorMessageDelegate;

            cache = new Cache(true);

            if (!user.HasValue)
                throw new NoValidUserException();

            this.authenticationStruct = user.Value;
            this.username = user.Value.UserName;
            this.hashedPassword = user.Value.Password;

            this.standAlone = standAlone;
            this.user = user;

            securityFramework = MLifter.DAL.Security.SecurityFramework.GetDataAdapter(this);
            if (username != null && securityFramework != null)
            {
                try
                {
                    securityToken = securityFramework.CreateSecurityToken(this.username);
                    securityToken.IsCaching = cachePermissions;
                }
                catch (Exception ex)
                {
                    Debug.WriteLine("Failed to create security token! (" + ex.Message + ")");
                }
            }

            Login();
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:34,代码来源:DbUser.cs


示例7: CardAdded

 /// <summary>
 /// Cards the added.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <remarks>Documented by Dev05, 2009-05-25</remarks>
 public static void CardAdded(ParentClass parent)
 {
     if (parent.CurrentUser.ConnectionString.Typ == DatabaseType.Xml)
         return;
     else
         GetSessionConnector(parent).CardAdded(lastSessionId);
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:12,代码来源:Log.cs


示例8: XmlImage

 internal XmlImage(XmlDictionary dictionary, string filename, int width, int height, bool active, ParentClass parent)
     : base(dictionary, EMedia.Image, filename, parent)
 {
     m_active = active;
     m_width = width;
     m_height = height;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:XmlImage.cs


示例9: XmlMedia

 protected XmlMedia(XmlDictionary dictionary, EMedia mediaType, string filename, ParentClass parent)
 {
     this.parent = parent;
     m_mediaIdentifier = mediaType;
     m_oDictionary = dictionary;
     m_filename = filename;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:XmlMedia.cs


示例10: XmlWord

 internal XmlWord(string word, WordType type, bool isDefault, ParentClass parent)
 {
     m_word = (word == null) ? String.Empty : word;
     m_type = type;
     m_default = isDefault;
     this.parent = parent;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:XmlWord.cs


示例11: DbWords

 public DbWords(int CardId, Side ListSide, WordType ListType, ParentClass parentClass)
 {
     id = CardId;
     side = ListSide;
     type = ListType;
     parent = parentClass;
 }
开发者ID:hmehr,项目名称:OSS,代码行数:7,代码来源:DbWords.cs


示例12: XmlAnswerExample

 internal XmlAnswerExample(XmlCard card, ParentClass parent)
     : base(parent)
 {
     base.m_basePath = m_basePath;
     this.m_Culture = card.Dictionary.AnswerCulture;
     Initialize(card, WordType.Sentence);
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:7,代码来源:XmlWords.cs


示例13: XmlChapters

 internal XmlChapters(XmlDictionary dictionary, ParentClass parent)
 {
     this.parent = parent;
     m_oDictionary = dictionary;
     m_dictionary = dictionary.Dictionary;
     Initialize();
     PrepareIdNavigator();
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:8,代码来源:XmlChapters.cs


示例14: XmlAnswerDistractors

 internal XmlAnswerDistractors(XmlDictionary dic, XmlCard card, ParentClass parent)
     : base(parent)
 {
     base.m_oDictionary = dic;
     base.m_XPathBasePath = m_XPathBasePath;
     this.m_Culture = card.Dictionary.AnswerCulture;
     Initialize(card);
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:8,代码来源:XmlDistractors.cs


示例15: WebUser

 /// <summary>
 /// Initializes a new instance of the <see cref="WebUser"/> class.
 /// </summary>
 /// <param name="userId">The user id.</param>
 /// <param name="authenticationStruct">The authentication struct.</param>
 /// <param name="connection">The connection.</param>
 /// <param name="service">The service.</param>
 /// <param name="parent">The parent.</param>
 /// <remarks>Documented by Dev05, 2009-03-06</remarks>
 internal WebUser(int userId, UserStruct authenticationStruct, ConnectionStringStruct connection, MLifterLearningModulesService service, ParentClass parent)
 {
     id = userId;
     authStruct = authenticationStruct;
     ConnectionString = connection;
     WebService = service;
     this.parent = parent;
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:17,代码来源:WebUser.cs


示例16: XmlQueryOptions

        internal XmlQueryOptions(XmlDictionary dictionary, ParentClass parentClass)
        {
            parent = parentClass;

            m_dictionary = dictionary.Dictionary;
            m_userSettings = (XmlElement)m_dictionary.SelectSingleNode(m_basePath);
            m_MultipleChoiceOptions = new XmlQueryMultipleChoiceOptions(dictionary, Parent.GetChildParentClass(this));
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:8,代码来源:XmlQueryOptions.cs


示例17: DbQueryMultipleChoiceOptions

        public DbQueryMultipleChoiceOptions(int id, bool checkId, ParentClass parent)
        {
            this.parent = parent;

            if (checkId)
                connector.CheckId(id);

            this.id = id;
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:9,代码来源:DbQueryMultipleChoiceOptions.cs


示例18: GetInstance

        public static MsSqlCeChapterConnector GetInstance(ParentClass parentClass)
        {
            ConnectionStringStruct connection = parentClass.CurrentUser.ConnectionString;

            if (!instances.ContainsKey(connection))
                instances.Add(connection, new MsSqlCeChapterConnector(parentClass));

            return instances[connection];
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:9,代码来源:MsSqlCeChapterConnector.cs


示例19: PreviewDictionary

 /// <summary>
 /// Initializes a new instance of the <see cref="PreviewDictionary"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <remarks>Documented by Dev03, 2009-03-23</remarks>
 public PreviewDictionary(IUser user)
 {
     parent = new ParentClass(user, this);
     cards = new PreviewCards(parent.GetChildParentClass(this));
     userSettings = new PreviewSettings(parent.GetChildParentClass(this));
     allowedSettings = new PreviewSettings(parent.GetChildParentClass(this));
     defaultSettings = new PreviewSettings(parent.GetChildParentClass(this));
     statistics = new PreviewStatistics();
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:14,代码来源:PreviewDictionary.cs


示例20: XmlCards

        internal XmlCards(XmlDictionary dictionary, ParentClass parentClass)
        {
            parent = parentClass;

            m_oDictionary = dictionary;
            m_dictionary = dictionary.Dictionary;
            PrepareIdNavigator();
            Initialize();
        }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:9,代码来源:XmlCards.cs



注:本文中的MLifter.DAL.Tools.ParentClass类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MObjc.NSObject类代码示例发布时间:2022-05-26
下一篇:
C# Unreal.PCCObject类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap