private void btnUPan_Click(object sender, RoutedEventArgs e)
        {
            curPath = "U";
            cvsFile.Children.Clear();
            if (uPanName != null)
            {
                if (Directory.Exists(uPanName + "conf"))
                {
                    folderCtrl fd = new folderCtrl();
                    fd.lb.Content = "conf";
                    fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
                    cvsFile.Children.Add(fd);
                    Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
                }
                if (Directory.Exists(uPanName + "upgrade"))
                {
                    folderCtrl fd = new folderCtrl();
                    fd.lb.Content = "upgrade";
                    fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
                    cvsFile.Children.Add(fd);
                    Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
                }
                if (Directory.Exists(uPanName + "Ipr"))
                {
                    folderCtrl fd = new folderCtrl();
                    fd.lb.Content = "Ipr";
                    fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
                    cvsFile.Children.Add(fd);
                    Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
                }
                pathName = uPanName;
                lbPath.Content = uPanName;
                fileName = "";
                lbFileName.Content = valmoWin.dv.getCurDis("lanKey1023") + fileName;
                btnSelect.IsEnabled = false;

            }
        }
 private void btnUPan_Click(object sender, RoutedEventArgs e)
 {
     curPath = "U";
     cvsFile.Children.Clear();
     ////cvsFile.clear();
     if (uPanName != null)
     {
         if (Directory.Exists(uPanName + "conf"))
         {
             folderCtrl fd = new folderCtrl();
             fd.lb.Content = "conf";
             fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
             cvsFile.Children.Add(fd);
             Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
             ////cvsFile.add(fd);
             ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
         }
         if (Directory.Exists(uPanName + "ini"))
         {
             folderCtrl fd = new folderCtrl();
             fd.lb.Content = "ini";
             fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
             cvsFile.Children.Add(fd);
             Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
             ////cvsFile.add(fd);
             ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
         }
         if (Directory.Exists(uPanName + "Ipr"))
         {
             folderCtrl fd = new folderCtrl();
             fd.lb.Content = "Ipr";
             fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
             cvsFile.Children.Add(fd);
             Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
             ////cvsFile.add(fd);
             ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
         }
         pathName = uPanName;
         //lbFileName.Content = uPanName;
     }
 }
 private void btnLocal_Click(object sender, RoutedEventArgs e)
 {
     curPath = "L";
     cvsFile.Children.Clear();
     if (Directory.Exists("Conf"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Conf";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
     }
     if (Directory.Exists("Rec"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Rec";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
     }
     if (Directory.Exists("Ipr"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Ipr";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
     }
     lbPath.Content = ".";
     fileName = "";
     lbFileName.Content = valmoWin.dv.getCurDis("lanKey1023") + fileName;
     pathName = ".";
     btnSelect.IsEnabled = false;
 }
 private void btnLocal_Click(object sender, RoutedEventArgs e)
 {
     curPath = "L";
     ////cvsFile.clear();
     cvsFile.Children.Clear();
     if (Directory.Exists("Conf"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Conf";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
         ////cvsFile.add(fd);
         ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
     }
     if (Directory.Exists("Rec"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Rec";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
         ////cvsFile.add(fd);
         ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
     }
     if (Directory.Exists("Ipr"))
     {
         folderCtrl fd = new folderCtrl();
         fd.lb.Content = "Ipr";
         fd.MouseDown += new MouseButtonEventHandler(folder_MouseDown);
         cvsFile.Children.Add(fd);
         Canvas.SetTop(fd, (cvsFile.Children.Count - 1) * 40);
         ////cvsFile.add(fd);
         ////Canvas.SetTop(fd, (cvsFile.count - 1) * 40);
     }
     //lbFileName.Content = ".";
     pathName = ".";
     lbPath.Content = pathName;
 }