コード例 #1
0
        public TestDefinition GrisSelector_EmptyElements()
        {
            // create the control array
            selector2Array = new Gtk.Button[18];
            for (int i = 0; i < 18; i++)
            {
                Gtk.Button newButton = new Gtk.Button();
                newButton.Label   = i.ToString();
                selector2Array[i] = newButton;
            }

            // create the control
            selector2.NbCol = 4;
            selector2.NbRow = 4;
            selector2State  = GridSelector.eState.Horizontal;
            selector2.SetFillerControlType(typeof(Gtk.Button));
            selector2.Initialize(GridSelector.eState.Horizontal, selector2Array);

            // prepare the  testDefinition
            TestDefinition info = new TestDefinition();

            info.testName     = "GrisSelector_EmptyElements";
            info.testDesc     = "Test where the GridSelector has a disabled button when the max element is being reached. Button 1 will switch intween the differnt mode,";
            info.testWidget   = selector2;
            info.buttonClick1 = new EventHandler(onClickSel2SwitchMode);

            return(info);
        }
コード例 #2
0
        public TestDefinition GridSelector_ElementList()
        {
            // create the control array
            selector1Array = new Gtk.Button[18];
            for (int i = 0; i < 18; i++)
            {
                Gtk.Button newButton = new Gtk.Button();
                newButton.Label   = i.ToString();
                selector1Array[i] = newButton;
            }

            // create the control
            selector1.NbCol = 4;
            selector1.NbRow = 4;
            selector1State  = GridSelector.eState.Horizontal;
            selector1.Initialize(GridSelector.eState.Horizontal, selector1Array);

            // prepare the  testDefinition
            TestDefinition info = new TestDefinition();

            info.testName     = "GrisSelector_ElementList";
            info.testDesc     = "Test where the GridSelector is initialize with an array of controls. Button 1 will switch intween the differnt mode,";
            info.testWidget   = selector1;
            info.buttonClick1 = new EventHandler(onClickSel1SwitchMode);

            return(info);
        }