예제 #1
0
        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;
        }
예제 #2
0
        public TableControl()
        {
            InitializeComponent();
            uiContext = SynchronizationContext.Current;

            fastPalette = new PaletteFast(new Palette(), 100);
            KeyboardHook.Instance.KeyDown += KeyboardHookOnKeyDown;
        }
예제 #3
0
        public Calibr3DControl()
        {
            InitializeComponent();
            SetStyle(ControlStyles.ResizeRedraw, true);

            paletteFast = new PaletteFast(new Palette());

            FirstChartInit();
        }