Exemplo n.º 1
0
    public AdminPanelSettings CreateInstance()
    {
        if (_instance == null)
        {
            _instance = new AdminPanelSettings();
            _instance.Load();
        }

        return(_instance);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        apSettings.Load();
        UserName = apSettings.User;
        install _page = Page as install;

        _web_step = _page._web_step;
        _max_step = _page._max_step;

        if (apSettings.Pass.Trim().Length > 0)
        {
            txtPassword.Attributes.Add("value", AdminPanelConstants.DummyPassword);
            txtPasswordConfirm.Attributes.Add("value", AdminPanelConstants.DummyPassword);
        }
    }