Пример #1
0
        public GroupEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");

            fMembersList = new GKSheetList(pageMembers);
            fMembersList.SetControlName("fMembersList"); // for purpose of tests
            fMembersList.OnModify += ModifyMembersSheet;

            fNotesList = new GKSheetList(pageNotes);
            fMediaList = new GKSheetList(pageMultimedia);

            // SetLang()
            Text                = LangMan.LS(LSID.LSID_WinGroupEdit);
            btnAccept.Text      = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text      = LangMan.LS(LSID.LSID_DlgCancel);
            lblName.Text        = LangMan.LS(LSID.LSID_Title);
            pageMembers.Text    = LangMan.LS(LSID.LSID_Members);
            pageNotes.Text      = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia);

            fController = new GroupEditDlgController(this);
            fController.Init(baseWin);

            fMembersList.ListModel = new GroupMembersSublistModel(baseWin, fController.LocalUndoman);
            fNotesList.ListModel   = new NoteLinksListModel(baseWin, fController.LocalUndoman);
            fMediaList.ListModel   = new MediaLinksListModel(baseWin, fController.LocalUndoman);
        }
Пример #2
0
        public SourceEditDlg()
        {
            InitializeComponent();

            btnAccept.Image = GKResources.iBtnAccept;
            btnCancel.Image = GKResources.iBtnCancel;

            fNotesList = new GKSheetList(pageNotes);
            fMediaList = new GKSheetList(pageMultimedia);

            fRepositoriesList = new GKSheetList(pageRepositories);
            fRepositoriesList.SetControlName("fRepositoriesList"); // for purpose of tests
            fRepositoriesList.OnModify += ModifyReposSheet;

            // SetLang()
            Text                  = LangMan.LS(LSID.LSID_Source);
            btnAccept.Text        = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text        = LangMan.LS(LSID.LSID_DlgCancel);
            lblShortTitle.Text    = LangMan.LS(LSID.LSID_ShortTitle);
            lblAuthor.Text        = LangMan.LS(LSID.LSID_Author);
            lblTitle.Text         = LangMan.LS(LSID.LSID_Title);
            lblPublication.Text   = LangMan.LS(LSID.LSID_Publication);
            pageCommon.Text       = LangMan.LS(LSID.LSID_Common);
            pageText.Text         = LangMan.LS(LSID.LSID_Text);
            pageRepositories.Text = LangMan.LS(LSID.LSID_RPRepositories);
            pageNotes.Text        = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text   = LangMan.LS(LSID.LSID_RPMultimedia);
        }
Пример #3
0
        public ResearchEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");

            fTasksList           = new GKSheetList(pageTasks);
            fTasksList.OnModify += ListTasksModify;
            fTasksList.SetControlName("fTasksList"); // for purpose of tests

            fCommunicationsList           = new GKSheetList(pageCommunications);
            fCommunicationsList.OnModify += ListCommunicationsModify;
            fCommunicationsList.SetControlName("fCommunicationsList"); // for purpose of tests

            fGroupsList           = new GKSheetList(pageGroups);
            fGroupsList.OnModify += ListGroupsModify;
            fGroupsList.SetControlName("fGroupsList"); // for purpose of tests

            fNotesList = new GKSheetList(pageNotes);

            SetLang();

            fController = new ResearchEditDlgController(this);
            fController.Init(baseWin);

            fTasksList.ListModel          = new ResTasksSublistModel(baseWin, fController.LocalUndoman);
            fCommunicationsList.ListModel = new ResCommunicationsSublistModel(baseWin, fController.LocalUndoman);
            fGroupsList.ListModel         = new ResGroupsSublistModel(baseWin, fController.LocalUndoman);
            fNotesList.ListModel          = new NoteLinksListModel(baseWin, fController.LocalUndoman);
        }
Пример #4
0
        public SourceEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");

            fNotesList = new GKSheetList(pageNotes);
            fMediaList = new GKSheetList(pageMultimedia);

            fRepositoriesList = new GKSheetList(pageRepositories);
            fRepositoriesList.SetControlName("fRepositoriesList"); // for purpose of tests
            fRepositoriesList.OnModify += ModifyReposSheet;

            // SetLocale()
            Title                 = LangMan.LS(LSID.LSID_Source);
            btnAccept.Text        = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text        = LangMan.LS(LSID.LSID_DlgCancel);
            lblShortTitle.Text    = LangMan.LS(LSID.LSID_ShortTitle);
            lblAuthor.Text        = LangMan.LS(LSID.LSID_Author);
            lblTitle.Text         = LangMan.LS(LSID.LSID_Title);
            lblPublication.Text   = LangMan.LS(LSID.LSID_Publication);
            pageCommon.Text       = LangMan.LS(LSID.LSID_Common);
            pageText.Text         = LangMan.LS(LSID.LSID_Text);
            pageRepositories.Text = LangMan.LS(LSID.LSID_RPRepositories);
            pageNotes.Text        = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text   = LangMan.LS(LSID.LSID_RPMultimedia);

            fController = new SourceEditDlgController(this);
            fController.Init(baseWin);

            fRepositoriesList.ListModel = new SourceRepositoriesSublistModel(baseWin, fController.LocalUndoman);
            fNotesList.ListModel        = new NoteLinksListModel(baseWin, fController.LocalUndoman);
            fMediaList.ListModel        = new MediaLinksListModel(baseWin, fController.LocalUndoman);
        }
Пример #5
0
        public ResearchEditDlg()
        {
            InitializeComponent();

            btnAccept.Image = GKResources.iBtnAccept;
            btnCancel.Image = GKResources.iBtnCancel;

            for (GKResearchPriority rp = GKResearchPriority.rpNone; rp <= GKResearchPriority.rpTop; rp++)
            {
                cmbPriority.Items.Add(LangMan.LS(GKData.PriorityNames[(int)rp]));
            }

            for (GKResearchStatus rs = GKResearchStatus.rsDefined; rs <= GKResearchStatus.rsWithdrawn; rs++)
            {
                cmbStatus.Items.Add(LangMan.LS(GKData.StatusNames[(int)rs]));
            }

            fTasksList           = new GKSheetList(pageTasks);
            fTasksList.OnModify += ListTasksModify;
            fTasksList.SetControlName("fTasksList"); // for purpose of tests

            fCommunicationsList           = new GKSheetList(pageCommunications);
            fCommunicationsList.OnModify += ListCommunicationsModify;
            fCommunicationsList.SetControlName("fCommunicationsList"); // for purpose of tests

            fGroupsList           = new GKSheetList(pageGroups);
            fGroupsList.OnModify += ListGroupsModify;
            fGroupsList.SetControlName("fGroupsList"); // for purpose of tests

            fNotesList = new GKSheetList(pageNotes);

            SetLang();
        }
Пример #6
0
        public AddressEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");

            fPhonesList = new GKSheetList(pagePhones);
            fPhonesList.SetControlName("fPhonesList"); // for purpose of tests
            fPhonesList.OnModify += ListModify;
            fPhonesList.AddColumn(LangMan.LS(LSID.LSID_Telephone), 350, false);

            fMailsList = new GKSheetList(pageEmails);
            fMailsList.SetControlName("fMailsList"); // for purpose of tests
            fMailsList.OnModify += ListModify;
            fMailsList.AddColumn(LangMan.LS(LSID.LSID_Mail), 350, false);

            fWebsList = new GKSheetList(pageWebPages);
            fWebsList.SetControlName("fWebsList"); // for purpose of tests
            fWebsList.OnModify += ListModify;
            fWebsList.AddColumn(LangMan.LS(LSID.LSID_WebSite), 350, false);

            // SetLocale()
            btnAccept.Text     = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text     = LangMan.LS(LSID.LSID_DlgCancel);
            Title              = LangMan.LS(LSID.LSID_Address);
            pageCommon.Text    = LangMan.LS(LSID.LSID_Address);
            lblCountry.Text    = LangMan.LS(LSID.LSID_AdCountry);
            lblState.Text      = LangMan.LS(LSID.LSID_AdState);
            lblCity.Text       = LangMan.LS(LSID.LSID_AdCity);
            lblPostalCode.Text = LangMan.LS(LSID.LSID_AdPostalCode);
            lblAddress.Text    = LangMan.LS(LSID.LSID_Address);
            pagePhones.Text    = LangMan.LS(LSID.LSID_Telephones);
            pageEmails.Text    = LangMan.LS(LSID.LSID_EMails);
            pageWebPages.Text  = LangMan.LS(LSID.LSID_WebSites);

            fController = new AddressEditDlgController(this);
            fController.Init(baseWin);
        }
Пример #7
0
        public GroupEditDlg()
        {
            InitializeComponent();

            btnAccept.Image = GKResources.iBtnAccept;
            btnCancel.Image = GKResources.iBtnCancel;

            fMembersList = new GKSheetList(pageMembers);
            fMembersList.SetControlName("fMembersList"); // for purpose of tests
            fMembersList.OnModify += ModifyMembersSheet;

            fNotesList = new GKSheetList(pageNotes);
            fMediaList = new GKSheetList(pageMultimedia);

            // SetLang()
            Text                = LangMan.LS(LSID.LSID_WinGroupEdit);
            btnAccept.Text      = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text      = LangMan.LS(LSID.LSID_DlgCancel);
            lblName.Text        = LangMan.LS(LSID.LSID_Title);
            pageMembers.Text    = LangMan.LS(LSID.LSID_Members);
            pageNotes.Text      = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia);
        }
Пример #8
0
        public AddressEditDlg()
        {
            InitializeComponent();

            btnAccept.Image = GKResources.iBtnAccept;
            btnCancel.Image = GKResources.iBtnCancel;

            fPhonesList = new GKSheetList(pagePhones);
            fPhonesList.SetControlName("fPhonesList"); // for purpose of tests
            fPhonesList.OnModify += ListModify;
            fPhonesList.AddColumn(LangMan.LS(LSID.LSID_Telephone), 350, false);

            fMailsList = new GKSheetList(pageEmails);
            fMailsList.SetControlName("fMailsList"); // for purpose of tests
            fMailsList.OnModify += ListModify;
            fMailsList.AddColumn(LangMan.LS(LSID.LSID_Mail), 350, false);

            fWebsList = new GKSheetList(pageWebPages);
            fWebsList.SetControlName("fWebsList"); // for purpose of tests
            fWebsList.OnModify += ListModify;
            fWebsList.AddColumn(LangMan.LS(LSID.LSID_WebSite), 350, false);

            // SetLang()
            btnAccept.Text     = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text     = LangMan.LS(LSID.LSID_DlgCancel);
            Text               = LangMan.LS(LSID.LSID_Address);
            pageCommon.Text    = LangMan.LS(LSID.LSID_Address);
            lblCountry.Text    = LangMan.LS(LSID.LSID_AdCountry);
            lblState.Text      = LangMan.LS(LSID.LSID_AdState);
            lblCity.Text       = LangMan.LS(LSID.LSID_AdCity);
            lblPostalCode.Text = LangMan.LS(LSID.LSID_AdPostalCode);
            lblAddress.Text    = LangMan.LS(LSID.LSID_Address);
            pagePhones.Text    = LangMan.LS(LSID.LSID_Telephones);
            pageEmails.Text    = LangMan.LS(LSID.LSID_EMails);
            pageWebPages.Text  = LangMan.LS(LSID.LSID_WebSites);
        }
Пример #9
0
        public FamilyEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image        = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image        = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");
            btnHusbandAdd.Image    = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnHusbandDelete.Image = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnHusbandSel.Image    = UIHelper.LoadResourceImage("Resources.btn_jump.gif");
            btnWifeAdd.Image       = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnWifeDelete.Image    = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnWifeSel.Image       = UIHelper.LoadResourceImage("Resources.btn_jump.gif");

            txtHusband.TextChanged += EditSpouse_TextChanged;
            txtWife.TextChanged    += EditSpouse_TextChanged;

            fChildrenList = new GKSheetList(pageChilds);
            fChildrenList.SetControlName("fChildsList"); // for purpose of tests
            fChildrenList.OnItemValidating += FamilyEditDlg_ItemValidating;
            fChildrenList.OnModify         += ModifyChildrenSheet;

            fEventsList = new GKSheetList(pageEvents);
            fEventsList.SetControlName("fEventsList"); // for purpose of tests

            fNotesList = new GKSheetList(pageNotes);
            fNotesList.SetControlName("fNotesList"); // for purpose of tests

            fMediaList = new GKSheetList(pageMultimedia);
            fMediaList.SetControlName("fMediaList"); // for purpose of tests

            fSourcesList = new GKSheetList(pageSources);
            fSourcesList.SetControlName("fSourcesList"); // for purpose of tests

            // SetLang()
            btnAccept.Text      = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text      = LangMan.LS(LSID.LSID_DlgCancel);
            GroupBox1.Text      = LangMan.LS(LSID.LSID_Family);
            lblHusband.Text     = LangMan.LS(LSID.LSID_Husband);
            lblWife.Text        = LangMan.LS(LSID.LSID_Wife);
            lblStatus.Text      = LangMan.LS(LSID.LSID_Status);
            pageChilds.Text     = LangMan.LS(LSID.LSID_Childs);
            pageEvents.Text     = LangMan.LS(LSID.LSID_Events);
            pageNotes.Text      = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia);
            pageSources.Text    = LangMan.LS(LSID.LSID_RPSources);
            lblRestriction.Text = LangMan.LS(LSID.LSID_Restriction);

            SetToolTip(btnHusbandAdd, LangMan.LS(LSID.LSID_HusbandAddTip));
            SetToolTip(btnHusbandDelete, LangMan.LS(LSID.LSID_HusbandDeleteTip));
            SetToolTip(btnHusbandSel, LangMan.LS(LSID.LSID_HusbandSelTip));
            SetToolTip(btnWifeAdd, LangMan.LS(LSID.LSID_WifeAddTip));
            SetToolTip(btnWifeDelete, LangMan.LS(LSID.LSID_WifeDeleteTip));
            SetToolTip(btnWifeSel, LangMan.LS(LSID.LSID_WifeSelTip));

            fController = new FamilyEditDlgController(this);
            fController.Init(baseWin);

            fChildrenList.ListModel = new ChildrenListModel(baseWin, fController.LocalUndoman);
            fEventsList.ListModel   = new EventsListModel(baseWin, fController.LocalUndoman, false);
            fNotesList.ListModel    = new NoteLinksListModel(baseWin, fController.LocalUndoman);
            fMediaList.ListModel    = new MediaLinksListModel(baseWin, fController.LocalUndoman);
            fSourcesList.ListModel  = new SourceCitationsListModel(baseWin, fController.LocalUndoman);
        }
Пример #10
0
        public PersonEditDlgEx(IBaseWindow baseWin)
        {
            InitializeComponent();

            txtMarriedSurname.TextChanged += Names_TextChanged;
            txtSurname.TextChanged        += Names_TextChanged;
            txtName.TextChanged           += Names_TextChanged;
            cmbPatronymic.TextChanged     += Names_TextChanged;

            btnAccept.Image         = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image         = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");
            btnPortraitAdd.Image    = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnPortraitDelete.Image = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnParentsAdd.Image     = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnParentsEdit.Image    = UIHelper.LoadResourceImage("Resources.btn_rec_edit.gif");
            btnParentsDelete.Image  = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnFatherAdd.Image      = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnFatherDelete.Image   = UIHelper.LoadResourceImage("Resources.btn_rec_edit.gif");
            btnFatherSel.Image      = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnMotherAdd.Image      = UIHelper.LoadResourceImage("Resources.btn_rec_new.gif");
            btnMotherDelete.Image   = UIHelper.LoadResourceImage("Resources.btn_rec_edit.gif");
            btnMotherSel.Image      = UIHelper.LoadResourceImage("Resources.btn_rec_delete.gif");
            btnNameCopy.Image       = UIHelper.LoadResourceImage("Resources.btn_copy.gif");

            fEventsList = new GKSheetList(pageEvents);
            fEventsList.SetControlName("fEventsList"); // for purpose of tests

            fSpousesList = new GKSheetList(pageSpouses);
            fSpousesList.SetControlName("fSpousesList"); // for purpose of tests
            fSpousesList.OnModify += ModifySpousesSheet;

            fNamesList           = new GKSheetList(pageNames);
            fNamesList.OnModify += ModifyNamesSheet;
            fNamesList.SetControlName("fNamesList"); // for purpose of tests

            fAssociationsList           = new GKSheetList(pageAssociations);
            fAssociationsList.OnModify += ModifyAssociationsSheet;
            fAssociationsList.SetControlName("fAssociationsList"); // for purpose of tests

            fGroupsList = new GKSheetList(pageGroups);
            fGroupsList.SetControlName("fGroupsList"); // for purpose of tests
            fGroupsList.OnModify += ModifyGroupsSheet;

            fNotesList = new GKSheetList(pageNotes);
            fNotesList.SetControlName("fNotesList"); // for purpose of tests

            fMediaList = new GKSheetList(pageMultimedia);
            fMediaList.SetControlName("fMediaList"); // for purpose of tests

            fSourcesList = new GKSheetList(pageSources);
            fSourcesList.SetControlName("fSourcesList"); // for purpose of tests

            fUserRefList = new GKSheetList(pageUserRefs);
            fUserRefList.SetControlName("fUserRefList"); // for purpose of tests

            fParentsList = new GKSheetList(pageParents);
            fParentsList.SetControlName("fParentsList"); // for purpose of tests
            fParentsList.OnModify += ModifyParentsSheet;

            imgPortrait.AddButton(btnPortraitAdd);
            imgPortrait.AddButton(btnPortraitDelete);

            SetLocale();

            fController = new PersonEditDlgController(this);
            fController.Init(baseWin);

            fEventsList.ListModel       = new EventsListModel(baseWin, fController.LocalUndoman, true);
            fNotesList.ListModel        = new NoteLinksListModel(baseWin, fController.LocalUndoman);
            fMediaList.ListModel        = new MediaLinksListModel(baseWin, fController.LocalUndoman);
            fSourcesList.ListModel      = new SourceCitationsListModel(baseWin, fController.LocalUndoman);
            fAssociationsList.ListModel = new AssociationsListModel(baseWin, fController.LocalUndoman);

            fGroupsList.ListModel  = new GroupsSublistModel(baseWin, fController.LocalUndoman);
            fNamesList.ListModel   = new NamesSublistModel(baseWin, fController.LocalUndoman);
            fSpousesList.ListModel = new SpousesSublistModel(baseWin, fController.LocalUndoman);
            fUserRefList.ListModel = new URefsSublistModel(baseWin, fController.LocalUndoman);
            fParentsList.ListModel = new ParentsSublistModel(baseWin, fController.LocalUndoman);
        }
Пример #11
0
        public FamilyEditDlg()
        {
            InitializeComponent();

            txtHusband.TextChanged += EditSpouse_TextChanged;
            txtWife.TextChanged    += EditSpouse_TextChanged;

            for (GEDCOMRestriction res = GEDCOMRestriction.rnNone; res <= GEDCOMRestriction.rnLast; res++)
            {
                cmbRestriction.Items.Add(LangMan.LS(GKData.Restrictions[(int)res]));
            }

            for (int i = 0; i < GKData.MarriageStatus.Length; i++)
            {
                cmbMarriageStatus.Items.Add(LangMan.LS(GKData.MarriageStatus[i].Name));
            }

            fChildrenList = new GKSheetList(pageChilds);
            fChildrenList.SetControlName("fChildsList"); // for purpose of tests
            fChildrenList.OnItemValidating += FamilyEditDlg_ItemValidating;
            fChildrenList.OnModify         += ModifyChildrenSheet;

            fEventsList = new GKSheetList(pageEvents);
            fEventsList.SetControlName("fEventsList"); // for purpose of tests

            fNotesList = new GKSheetList(pageNotes);
            fNotesList.SetControlName("fNotesList"); // for purpose of tests

            fMediaList = new GKSheetList(pageMultimedia);
            fMediaList.SetControlName("fMediaList"); // for purpose of tests

            fSourcesList = new GKSheetList(pageSources);
            fSourcesList.SetControlName("fSourcesList"); // for purpose of tests

            btnAccept.Image        = GKResources.iBtnAccept;
            btnCancel.Image        = GKResources.iBtnCancel;
            btnHusbandAdd.Image    = GKResources.iRecNew;
            btnHusbandDelete.Image = GKResources.iRecDelete;
            btnHusbandSel.Image    = GKResources.iToMan;
            btnWifeAdd.Image       = GKResources.iRecNew;
            btnWifeDelete.Image    = GKResources.iRecDelete;
            btnWifeSel.Image       = GKResources.iToMan;

            // SetLang()
            btnAccept.Text      = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text      = LangMan.LS(LSID.LSID_DlgCancel);
            GroupBox1.Text      = LangMan.LS(LSID.LSID_Family);
            lblHusband.Text     = LangMan.LS(LSID.LSID_Husband);
            lblWife.Text        = LangMan.LS(LSID.LSID_Wife);
            lblStatus.Text      = LangMan.LS(LSID.LSID_Status);
            pageChilds.Text     = LangMan.LS(LSID.LSID_Childs);
            pageEvents.Text     = LangMan.LS(LSID.LSID_Events);
            pageNotes.Text      = LangMan.LS(LSID.LSID_RPNotes);
            pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia);
            pageSources.Text    = LangMan.LS(LSID.LSID_RPSources);
            lblRestriction.Text = LangMan.LS(LSID.LSID_Restriction);

            toolTip1.SetToolTip(btnHusbandAdd, LangMan.LS(LSID.LSID_HusbandAddTip));
            toolTip1.SetToolTip(btnHusbandDelete, LangMan.LS(LSID.LSID_HusbandDeleteTip));
            toolTip1.SetToolTip(btnHusbandSel, LangMan.LS(LSID.LSID_HusbandSelTip));
            toolTip1.SetToolTip(btnWifeAdd, LangMan.LS(LSID.LSID_WifeAddTip));
            toolTip1.SetToolTip(btnWifeDelete, LangMan.LS(LSID.LSID_WifeDeleteTip));
            toolTip1.SetToolTip(btnWifeSel, LangMan.LS(LSID.LSID_WifeSelTip));
        }
Пример #12
0
        public PersonEditDlg()
        {
            InitializeComponent();

            txtMarriedSurname.TextChanged += Names_TextChanged;
            txtSurname.TextChanged        += Names_TextChanged;
            txtName.TextChanged           += Names_TextChanged;
            cmbPatronymic.TextChanged     += Names_TextChanged;

            btnAccept.Image         = GKResources.iBtnAccept;
            btnCancel.Image         = GKResources.iBtnCancel;
            btnPortraitAdd.Image    = GKResources.iRecNew;
            btnPortraitDelete.Image = GKResources.iRecDelete;
            btnParentsAdd.Image     = GKResources.iRecNew;
            btnParentsEdit.Image    = GKResources.iRecEdit;
            btnParentsDelete.Image  = GKResources.iRecDelete;
            btnFatherAdd.Image      = GKResources.iRecNew;
            btnFatherDelete.Image   = GKResources.iRecEdit;
            btnFatherSel.Image      = GKResources.iRecDelete;
            btnMotherAdd.Image      = GKResources.iRecNew;
            btnMotherDelete.Image   = GKResources.iRecEdit;
            btnMotherSel.Image      = GKResources.iRecDelete;
            btnNameCopy.Image       = GKResources.iCopy;

            imgPortrait.AddButton(btnPortraitAdd);
            imgPortrait.AddButton(btnPortraitDelete);
            for (GEDCOMRestriction res = GEDCOMRestriction.rnNone; res <= GEDCOMRestriction.rnPrivacy; res++)
            {
                cmbRestriction.Items.Add(LangMan.LS(GKData.Restrictions[(int)res]));
            }

            for (GEDCOMSex sx = GEDCOMSex.svNone; sx <= GEDCOMSex.svUndetermined; sx++)
            {
                cmbSex.Items.Add(GKUtils.SexStr(sx));
            }

            fEventsList = new GKSheetList(pageEvents);
            fEventsList.SetControlName("fEventsList"); // for purpose of tests

            fSpousesList = new GKSheetList(pageSpouses);
            fSpousesList.SetControlName("fSpousesList"); // for purpose of tests
            fSpousesList.OnModify += ModifySpousesSheet;

            fNamesList = new GKSheetList(pageNames);
            fNamesList.SetControlName("fNamesList"); // for purpose of tests

            fAssociationsList           = new GKSheetList(pageAssociations);
            fAssociationsList.OnModify += ModifyAssociationsSheet;
            fAssociationsList.SetControlName("fAssociationsList"); // for purpose of tests

            fGroupsList = new GKSheetList(pageGroups);
            fGroupsList.SetControlName("fGroupsList"); // for purpose of tests
            fGroupsList.OnModify += ModifyGroupsSheet;

            fNotesList = new GKSheetList(pageNotes);
            fNotesList.SetControlName("fNotesList"); // for purpose of tests

            fMediaList = new GKSheetList(pageMultimedia);
            fMediaList.SetControlName("fMediaList"); // for purpose of tests

            fSourcesList = new GKSheetList(pageSources);
            fSourcesList.SetControlName("fSourcesList"); // for purpose of tests

            fUserRefList = new GKSheetList(pageUserRefs);
            fUserRefList.SetControlName("fUserRefList"); // for purpose of tests

            btnPortraitAdd.Image    = GKResources.iRecNew;
            btnPortraitDelete.Image = GKResources.iRecDelete;
            btnFatherAdd.Image      = GKResources.iRecNew;
            btnFatherDelete.Image   = GKResources.iRecDelete;
            btnFatherSel.Image      = GKResources.iToMan;
            btnMotherAdd.Image      = GKResources.iRecNew;
            btnMotherDelete.Image   = GKResources.iRecDelete;
            btnMotherSel.Image      = GKResources.iToMan;
            btnParentsAdd.Image     = GKResources.iRecNew;
            btnParentsEdit.Image    = GKResources.iRecEdit;
            btnParentsDelete.Image  = GKResources.iRecDelete;

            imgPortrait.SizeMode = PictureBoxSizeMode.CenterImage;

            SetLang();
        }