Ejemplo n.º 1
0
        private void confirmEvent_Click(object sender, EventArgs e)
        {
            string   eventName        = eventNameText.Text;
            string   eventDescription = eventDescriptionText.Text;
            string   owner            = Session.login;
            int      status           = 0;
            string   city             = Session.city;
            DateTime myDate           = DateTime.Now;

            string     longDateString = myDate.ToString("dd-MM-yyyy-hh-mm");
            string     photo          = Session.id + "_" + longDateString + ".jpg";
            SQLConnect sqlConnect     = new SQLConnect();

            sqlConnect.addEvent(eventName, eventDescription, owner, status, city, photo);
            FtpController ftp = new FtpController();


            ftp.upload("uploads/" + Session.id + "_" + longDateString + ".jpg", photoName);
            MessageBox.Show("Dziękujemy za dodanie zdarzenia :)");
            MainMenuUser window = new MainMenuUser();

            window.Show();
            this.Close();
        }
Ejemplo n.º 2
0
 public void SendData()
 {
     SQLConnect sqlConnect = new SQLConnect();
     //sqlConnect.AddEvent(.....);
 }