public void DoPhonesAction(RecordAction action, GDMTag itemTag)
        {
            string val;

            switch (action)
            {
            case RecordAction.raAdd:
                val = "";
                if (AppHost.StdDialogs.GetInput(fView, LangMan.LS(LSID.LSID_Telephone), ref val))
                {
                    fAddress.AddPhoneNumber(val);
                }
                break;

            case RecordAction.raEdit:
                val = itemTag.StringValue;
                if (AppHost.StdDialogs.GetInput(fView, LangMan.LS(LSID.LSID_Telephone), ref val))
                {
                    itemTag.StringValue = val;
                }
                break;

            case RecordAction.raDelete:
                fAddress.PhoneNumbers.Delete(itemTag);
                break;
            }
            UpdateLists();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }