void mPlugin_AxisAdded(IAxis axis) { AxisPanel panel = new AxisPanel(axis, AxisBinding.X, AxisBinding.Y, AxisBinding.Z, AxisBinding.Pitch, AxisBinding.Yaw, AxisBinding.Z); panel.Anchor = AnchorStyles.Left | AnchorStyles.Right; panel.Width = axesBox.Width - PADDING * 2; axesBox.Controls.Add(panel); panel.SizeChanged += new EventHandler(panel_SizeChanged); RepositionPanels(); }
void mInput_AxisAdded(IAxis axis) { AxisPanel panel = new AxisPanel(axis, AxisBinding.MouseX, AxisBinding.MouseY); panel.Anchor = AnchorStyles.Left | AnchorStyles.Right; panel.Width = axesBox.Width - PADDING * 2; axesBox.Controls.Add(panel); panel.SizeChanged += new EventHandler(panel_SizeChanged); RepositionPanels(); }