private void on_PhoneButton_clicked(object o, EventArgs args) { Gtk.TreeIter iter = new Gtk.TreeIter(); // display the phone book, when we return gfax.Destinations // will be set with contacts. GfaxSendPhoneBook gfs = new GfaxSendPhoneBook(gxml, "gfaxsend"); ItemStore.Clear(); if (gfax.Destinations.Count > 0) { IEnumerator enu = gfax.Destinations.GetEnumerator(); while (enu.MoveNext()) { iter = ItemStore.AppendValues(true, ((GfaxContact)enu.Current).PhoneNumber, ((GfaxContact)enu.Current).Organization, ((GfaxContact)enu.Current).ContactPerson); ItemTreeview.Model = ItemStore; } } }
private void on_PhoneButton_clicked(object o, EventArgs args) { Gtk.TreeIter iter = new Gtk.TreeIter(); // display the phone book, when we return gfax.Destinations // will be set with contacts. GfaxSendPhoneBook gfs = new GfaxSendPhoneBook(gxml, "gfaxsend"); ItemStore.Clear(); if (gfax.Destinations.Count > 0) { IEnumerator enu = gfax.Destinations.GetEnumerator(); while ( enu.MoveNext() ) { iter = ItemStore.AppendValues(true, ((GfaxContact)enu.Current).PhoneNumber, ((GfaxContact)enu.Current).Organization, ((GfaxContact)enu.Current).ContactPerson); ItemTreeview.Model = ItemStore; } } }