Example #1
0
    protected void ddlTypeOfPropertyIns_SelectedIndexChanged(object sender, EventArgs e)
    {
        String PropertyType = ((DropDownList)FvValuationForm.FindControl("ddlTypeOfPropertyIns")).SelectedItem.Text;

        switch (PropertyType)
        {
        case "Residencial":
        {
            MultiView mvR = ((MultiView)FvValuationForm.FindControl("mvPropertyDetailsIns"));
            mvR.SetActiveView(mvR.Views[0]);
            break;
        }

        case "Commercial":
        {
            MultiView mvC = ((MultiView)FvValuationForm.FindControl("mvPropertyDetailsIns"));
            mvC.SetActiveView(mvC.Views[1]);
            break;
        }

        case "Industrial":
        {
            MultiView mvi = ((MultiView)FvValuationForm.FindControl("mvPropertyDetailsIns"));
            mvi.SetActiveView(mvi.Views[2]);
            break;
        }
        }
    }
Example #2
0
 protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     ValuationId = Guid.NewGuid();
     FvValuationForm.InsertItem(true);
     FvRegistration.InsertItem(true);
 }
Example #3
0
    protected void btnValuationForm_Click(object sender, EventArgs e)
    {
        MvRegistration.SetActiveView(MvRegistration.Views[1]);

        FvValuationForm.ChangeMode(FormViewMode.Insert);
    }