示例#1
0
    //----- treeeview_load (end)


    private void initializeShowJustOrder(int rowNumber)
    {
        //know if "serie" has to be plotted or not
        ExecuteAuto eaFirst = (ExecuteAuto)orderedData[0];

        createTreeviewResult(eaFirst.serieID != -1);            //BY_SETS != -1
        fillTreeviewResult();

        //set the selected
        TreeIter iter;
        bool     iterOk = store_result.GetIterFirst(out iter);

        if (iterOk)
        {
            int count = 0;
            while (count < rowNumber)
            {
                store_result.IterNext(ref iter);
                count++;
            }
            treeview_result.Selection.SelectIter(iter);
        }


        button_cancel.Label = Catalog.GetString("Close");
        button_next.Visible = false;

        notebook_main.CurrentPage = 2;
    }
示例#2
0
    private void on_button_next_clicked(object o, EventArgs args)
    {
        if (notebook_main.CurrentPage == 0)
        {
            if (radio_load.Active)
            {
                loadDo();                 //this also defines the 'mode' variable
            }
            else
            {
                mode = ExecuteAuto.ModeTypes.BY_PERSONS;
                if (radio_by_tests.Active)
                {
                    mode = ExecuteAuto.ModeTypes.BY_TESTS;
                }
                else if (radio_by_sets.Active)
                {
                    mode = ExecuteAuto.ModeTypes.BY_SETS;
                }

                //next button will be sensitive when first test is added
                button_next.Sensitive = false;
            }

            showSeriesStuff(mode == ExecuteAuto.ModeTypes.BY_SETS);
            notebook_main.NextPage();
        }
        else if (notebook_main.CurrentPage == 1)
        {
            ArrayList persons = SqlitePersonSession.SelectCurrentSessionPersons(
                sessionID,
                false);                         //means: do not returnPersonAndPSlist
            orderedData = ExecuteAuto.CreateOrder(mode, persons,
                                                  treeviewSerie1Array, treeviewSerie2Array, treeviewSerie3Array);

            createTreeviewResult(mode == ExecuteAuto.ModeTypes.BY_SETS);
            fillTreeviewResult();

            button_next.Label = Catalog.GetString("Accept");
            if (orderedData.Count == 0)
            {
                button_next.Sensitive = false;
            }

            notebook_main.NextPage();
        }
        else                          // notebook_main.CurrentPage == 2
        {
            FakeButtonAccept.Click(); //signal to read orderedData
        }
    }
示例#3
0
    public ExecuteAutoSQL(int uniqueID, string name, ExecuteAuto.ModeTypes mode, string description, 
			List<int> serie1IDs, List<int> serie2IDs, List<int> serie3IDs)
    {
        this.uniqueID = uniqueID;
        this.name = name;
        this.mode = mode;
        this.description = description;
        this.serie1IDs = serie1IDs;
        this.serie2IDs = serie2IDs;
        this.serie3IDs = serie3IDs;
    }