Select() public static method

public static Select ( bool dbconOpened, int uniqueID ) : List
dbconOpened bool
uniqueID int
return List
Ejemplo n.º 1
0
    private void loadDo()
    {
        TreeModel model;
        TreeIter  iter;

        if (treeview_load.Selection.GetSelected(out model, out iter))
        {
            int uniqueID = UtilGtk.GetSelectedRowUniqueID(
                treeview_load, store_load, store_load_uniqueID_col);

            if (uniqueID > 0)
            {
                ExecuteAutoSQL eaSQL = SqliteExecuteAuto.Select(false, uniqueID)[0];

                foreach (int i in eaSQL.Serie1IDs)
                {
                    button_simulate_exercise_clicked(i, 1);                     //first treeview
                }
                mode = eaSQL.Mode;
                if (mode == ExecuteAuto.ModeTypes.BY_SETS)
                {
                    foreach (int i in eaSQL.Serie2IDs)
                    {
                        button_simulate_exercise_clicked(i, 2);
                    }
                    foreach (int i in eaSQL.Serie3IDs)
                    {
                        button_simulate_exercise_clicked(i, 3);
                    }
                }
            }
        }
    }
Ejemplo n.º 2
0
    private void fillTreeviewLoad()
    {
        List <ExecuteAutoSQL> sequences = SqliteExecuteAuto.Select(false, -1);

        foreach (ExecuteAutoSQL eaSQL in sequences)
        {
            store_load.AppendValues(eaSQL.ToLoadTreeview(jumpTypes));
        }
    }