GetSelectedRowUniqueID() публичный статический Метод

public static GetSelectedRowUniqueID ( Gtk tv, Gtk store, int uniqueIDcol ) : int
tv Gtk
store Gtk
uniqueIDcol int
Результат int
Пример #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);
                    }
                }
            }
        }
    }
Пример #2
0
    private void on_delete_selected_row_clicked(object o, EventArgs args)
    {
        int uniqueID = UtilGtk.GetSelectedRowUniqueID(
            treeview_load, store_load, store_load_uniqueID_col);

        if (uniqueID > 0)
        {
            Sqlite.Delete(false, Constants.ExecuteAutoTable, uniqueID);
            store_load            = UtilGtk.RemoveRow(treeview_load, store_load);
            button_next.Sensitive = false;
        }
    }
Пример #3
0
    void on_radio_load_new_toggled(object obj, EventArgs args)
    {
        if (radio_load.Active)
        {
            notebook_load_or_new.CurrentPage = 0;
            vbox_save.Visible = false;

            button_next.Sensitive =
                (UtilGtk.GetSelectedRowUniqueID(
                     treeview_load, store_load, store_load_uniqueID_col) > 0);
        }
        else
        {
            notebook_load_or_new.CurrentPage = 1;
            vbox_save.Visible     = true;
            button_next.Sensitive = true;
        }
    }