Example #1
0
        public static void RunCreation(string server, string dbname)
        {
            string login, password;

            var passwordDlg = new GetPassword ("root");
            passwordDlg.Show ();
            if (passwordDlg.Run () == (int)ResponseType.Ok)
            {
                login = passwordDlg.Login;
                password = passwordDlg.Password;
                passwordDlg.Destroy ();
                RunCreation (null, server, dbname, login, password);
            }
            else
            {
                passwordDlg.Destroy ();
            }
        }
Example #2
0
        public static void RunCreation(string server, string dbname)
        {
            string login, password;

            var passwordDlg = new GetPassword("root");

            passwordDlg.Show();
            if (passwordDlg.Run() == (int)ResponseType.Ok)
            {
                login    = passwordDlg.Login;
                password = passwordDlg.Password;
                passwordDlg.Destroy();
                RunCreation(null, server, dbname, login, password);
            }
            else
            {
                passwordDlg.Destroy();
            }
        }