public void DoMailsAction(RecordAction action, GDMTag itemTag) { string val; switch (action) { case RecordAction.raAdd: val = ""; if (AppHost.StdDialogs.GetInput(fView, LangMan.LS(LSID.LSID_Mail), ref val)) { fAddress.AddEmailAddress(val); } break; case RecordAction.raEdit: val = itemTag.StringValue; if (AppHost.StdDialogs.GetInput(fView, LangMan.LS(LSID.LSID_Mail), ref val)) { itemTag.StringValue = val; } break; case RecordAction.raDelete: fAddress.EmailAddresses.Delete(itemTag); break; } UpdateLists(); }
public override void Setup() { fBase = new BaseWindowStub(); fAddress = new GDMAddress(); fAddress.AddWebPage("test"); fAddress.AddPhoneNumber("test"); fAddress.AddEmailAddress("test"); fAddress.AddFaxNumber("test"); fDialog = new OrganizerWin(fBase); fDialog.Show(); }
public override void Setup() { TestUtils.InitGEDCOMProviderTest(); WFAppHost.ConfigureBootstrap(false); fBase = new BaseWindowStub(); fAddress = new GDMAddress(); fAddress.AddWebPage("test"); fAddress.AddPhoneNumber("test"); fAddress.AddEmailAddress("test"); fAddress.AddFaxNumber("test"); fDialog = new AddressEditDlg(fBase); fDialog.Address = fAddress; fDialog.Show(); }