Beispiel #1
0
        public MultimeterMenu()
        {
            //##############################################################
            mHold     = new GeneralButton("Hold", ButtonPress_Hold);
            mRelative = new GeneralButton("Rel", ButtonPress_Relative);
            mRange    = new GeneralButton("Range", PickerChange_Range);
            mMode     = new GeneralButton("Mode", PickerChange_Mode);
            //##############################################################

            DefineGrid(4, 1);
            AutoAdd(mHold);
            AutoAdd(mMode);
            AutoAdd(mRelative);
            AutoAdd(mRange);
        }
Beispiel #2
0
        public SmartChartMenu(bool ShowSave = true, bool ShowReset = true)
        {
            //Add Relative Button
            mReset = new GeneralButton("Reset", ButtonPress_Reset);
            mSave  = new GeneralButton("Save", ButtonPress_Save);

            //Define Grid
            DefineGrid(2, 1);
            if (ShowReset)
            {
                AutoAdd(mReset);
            }
            if (ShowSave)
            {
                AutoAdd(mSave);
            }
        }
Beispiel #3
0
        public Settings()
        {
            ButtonLeft  = new GeneralButton("", ButtonLeft_Clicked);
            ButtonRight = new GeneralButton("", ButtonRight_Clicked);

            //Setup connected event
            DefineGrid(2, 2);

            //Setup default display
            AutoAdd(BLESelectDevice, 2);
            FormatCurrentRow(GridUnitType.Star);

            AutoAdd(ButtonLeft);
            AutoAdd(ButtonRight);
            FormatCurrentRow(GridUnitType.Auto);

            ClearRightButton();
            ClearLeftButton();

            SetLeftButton("Refresh", RefreshDevices);
            BLESelectDevice.Connected += Connected;
        }