| | |
| | | using System.Windows; |
| | | using System.Windows.Controls; |
| | | using System.Windows.Data; |
| | | using System.Windows.Forms.VisualStyles; |
| | | |
| | | namespace DataLoader |
| | | { |
| | |
| | | private string _sourcePath; |
| | | |
| | | private string _targetPath; |
| | | |
| | | private LoginWin win; |
| | | |
| | | public string SourcePath |
| | | { |
| | |
| | | { |
| | | Main.Owner = this; |
| | | |
| | | this.btnImport.IsEnabled = false; |
| | | lvView.DataContext = viewDatas; |
| | | lvView.SetBinding(ListView.ItemsSourceProperty, new Binding()); |
| | | } |
| | |
| | | // 登录 |
| | | private void Login_MouseLeftButtonDown(object sender, RoutedEventArgs e) |
| | | { |
| | | win = new LoginWin(); |
| | | this.Hide(); |
| | | win.Show(); |
| | | } |
| | | |
| | | public void SetLoginInfo() |
| | | { |
| | | if (win != null) win.Close(); |
| | | this.Show(); |
| | | |
| | | this.tbUid.Text = Main.UserId.ToString() + "," + Main.Uname; |
| | | this.tbToken.Text = Main.Token; |
| | | this.btnImport.IsEnabled = true; |
| | | } |
| | | |
| | | // 源目录 |