Esempio n. 1
0
        void connection_ServerAuthRequired(object sender, args.ServerEventArgs e)
        {
            Server server = e.Server;
            InserisciPasswordDialogBox ipDialogBox = new InserisciPasswordDialogBox(server.Name);

            ipDialogBox.Owner = this;
            ipDialogBox.ShowDialog();
            if (ipDialogBox.DialogResult.HasValue && (bool)ipDialogBox.DialogResult)
            {
                //Password inserita
                string password = ipDialogBox.Password;
                server.Password = password;
                connection.Connect(ref server);
            }
        }
 void connection_ServerAuthRequired(object sender, args.ServerEventArgs e)
 {
     Server server = e.Server;
     InserisciPasswordDialogBox ipDialogBox = new InserisciPasswordDialogBox(server.Name);
     ipDialogBox.Owner = this;
     ipDialogBox.ShowDialog();
     if (ipDialogBox.DialogResult.HasValue && (bool)ipDialogBox.DialogResult)
     {
         //Password inserita
         string password = ipDialogBox.Password;
         server.Password = password;
         connection.Connect(ref server);
     }
 }