public CommunicationEditDlg() { InitializeComponent(); fTempInd = null; for (GKCommunicationType ct = GKCommunicationType.ctCall; ct <= GKCommunicationType.ctLast; ct++) { cmbCorrType.Items.Add(LangMan.LS(GKData.CommunicationNames[(int)ct])); } fNotesList = new GKSheetList(pageNotes); fMediaList = new GKSheetList(pageMultimedia); // SetLang() btnAccept.Text = LangMan.LS(LSID.LSID_DlgAccept); btnCancel.Text = LangMan.LS(LSID.LSID_DlgCancel); Title = LangMan.LS(LSID.LSID_WinCommunicationEdit); pageNotes.Text = LangMan.LS(LSID.LSID_RPNotes); pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia); lblTheme.Text = LangMan.LS(LSID.LSID_Theme); lblCorresponder.Text = LangMan.LS(LSID.LSID_Corresponder); lblType.Text = LangMan.LS(LSID.LSID_Type); lblDate.Text = LangMan.LS(LSID.LSID_Date); btnPersonAdd.ToolTip = LangMan.LS(LSID.LSID_PersonAttachTip); txtDir.Items.Clear(); txtDir.Items.AddRange(GKComboItem.Convert(new string[] { LangMan.LS(LSID.LSID_CD_1), LangMan.LS(LSID.LSID_CD_2) })); }
public static string GetCommunicationTypeStr(GKCommunicationType value) { string s = ""; switch (value) { case GKCommunicationType.ctCall: s = "call"; break; case GKCommunicationType.ctEMail: s = "email"; break; case GKCommunicationType.ctFax: s = "fax"; break; case GKCommunicationType.ctLetter: s = "letter"; break; case GKCommunicationType.ctTape: s = "tape"; break; case GKCommunicationType.ctVisit: s = "visit"; break; } return(s); }
public CommunicationEditDlgController(ICommunicationEditDlg view) : base(view) { fTempInd = null; for (GKCommunicationType ct = GKCommunicationType.ctCall; ct <= GKCommunicationType.ctLast; ct++) { fView.CorrType.Add(LangMan.LS(GKData.CommunicationNames[(int)ct])); } fView.Dir.AddRange(new object[] { LangMan.LS(LSID.LSID_CD_1), LangMan.LS(LSID.LSID_CD_2) }); fView.Name.Activate(); }