Пример #1
0
 private void btnEditProgramSource_OnClick(object sender, RoutedEventArgs e)
 {
     ProgramSource seletedProgramSource = programSourceView.SelectedItem as ProgramSource;
     if (seletedProgramSource != null)
     {
         ProgramSourceSetting programSource = new ProgramSourceSetting(this);
         programSource.UpdateItem(seletedProgramSource);
         programSource.ShowDialog();
     }
     else
     {
         MessageBox.Show("Please select a program source");
     }
 }
Пример #2
0
        private void btnEditProgramSource_OnClick(object sender, RoutedEventArgs e)
        {
            ProgramSource seletedProgramSource = programSourceView.SelectedItem as ProgramSource;

            if (seletedProgramSource != null)
            {
                ProgramSourceSetting programSource = new ProgramSourceSetting(this);
                programSource.UpdateItem(seletedProgramSource);
                programSource.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please select a program source");
            }
        }
Пример #3
0
 private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
 {
     ProgramSourceSetting programSource = new ProgramSourceSetting(this);
     programSource.ShowDialog();
 }
Пример #4
0
        private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
        {
            ProgramSourceSetting programSource = new ProgramSourceSetting(this);

            programSource.ShowDialog();
        }