示例#1
0
        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;
                }
            }
        }
示例#2
0
文件: gfaxsend.cs 项目: horga83/gfax
        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;
                }
            }
        }