private void protectionListBox_CheckedChanged(object sender, Nevron.UI.WinForm.Controls.NListBoxItemCheckEventArgs e) { if (EventsHandlingPaused) { return; } NShape shape = (view.Selection.AnchorNode as NShape); if (shape == null) { return; } PauseEventsHandling(); for (int i = 0; i < protectionListBox.Items.Count; i++) { NListBoxItem item = protectionListBox.Items[i]; NAbilities protection = shape.Protection; if (item.Checked) { protection.Mask = protection.Mask | (AbilitiesMask)item.Tag; } else { protection.Mask = protection.Mask & ~(AbilitiesMask)item.Tag; } shape.Protection = protection; } document.SmartRefreshAllViews(); ResumeEventsHandling(); }
private void XLabelFitModesList_CheckedChanged(object sender, Nevron.UI.WinForm.Controls.NListBoxItemCheckEventArgs e) { if (m_Chart == null) { return; } NStandardScaleConfigurator scaleConfiguratorX = (NStandardScaleConfigurator)m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator; scaleConfiguratorX.LabelFitModes = GetLabelFitModesFromListBox(XLabelFitModesList); nChartControl1.Refresh(); }