コード例 #1
0
 public EqualAxesCommand(IChart2D chart2d, IComplexChart complexChart, IChart3D chart3d, ISharedViewState sharedViewState) : base(chart2d, complexChart, chart3d, sharedViewState)
 {
     Text         = MenuStrings.equalAxes_Text;
     ToolTip      = MenuStrings.equalAxes_Text;
     CheckOnClick = true;
     Checked      = chart3D.EqualAxes;
     BindingUtils.TwoWayBinding(this, nameof(Checked), chart3D, nameof(chart3D.EqualAxes));
 }
コード例 #2
0
 public EqualAxesCommand(ReadOnlyDictionary <CalculationsMode, IChart> charts) : base(charts)
 {
     Text         = MenuStrings.equalAxes_Text;
     ToolTip      = MenuStrings.equalAxes_Text;
     CheckOnClick = true;
     Checked      = chart3d.EqualAxes;
     BindingUtils.TwoWayBinding(this, nameof(Checked), chart3d, nameof(chart3d.EqualAxes));
 }