public CoverManager() { InitializeComponent(); this.rbScanAll.Tag = SCAN_SETTING_ALL; this.rbScanPath.Tag = SCAN_SETTING_PATH; this.rbCreateNoImg.Tag = CREATE_SETTING_NOIMG; this.rbOverride.Tag = CREATE_SETTING_OVERRIDE; this.CURRENT_SCAN_SETTING = SCAN_SETTING_ALL; this.CURRENT_CREATE_SETTING = CREATE_SETTING_NOIMG; this._DB = new VScanDB(); LogerFactory.Instance.SetLoger(new WinLoger(this.txtLog)); _loger = LogerFactory.Instance.GetLoger(); }
public Form1() { InitializeComponent(); LogerFactory.Instance.SetLoger(new WinLoger(this.txtLog)); _loger = LogerFactory.Instance.GetLoger(); this._DB = new VScanDB(); var dirList = this._DB.ResDirs.ToList(); foreach (var item in dirList) { this.txtResDirs.AppendText(string.Format("{0};\r\n", item.DirName)); } this.txtOutputDir.Text = GetSetting("ImageDir"); this.txtScanType.Text = GetSetting("ScanType"); }
private void InitFromData() { this._DB = new VScanDB(); var dirList = new string[] { @"D:\Program Files", GetSetting("PicScanPath") }; foreach (var path in dirList) { if (!string.IsNullOrEmpty(path)) { if (!string.IsNullOrEmpty(this.txtResDirs.Text)) { this.txtResDirs.AppendText("\r\n"); } this.txtResDirs.AppendText(string.Format("{0};", path)); } } }