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 (); } }
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(); } }