public RemoteFileListWindow() { InitializeComponent(); mListView = (ListView)this.FindName("listView"); severFileUpdatePath = AppConfiger.getServertPath(); getReomteFileList(); }
private void getOutPathOnShow() { if (pathType == SET_LCOAL_PATH) { mOutPathTextBox.Text = AppConfiger.getOutputPath(); } else { mOutPathTextBox.Text = AppConfiger.getServertPath(); } }
public MainWindow() { InitializeComponent(); outFilePath = AppConfiger.getOutputPath(); severFileUpdatePath = AppConfiger.getServertPath(); //判断本地路径是否存在 不存在就创建 if (!Directory.Exists(outFilePath)) { Directory.CreateDirectory(outFilePath); } //读取本地文件列表 refreshFileList(outFilePath); }
//窗口激活时 刷新对应信息 private void OnWindowActivated(object sender, EventArgs e) { outFilePath = AppConfiger.getOutputPath(); severFileUpdatePath = AppConfiger.getServertPath(); refreshFileList(outFilePath); }