Ejemplo n.º 1
0
        private void AddEventButton_Click(object sender, EventArgs e)
        {
            var f = new AddEventForm();

            f.EventAdded += new Action <DateTime>(RefreshDayFrame);
            f.ShowDialog();
        }
Ejemplo n.º 2
0
        //Open add event form with current data filled in so user can edit event information
        //Deletes old event and adds new one through standard addEventForm Method
        private void newEdit_Click(object sender, System.EventArgs e, int eventNumber, DayFrame df, ListView listView)
        {
            var f = new AddEventForm();

            f.EventAdded += new Action <DateTime>(blankMethod);
            f.EventName   = df.events[eventNumber].Name;
            f.EventDesc   = df.events[eventNumber].Description;
            f.EventTime   = df.events[eventNumber].When;
            SqlClass.DeleteAppointment(df.events[eventNumber]);
            this.Close();
            f.ShowDialog();
        }