コード例 #1
0
        public bool ShowEditConnectionDialog(IDbFactory factory,
                                             DatabaseConnectionSettings settings,
                                             out DatabaseConnectionSettings newSettings)
        {
            SqliteDatabaseConnectionSettingsDialog dlg = new  SqliteDatabaseConnectionSettingsDialog(factory, settings);
            bool result = RunDialog(dlg);

            if (result)
            {
                newSettings = dlg.ConnectionSettings;
            }
            else
            {
                newSettings = null;
            }
            return(result);
        }
コード例 #2
0
		
		public bool ShowEditConnectionDialog (IDbFactory factory, 
		                                      DatabaseConnectionSettings settings, 
		                                      out DatabaseConnectionSettings newSettings)
		{
			
			SqliteDatabaseConnectionSettingsDialog dlg = new  SqliteDatabaseConnectionSettingsDialog(factory, settings);
			bool result = RunDialog (dlg);
			if (result)
				newSettings = dlg.ConnectionSettings;
			else
				newSettings = null;			
			return result;