| | |
| | | |
| | | private void Window_Loaded(object sender, RoutedEventArgs e) |
| | | { |
| | | Tool.Owner = this; |
| | | Common.Owner = this; |
| | | |
| | | this.btnLoad.IsEnabled = false; |
| | | this.btnImport.IsEnabled = false; |
| | |
| | | // 设置 |
| | | private void Login_MouseLeftButtonDown(object sender, RoutedEventArgs e) |
| | | { |
| | | //win = new LoginWin(); |
| | | //this.Hide(); |
| | | //win.Show(); |
| | | win = new LoginWin(); |
| | | this.Hide(); |
| | | win.Show(); |
| | | |
| | | SetLoginInfo(); |
| | | //SetLoginInfo(); |
| | | //GdalHelper.Instance.ReadTiff(); |
| | | } |
| | | |
| | | public void SetLoginInfo() |
| | | { |
| | | //if (win != null) win.Close(); |
| | | //this.Show(); |
| | | if (win != null) win.Close(); |
| | | this.Show(); |
| | | |
| | | //this.tbUid.Text = Tool.UserId.ToString(); |
| | | //this.tbToken.Text = Tool.Token; |
| | |
| | | string uidStr = this.tbUid.Text.Trim(); |
| | | string didStr = this.tbDir.Text.Trim(); |
| | | |
| | | int.TryParse(uidStr, out Tool.UserId); |
| | | int.TryParse(didStr, out Tool.DirId); |
| | | int.TryParse(uidStr, out Common.UserId); |
| | | int.TryParse(didStr, out Common.DirId); |
| | | |
| | | this.btnLoad.IsEnabled = true; |
| | | this.btnImport.IsEnabled = true; |