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

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

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

            case RecordAction.raDelete:
                fAddress.WebPages.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();
        }
Exemple #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();
        }