Пример #1
0
        private void OnSaveNewEventClick()
        {
            OrganizeEvent NewOrgEvent = new OrganizeEvent();

            NewOrgEvent.Name            = NewName;
            NewOrgEvent.Start           = NewStart;
            NewOrgEvent.Finish          = NewEnd;
            NewOrgEvent.Information     = NewInformation;
            NewOrgEvent.EventsOrganizer = CurentOrg;

            var rep = new SQLRepository();

            rep.AddOrganizeEvent(NewOrgEvent);
            rep.Save();
        }