public MainWindow() { this.DataContext = ViewModel.getInstance(); 登录 a = new 登录(); a.Show(); InitializeComponent(); DoubleAnimation 动画 = new DoubleAnimation(); 动画.To = 100; 动画.Duration = TimeSpan.FromMilliseconds(43.0 * (100 - progress.Value)); Storyboard.SetTargetName(动画, progress.Name); Storyboard.SetTargetProperty(动画, new PropertyPath(ProgressBar.ValueProperty)); 窗帘开.Children.Add(动画); 动画 = new DoubleAnimation(); 动画.To = 0; 动画.Duration = TimeSpan.FromMilliseconds(43.0 * progress.Value); Storyboard.SetTargetName(动画, progress.Name); Storyboard.SetTargetProperty(动画, new PropertyPath(ProgressBar.ValueProperty)); 窗帘关.Children.Add(动画); c1 = chart1; c2 = chart2; c3 = chart3; c1.View3D = true; c2.View3D = true; c3.View3D = true; c1.Series.Add(line1); c2.Series.Add(line2_1); c2.Series.Add(line2_2); c3.Series.Add(line3); }
private void 登录测试(object sender, RoutedEventArgs e) { 登录 a = new 登录(); a.Show(); }