Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.Params["Mode"] != null)
            {
                switch (Request.Params["Mode"])
                {
                case "InspectionYearlyScheduleDe":
                    MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[1]);
                    break;

                case "InspectionYearlySchedule":
                    MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[0]);
                    break;
                }
            }
        }
    }
Exemplo n.º 2
0
 protected void GvYearlyInspection_SelectedIndexChanged(object sender, EventArgs e)
 {
     MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[1]);
     FvYearlySchedule.ChangeMode(FormViewMode.Edit);
 }