예제 #1
0
 private void buttonAviProfileAdd_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AvisynthSettings avs = new AvisynthSettings();
         avs.desc = Global.Res("NewAvisynthProfileDesc");
         EditAvisynthProfileWindow eapw = new EditAvisynthProfileWindow(avs);
         eapw.ShowDialog();
         if (eapw.DialogResult == true)
         {
             settings.avisynthSettings.Add(eapw.avisynthSettings);
             UpdateAvisynthProfiles();
         }
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
 private void listBoxAvisynthProfiles_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         int index = listBoxAvisynthProfiles.SelectedIndex;
         if (index > -1)
         {
             EditAvisynthProfileWindow eapw = new EditAvisynthProfileWindow(settings.avisynthSettings[index]);
             eapw.ShowDialog();
             if (eapw.DialogResult == true)
             {
                 settings.avisynthSettings[index] = new AvisynthSettings(eapw.avisynthSettings);
                 UpdateAvisynthProfiles();
                 listBoxAvisynthProfiles.SelectedIndex = index;
             }
         }
     }
     catch (Exception)
     {
     }
 }
 private void listBoxAvisynthProfiles_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         int index = listBoxAvisynthProfiles.SelectedIndex;
         if (index > -1)
         {
             EditAvisynthProfileWindow eapw = new EditAvisynthProfileWindow(settings.avisynthSettings[index]);
             eapw.ShowDialog();
             if (eapw.DialogResult == true)
             {
                 settings.avisynthSettings[index] = new AvisynthSettings(eapw.avisynthSettings);
                 UpdateAvisynthProfiles();
                 listBoxAvisynthProfiles.SelectedIndex = index;
             }
         }
     }
     catch (Exception)
     {
     }
 }
 private void buttonAviProfileAdd_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AvisynthSettings avs = new AvisynthSettings();
         avs.desc = Global.Res("NewAvisynthProfileDesc");
         EditAvisynthProfileWindow eapw = new EditAvisynthProfileWindow(avs);
         eapw.ShowDialog();
         if (eapw.DialogResult == true)
         {
             settings.avisynthSettings.Add(eapw.avisynthSettings);
             UpdateAvisynthProfiles();
         }
     }
     catch (Exception)
     {
     }
 }