public BaseWinSDI() { InitializeComponent(); Icon = new Icon(GKUtils.LoadResourceStream("Resources.icon_gedkeeper.ico")); tbFileNew.Image = UIHelper.LoadResourceImage("Resources.btn_create_new.gif"); tbFileLoad.Image = UIHelper.LoadResourceImage("Resources.btn_load.gif"); tbFileSave.Image = UIHelper.LoadResourceImage("Resources.btn_save.gif"); tbRecordAdd.Image = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif"); tbRecordEdit.Image = UIHelper.LoadResourceImage("Resources.btn_rec_edit.gif"); tbRecordDelete.Image = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif"); tbFilter.Image = UIHelper.LoadResourceImage("Resources.btn_filter.gif"); tbTreeAncestors.Image = UIHelper.LoadResourceImage("Resources.btn_tree_ancestry.gif"); tbTreeDescendants.Image = UIHelper.LoadResourceImage("Resources.btn_tree_descendants.gif"); tbTreeBoth.Image = UIHelper.LoadResourceImage("Resources.btn_tree_both.gif"); tbPedigree.Image = UIHelper.LoadResourceImage("Resources.btn_scroll.gif"); tbStats.Image = UIHelper.LoadResourceImage("Resources.btn_table.gif"); tbPrev.Image = UIHelper.LoadResourceImage("Resources.btn_left.gif"); tbNext.Image = UIHelper.LoadResourceImage("Resources.btn_right.gif"); //tbDocPreview.Image = UIHelper.LoadResourceImage("Resources.btn_preview.gif"); //tbDocPrint.Image = UIHelper.LoadResourceImage("Resources.btn_print.gif"); tbSendMail.Image = UIHelper.LoadResourceImage("Resources.btn_mail.gif"); //tbDocPrint.Visible = false; //tbDocPreview.Visible = false; AppHost.Instance.LoadWindow(this); fController = new BaseWinController(this); fContext = fController.Context; ((BaseContext)fContext).ModifiedChanged += BaseContext_ModifiedChanged; tabsRecords.SuspendLayout(); CreatePage(LangMan.LS(LSID.LSID_RPIndividuals), GDMRecordType.rtIndividual); CreatePage(LangMan.LS(LSID.LSID_RPFamilies), GDMRecordType.rtFamily); CreatePage(LangMan.LS(LSID.LSID_RPNotes), GDMRecordType.rtNote); CreatePage(LangMan.LS(LSID.LSID_RPMultimedia), GDMRecordType.rtMultimedia); CreatePage(LangMan.LS(LSID.LSID_RPSources), GDMRecordType.rtSource); CreatePage(LangMan.LS(LSID.LSID_RPRepositories), GDMRecordType.rtRepository); CreatePage(LangMan.LS(LSID.LSID_RPGroups), GDMRecordType.rtGroup); CreatePage(LangMan.LS(LSID.LSID_RPResearches), GDMRecordType.rtResearch); CreatePage(LangMan.LS(LSID.LSID_RPTasks), GDMRecordType.rtTask); CreatePage(LangMan.LS(LSID.LSID_RPCommunications), GDMRecordType.rtCommunication); CreatePage(LangMan.LS(LSID.LSID_RPLocations), GDMRecordType.rtLocation); tabsRecords.ResumeLayout(); SetLocale(); }