public static TreeviewAddRow ( Gtk tv, TreeStore store, string row, bool startOrEnd ) : void | ||
tv | Gtk | |
store | TreeStore | |
row | string | |
startOrEnd | bool | |
Результат | void |
//can be done manually by clicking on add //or automatically when loading sequence private void on_button_add_exercise_do(int selectedPos, int treeviewNum) { TrCombo tc = (TrCombo)selectArray[selectedPos]; //Log.WriteLine(tc.ToString()); if (treeviewNum == 1) { treeviewSerie1Array.Add(tc); UtilGtk.TreeviewAddRow(treeview_serie1, store_serie1, new String [] { treeviewSerie1Array.Count.ToString(), tc.trName }, false); //at end } else if (treeviewNum == 2) { treeviewSerie2Array.Add(tc); UtilGtk.TreeviewAddRow(treeview_serie2, store_serie2, new String [] { treeviewSerie2Array.Count.ToString(), tc.trName }, false); //at end } else { //treeviewNum == 3 treeviewSerie3Array.Add(tc); UtilGtk.TreeviewAddRow(treeview_serie3, store_serie3, new String [] { treeviewSerie3Array.Count.ToString(), tc.trName }, false); //at end } button_save.Sensitive = (treeviewSerie1Array.Count > 0 && entry_save_name.Text.ToString().Length > 0); //a test is added, sensitivize "next" button button_next.Sensitive = true; }
public void Row_add(string [] row) { //add row to treeview UtilGtk.TreeviewAddRow(treeview, store, row, true); //insert at beginning }