Exemplo n.º 1
0
        private void CreateButton_Click(object sender, EventArgs e)
        {
            var o           = SettingsManager.Options;
            var url         = o.InternetDatabaseUrl;
            var pql         = new Uri(url).PathAndQuery.Length;
            var navigateUrl = url.Substring(0, url.Length - pql) + "/Security/Login.aspx";
            var form        = new WebBrowserForm();

            form.StartPosition = FormStartPosition.CenterParent;
            form.NavigateUrl   = navigateUrl;
            form.ShowDialog();
            form.Dispose();
            form = null;
        }
Exemplo n.º 2
0
        private void ResetButton_Click(object sender, EventArgs e)
        {
            var o           = SettingsManager.Options;
            var url         = o.InternetDatabaseUrl;
            var pql         = new Uri(url).PathAndQuery.Length;
            var navigateUrl = url.Substring(0, url.Length - pql) + "/Security/Login.aspx?ShowLogin=0&ShowCreate=0";
            var form        = new WebBrowserForm();

            form.Size          = new Size(400, 300);
            form.Text          = "Reset Login";
            form.StartPosition = FormStartPosition.CenterParent;
            form.NavigateUrl   = navigateUrl;
            ControlsHelper.CheckTopMost(form);
            form.ShowDialog();
            form.Dispose();
        }