public ApplyOptions( ToolStripMenuItem wholeVectorMenuItem, ToolStripMenuItem byComponentMenuItem, CheckBox byComponentVectorXYLock, AccelOptionSet optionSetX, AccelOptionSet optionSetY, OptionXY sensitivity, Option rotation, Label lockXYLabel, AccelCharts accelCharts) { WholeVectorMenuItem = wholeVectorMenuItem; ByComponentVectorMenuItem = byComponentMenuItem; WholeVectorMenuItem.Click += new System.EventHandler(OnWholeClicked); ByComponentVectorMenuItem.Click += new System.EventHandler(OnByComponentClicked); WholeVectorMenuItem.CheckedChanged += new System.EventHandler(OnWholeCheckedChange); ByComponentVectorMenuItem.CheckedChanged += new System.EventHandler(OnByComponentCheckedChange); ByComponentVectorXYLock = byComponentVectorXYLock; OptionSetX = optionSetX; OptionSetY = optionSetY; Sensitivity = sensitivity; Rotation = rotation; LockXYLabel = lockXYLabel; AccelCharts = accelCharts; LockXYLabel.AutoSize = false; LockXYLabel.TextAlign = ContentAlignment.MiddleCenter; ByComponentVectorXYLock.CheckedChanged += new System.EventHandler(OnByComponentXYLockChecked); ByComponentVectorXYLock.Checked = true; Rotation.SnapTo(Sensitivity); EnableWholeApplication(); }
public ApplyOptions( CheckBox byComponentVectorXYLock, AccelOptionSet optionSetX, AccelOptionSet optionSetY, DirectionalityOptions directionalityOptions, OptionXY sensitivity, Option rotation, Label lockXYLabel, AccelCharts accelCharts) { Directionality = directionalityOptions; WholeVectorCheckBox = Directionality.WholeCheckBox; ByComponentVectorCheckBox = Directionality.ByComponentCheckBox; WholeVectorCheckBox.Click += new System.EventHandler(OnWholeClicked); ByComponentVectorCheckBox.Click += new System.EventHandler(OnByComponentClicked); WholeVectorCheckBox.CheckedChanged += new System.EventHandler(OnWholeCheckedChange); ByComponentVectorCheckBox.CheckedChanged += new System.EventHandler(OnByComponentCheckedChange); ByComponentVectorXYLock = byComponentVectorXYLock; OptionSetX = optionSetX; OptionSetY = optionSetY; Sensitivity = sensitivity; Rotation = rotation; LockXYLabel = lockXYLabel; AccelCharts = accelCharts; LockXYLabel.AutoSize = false; LockXYLabel.TextAlign = ContentAlignment.MiddleCenter; ByComponentVectorXYLock.CheckedChanged += new System.EventHandler(OnByComponentXYLockChecked); ByComponentVectorXYLock.Checked = true; Rotation.SnapTo(Sensitivity); EnableWholeApplication(); }