protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //This should probably be in a viewmodel, but keeping it here for now
         gvConnections.DataSource = LoaderWebFactory.GetSingletonInstance().GetDatabaseConnections().OrderBy(x => x.Name);
         DataBind();
     }
 }
Ejemplo n.º 2
0
    protected ILoader GetMetaLoader()
    {
        LoadQueryStringParams();
        ILoader ret = LoaderWebFactory.GetSingletonInstance().GetMetaLoader(conn_id);

        if (ret == null)
        {
            Response.Redirect("Default.aspx"); //Something's wrong, go home
        }
        return(ret);
    }