/// <summary> /// Initializes a new instance of the <see cref="LanguageForm"/> class. /// </summary> /// <param name="dictionaryManager">The dictionary manager.</param> /// <remarks>Documented by Dev05, 2007-08-22</remarks> public LanguageForm(DictionaryManagement dictionaryManager) { this.dictionaryManager = dictionaryManager; InitializeComponent(); LoadLanguages(); }
/// <summary> /// Initializes a new instance of the <see cref="SettingsForm"/> class. /// </summary> /// <param name="settings">The settings.</param> /// <param name="numPadControl">The num pad control.</param> /// <param name="dictionaryManager">The dictionary manager.</param> /// <remarks>Documented by Dev05, 2007-08-06</remarks> public SettingsForm(Settings settings, NumPadControl numPadControl, DictionaryManagement dictionaryManager) { InitializeComponent(); ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(groupBoxDelays, Resources.DELAY_DESCRIPTION); this.settings = settings; backupFunctions = new SerializableDictionary <Keys, Function>(); foreach (KeyValuePair <Keys, Function> pair in settings.KeyFunctions) { backupFunctions.Add(pair.Key, pair.Value); } backupKeyboardFunctions = new SerializableDictionary <Keys, Function>(); foreach (KeyValuePair <Keys, Function> pair in settings.KeyboardFunctions) { backupKeyboardFunctions.Add(pair.Key, pair.Value); } backupKeyboardMode = settings.KeyboardLayout; this.numPadControl = numPadControl; this.dictionaryManager = dictionaryManager; LoadValues(); }
public string GetCount(string Entity) { int result = 0; switch (Entity) { case "Dictionary": _dictionaryManagement = new DictionaryManagement(); result = _dictionaryManagement.GetAllWords().Count(); break; case "Practice": _practiceManagement = new PracticeManagement(); result = _practiceManagement.GetAllPractices().Count(); break; case "PracticeDetail": _practiceDetailManagement = new PracticeDetailManagement(); result = _practiceDetailManagement.GetAllPracticeDetails().Count(); break; case "User": _userManagement = new UserManagement(); result = _userManagement.GetAllUser().Count(); break; case "WordPool": _wordPoolManagement = new WordPoolManagement(); result = _wordPoolManagement.GetAllWordPools().Count(); break; case "WordPoolDetail": _wordPoolDetailManagement = new WordPoolDetailManagement(); result = _wordPoolDetailManagement.GetAllWordPoolDetail().Count(); break; case "Payment": _paymentManagement = new PaymentManagement(); result = _paymentManagement.GetAllPayments().Count(); break; default: break; } return(result.ToString()); }
/// <summary> /// Called when on import menu item click. /// </summary> /// <param name="targetNamespace">The target namespace.</param> /// <returns></returns> public static NodeDesign[] OnImportMenuItemClick(string targetNamespace) { using (DictionaryManagement dic = new DictionaryManagement()) { if (!dic.Open()) { return(null); } if (dic.Dictionary.ServersTable.Count == 0) { return(null); } List <NodeDesign> nodes = new List <NodeDesign>(); ImportServer(dic.Dictionary.ServersTable[0], targetNamespace, new UniqueName(), nodes); return(nodes.ToArray()); } }
public AdminReportController() { _dictionaryManagement = new DictionaryManagement(); }
public DictionaryController() { _dictionaryManagement = new DictionaryManagement(); }
public frmAdminDictionary() { InitializeComponent(); _dictionaryManagement = new DictionaryManagement(); }