Exemplo n.º 1
0
        private void ButtonEventEdit_Clicked(object sender, EventArgs e)
        {
            var createWindow = new AddOrEditEvent(_currentEvents[_eventIndex])
            {
                SelectedDate = _selectedDate,
                NeadedDays   = EventsList.Keys.Where(key => EventsList[key].Contains(_currentEvents[_eventIndex])).ToList()
            };

            _isCreatedNew = false;
            createWindow.SaveButtonClicked += SaveEventChanges;
            createWindow.WindowClosed      += Window_Closed;
            Enabled = false;
            createWindow.Show();
        }
Exemplo n.º 2
0
        private void ButtonEventAdd_Click(object sender, EventArgs e)
        {
            var createWindow = new AddOrEditEvent
            {
                SelectedDate = _selectedDate,
                NeadedDays   = new List <Day>()
            };

            _isCreatedNew = true;
            createWindow.SaveButtonClicked += SaveEventChanges;
            createWindow.WindowClosed      += Window_Closed;
            Enabled = false;
            createWindow.Show();
        }