Example #1
0
    private void Init_Load()
    {
        if (Request.QueryString["id"] != null)
        {
            hfCorpId.Value = Request.QueryString["id"];
            Guid corpId = Guid.Empty;
            Guid.TryParse(hfCorpId.Value, out corpId);
            SEA_Corporation1.CorpId = corpId;
        }

        if (Request.QueryString["mode"] == "ReadOnly")
        {
            SEA_Corporation1.ChangeMode(FormViewMode.ReadOnly);
        }

        if (Request.QueryString["mode"] == "Edit")
        {
            SEA_Corporation1.ChangeMode(FormViewMode.Edit);
        }
    }
Example #2
0
 private void SEA_Corporation1_Canceled(object sender, EventArgs e)
 {
     SEA_Corporation1.ChangeMode(FormViewMode.ReadOnly);
 }