Wpf/Testing Geared/TestingGearedView.xaml.cs
(完整代码) 1KBusing System;
using System.Windows;
namespace Geared.Wpf.Testing_Geared
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class TestingGearedView: IDisposable
{
private bool _noF;
private TestingGearedViewModel Vm { get { return (TestingGearedViewModel) DataContext; } }
public TestingGearedView()
{
InitializeComponent();
Vm.Go();
}
private void GoOnClick(object sender, RoutedEventArgs e)
{
Vm.Go();
}
private void Animated_OnChecked(object sender, RoutedEventArgs e)
{
if (!_noF)
{
_noF = !_noF;
return;
}
MessageBox.Show("Once you go animated, you could face a visual error with axis separators");
}
public void Dispose()
{
var vm = (TestingGearedViewModel) DataContext;
foreach (var seriesView in vm.SeriesCollection)
{
((IDisposable) seriesView.Values).Dispose();
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
