Пример #1
0
        private void btInfo_Click(object sender, RoutedEventArgs e)
        {
            wdPeriodDetail view = new wdPeriodDetail(EType.WindowMode.EDIT_MODE, MyPeriod);

            if (view.ShowDialog() == true)
            {
                this.OnUpdate(sender, e);
            }
        }
Пример #2
0
        private void btAddPeriod_Click(object sender, RoutedEventArgs e)
        {
            DTO_Period period = new DTO_Period();

            period.Schedule = MySchedule.Id;

            wdPeriodDetail view = new wdPeriodDetail(EType.WindowMode.ADD_MODE, period);

            if (view.ShowDialog() == true)
            {
                LoadPeriod();
            }
        }