private void cboIdName_SelectedIndexChanged(object sender, EventArgs e) { FCConfig cfg = (FCConfig)this.cboIdName.SelectedItem; //# 填入元件 this.txtDescription.Text = cfg.description; this.txtSourceDir.Text = cfg.sourceDir; this.txtTargetDir.Text = cfg.targetDir; this.lstIgnoreList.DataSource = cfg.ignoreList; this.lstAllowList.DataSource = cfg.allowList; }
private void btnRun_Click(object sender, EventArgs e) { //# 取設定 FCConfig cfg = (FCConfig)this.cboIdName.SelectedItem; //# 切換畫面 this.tabControl1.SelectedTab = this.tabPage2; //# prefix 開始 // 把設定值送進去 _config = cfg; _countOnly = chkCountOnly.Checked; _showDetail = chkShowDetail.Checked; //# 開始 this.ProceedCopyDirectoryAsync(); //this.ProceedCopyDirectory(); //this.ProceedCopyAllowListAsync(); }