コード例 #1
0
 public EditAvisynthProfileWindow(AvisynthSettings avs)
 {            
     try
     {
         InitializeComponent();
         this.avs = new AvisynthSettings(avs);
         textBoxDescription.Text = avs.desc;
         richTextBoxCommands.AppendText(avs.commands);
     }
     catch (Exception ex)
     {
         Global.ErrorMsg(ex);
     }
 }
コード例 #2
0
 public EditAvisynthProfileWindow(AvisynthSettings avs)
 {
     try
     {
         InitializeComponent();
         this.avs = new AvisynthSettings(avs);
         textBoxDescription.Text = avs.desc;
         richTextBoxCommands.AppendText(avs.commands);
     }
     catch (Exception ex)
     {
         Global.ErrorMsg(ex);
     }
 }
コード例 #3
0
 private void buttonAviProfileDown_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         int index = listBoxAvisynthProfiles.SelectedIndex;
         if (index < settings.avisynthSettings.Count - 1)
         {
             AvisynthSettings avs = new AvisynthSettings(settings.avisynthSettings[index]);
             settings.avisynthSettings.RemoveAt(index);
             settings.avisynthSettings.Insert(index + 1, avs);
             UpdateAvisynthProfiles();
             listBoxAvisynthProfiles.SelectedIndex = index + 1;
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #4
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)
     {
     }
 }
コード例 #5
0
 private void buttonAviProfileDown_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         int index = listBoxAvisynthProfiles.SelectedIndex;
         if (index < settings.avisynthSettings.Count - 1)
         {
             AvisynthSettings avs = new AvisynthSettings(settings.avisynthSettings[index]);
             settings.avisynthSettings.RemoveAt(index);
             settings.avisynthSettings.Insert(index + 1, avs);
             UpdateAvisynthProfiles();
             listBoxAvisynthProfiles.SelectedIndex = index + 1;
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #6
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)
     {
     }
 }
コード例 #7
0
 public AvisynthSettings(AvisynthSettings orig)
 {
     this.desc = orig.desc;
     this.commands = orig.commands;
 }
コード例 #8
0
ファイル: UserSettings.cs プロジェクト: dbremner/blurip
 public AvisynthSettings(AvisynthSettings orig)
 {
     this.desc     = orig.desc;
     this.commands = orig.commands;
 }