Beispiel #1
0
        public static void Main(string[] args)
        {
            mt = null;

            CreateTaskbarIcon();
            //TaskBarIconThread = new Thread(CreateTaskbarIcon);
            //TaskBarIconThread.SetApartmentState(ApartmentState.STA);
            //TaskBarIconThread.Start();
            ///
            /// Registrazione utente
            ///
            try
            {
                Registration registration = new Registration();

                if (registration.ShowDialog() == false)
                {
                    return;
                }
                LoggedU = (LoggedUser)registration.Result;      //??????

                User u = new User(LoggedU.Nome, LoggedU.Cognome, LoggedU.ProfilePic);

                mt = new MainThread(u);
                mt.setModalità(LoggedU.Modality);
                ///
                /// Mainthread
                ///

                RU = new RicercaUtente(mt);
                RU.ShowDialog();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
#if DEBUG
            return;
#endif
            Environment.Exit(Environment.ExitCode);

            return;
        }
Beispiel #2
0
 public InvioTCP(IPEndPoint localEP, User u, IPEndPoint remoteEP, MainThread t)
 {
     utente_da_inviare = u;
     this.localEP      = localEP;
     this.remoteEp     = remoteEP;
 }
Beispiel #3
0
 public InvioTCP(IPEndPoint localEP, User u, MainThread t)
 {
     utente_da_inviare = u;
     this.localEP      = localEP;
     mt = t;
 }