private void OnPathSave(object sender, RoutedEventArgs e)
        {
            String path = mOutPathTextBox.Text;

            if (pathType == SET_LCOAL_PATH)
            {
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }

                if (!AppConfiger.saveOutputPath(mOutPathTextBox.Text))
                {
                    MessageBox.Show("保存失败");
                }
                else
                {
                    this.Close();
                }
            }
            else
            {
                if (!AppConfiger.saveServerPath(mOutPathTextBox.Text))
                {
                    MessageBox.Show("保存失败");
                }
                else
                {
                    this.Close();
                }
            }
        }
 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();
     }
 }
Ejemplo n.º 4
0
 public MainWindow()
 {
     InitializeComponent();
     outFilePath         = AppConfiger.getOutputPath();
     severFileUpdatePath = AppConfiger.getServertPath();
     //判断本地路径是否存在 不存在就创建
     if (!Directory.Exists(outFilePath))
     {
         Directory.CreateDirectory(outFilePath);
     }
     //读取本地文件列表
     refreshFileList(outFilePath);
 }
Ejemplo n.º 5
0
 //窗口激活时 刷新对应信息
 private void OnWindowActivated(object sender, EventArgs e)
 {
     outFilePath         = AppConfiger.getOutputPath();
     severFileUpdatePath = AppConfiger.getServertPath();
     refreshFileList(outFilePath);
 }