public RTGridPanel() { InitializeComponent(); gbcPalette = new PaletteFast(new Palette()); kgbcPalette = new PaletteFast(new Palette(), 100); kgbcStudyPalette = new PaletteFast(new Palette(), 100); gbcStudyPalette = new PaletteFast(new Palette(), 10); PrepareChart(16); SetStyle(ControlStyles.ResizeRedraw, true); backColor = SystemColors.Window.ToArgb(); kgbcPalette.Palette.AddElementsRange(PaletteHelper.GetSymmetric(0f, 2f)); kgbcPalette.FillColors(); kgbcStudyPalette.Palette.AddElementsRange(PaletteHelper.GetLinear(0f, 1f)); kgbcStudyPalette.FillColors(); short gbcMax = 600, gbcMin = 0; //onlineManager.FirmwareManager.Gbc.GetMinMax(out gbcMin, out gbcMax); gbcPalette.Palette.AddElementsRange(PaletteHelper.GetLinear(gbcMin, gbcMax)); gbcPalette.FillColors(); gbcStudyPalette.Palette.AddElementsRange(PaletteHelper.GetLinear(0f, 50f)); gbcStudyPalette.FillColors(); KeyboardHook.Instance.KeyDown += KeyboardHookOnKeyDown; }
public TableControl() { InitializeComponent(); uiContext = SynchronizationContext.Current; fastPalette = new PaletteFast(new Palette(), 100); KeyboardHook.Instance.KeyDown += KeyboardHookOnKeyDown; }
public Calibr3DControl() { InitializeComponent(); SetStyle(ControlStyles.ResizeRedraw, true); paletteFast = new PaletteFast(new Palette()); FirstChartInit(); }