本文整理汇总了C#中MLifter.DAL.Tools.ParentClass类的典型用法代码示例。如果您正苦于以下问题:C# ParentClass类的具体用法?C# ParentClass怎么用?C# ParentClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParentClass类属于MLifter.DAL.Tools命名空间,在下文中一共展示了ParentClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例2: PreviewWord
public PreviewWord(string word, WordType type, bool isDefault, ParentClass parent)
{
this.word = word;
this.type = type;
this._default = isDefault;
this.parent = parent;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例9: XmlMedia
protected XmlMedia(XmlDictionary dictionary, EMedia mediaType, string filename, ParentClass parent)
{
this.parent = parent;
m_mediaIdentifier = mediaType;
m_oDictionary = dictionary;
m_filename = filename;
}
示例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;
}
示例11: DbWords
public DbWords(int CardId, Side ListSide, WordType ListType, ParentClass parentClass)
{
id = CardId;
side = ListSide;
type = ListType;
parent = parentClass;
}
示例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);
}
示例13: XmlChapters
internal XmlChapters(XmlDictionary dictionary, ParentClass parent)
{
this.parent = parent;
m_oDictionary = dictionary;
m_dictionary = dictionary.Dictionary;
Initialize();
PrepareIdNavigator();
}
示例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);
}
示例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;
}