public OrganizationDlg() { this.Build (); adaptorOrg.Target = subject; table1.DataSource = adaptorOrg; tracker = new QSHistoryLog.ObjectTracker<Organization> (subject); labelId.Binding.AddBinding (subject, e => e.Id, w => w.LabelProp, new IdToStringConverter ()).InitializeFromSource (); subject.SignatoryPost = "Генерального директора"; subject.SignatoryBaseOf = "Устава"; entryName.FullNameEntry = entryFullName; entryPost.Completion = new Gtk.EntryCompletion (); entryPost.Completion.Model = ListStoreWorks.CreateWithUniqueValue ("organizations", "signatory_post"); entryPost.Completion.TextColumn = 0; entryBaseOf.Completion = new Gtk.EntryCompletion (); entryBaseOf.Completion.Model = ListStoreWorks.CreateWithUniqueValue ("organizations", "basis_of"); entryBaseOf.Completion.TextColumn = 0; entryBank.Completion = new Gtk.EntryCompletion (); entryBank.Completion.Model = ListStoreWorks.CreateWithUniqueValue ("organizations", "bank"); entryBank.Completion.TextColumn = 0; }
public SteadDlg() { this.Build (); adaptorStead.Target = subject; table2.DataSource = adaptorStead; labelId.Binding.AddBinding (subject, e => e.Id, w => w.LabelProp, new IdToStringConverter ()).InitializeFromSource (); tracker = new QSHistoryLog.ObjectTracker<Stead> (subject); }