[chronojump/77] 77 for gui/personNotUploadWindow
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/77] 77 for gui/personNotUploadWindow
- Date: Tue, 2 Mar 2010 08:39:04 +0000 (UTC)
commit bc9dfb12c3eb8b124091e75943c78c934cb25bc5
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Mar 2 16:17:20 2010 +0800
77 for gui/personNotUploadWindow
src/gui/person.cs | 31 +++++++++++--------------------
1 files changed, 11 insertions(+), 20 deletions(-)
---
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 9598026..735736d 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -656,9 +656,8 @@ public class PersonNotUploadWindow : PersonsRecuperateFromOtherSessionWindow
createComboSelectCheckboxes();
createCheckboxes(treeview_person_recuperate);
- store = new TreeStore( typeof (bool), typeof (string), typeof (string), typeof (string), typeof (string),
- typeof (string), typeof(string), typeof(string),
- typeof (string), typeof(string), typeof(string) );
+ store = new TreeStore( typeof (bool),
+ typeof (string), typeof (string), typeof (string), typeof (string), typeof (string) );
createTreeView(treeview_person_recuperate, 1);
treeview_person_recuperate.Model = store;
@@ -689,8 +688,6 @@ public class PersonNotUploadWindow : PersonsRecuperateFromOtherSessionWindow
private void fillTreeView (Gtk.TreeView tv, TreeStore store, int sessionID, ArrayList initiallyUnchecked )
{
- string [] myPersons;
-
/*
this is a bit weird because we use Sqlite.SelectAllPersonsRecuperable as inherithed methods
that slq method needs a session where we want to search and a session not to search (current session)
@@ -698,23 +695,17 @@ public class PersonNotUploadWindow : PersonsRecuperateFromOtherSessionWindow
we continue using method SelectAllPersonsRecuperable because we want same output columns
*/
- myPersons = SqlitePerson.SelectAllPersonsRecuperable("name", -1, sessionID, ""); //"" is searchFilterName (not implemented on recuperate multiple)
-
-
- foreach (string person in myPersons) {
- string [] myStringFull = person.Split(new char[] {':'});
+ ArrayList myPersons = SqlitePerson.SelectAllPersonsRecuperable("name", -1, sessionID, ""); //"" is searchFilterName (not implemented on recuperate multiple)
+ foreach (Person person in myPersons) {
store.AppendValues (
- ! Util.FoundInArrayList(initiallyUnchecked, myStringFull[0]),
- myStringFull[0], myStringFull[1],
- getCorrectSex(myStringFull[2]), myStringFull[4], myStringFull[5],
- myStringFull[3],
- myStringFull[6], //sport
- myStringFull[7], //speciallity
- myStringFull[8], //level (practice)
- myStringFull[9] //desc
- );
- }
+ ! Util.FoundInArrayList(initiallyUnchecked, person.UniqueID),
+ person.UniqueID,
+ person.Name,
+ getCorrectSex(person.Sex),
+ person.DateBorn.ToShortDateString(),
+ person.Description);
+ }
//show sorted by column Name
store.SetSortColumnId(2, Gtk.SortType.Ascending);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]