Beispiel #1
0
 private void ButtonCompareClick(object sender, EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 1)
     {
         HistoryItem h2     = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         string      descr2 = h2.ToHHMMSS() + " - " + h2.Description;
         using (var compareForm = new Compare())
         {
             compareForm.Initialize(_subtitle, Configuration.Settings.Language.General.CurrentSubtitle, h2.Subtitle, descr2);
             compareForm.ShowDialog(this);
         }
     }
 }
Beispiel #2
0
 private void ButtonCompareClick(object sender, System.EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 1)
     {
         HistoryItem h2     = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         string      descr2 = string.Format("{0:00}:{1:00}:{2:00}",
                                            h2.Timestamp.Hour,
                                            h2.Timestamp.Minute,
                                            h2.Timestamp.Second) + " - " + h2.Description;
         Compare compareForm = new Compare();
         compareForm.Initialize(_subtitle, Configuration.Settings.Language.General.CurrentSubtitle, h2.Subtitle, descr2);
         compareForm.Show();
     }
 }
Beispiel #3
0
 private void ButtonCompareHistoryClick(object sender, EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 2)
     {
         HistoryItem h1     = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         HistoryItem h2     = _subtitle.HistoryItems[listViewHistory.SelectedItems[1].Index];
         string      descr1 = h1.ToHHMMSS() + " - " + h1.Description;
         string      descr2 = h2.ToHHMMSS() + " - " + h2.Description;
         using (var compareForm = new Compare())
         {
             compareForm.Initialize(h1.Subtitle, descr1, h2.Subtitle, descr2);
             compareForm.ShowDialog(this);
         }
     }
 }
Beispiel #4
0
 private void ButtonCompareHistoryClick(object sender, System.EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 2)
     {
         HistoryItem h1     = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         HistoryItem h2     = _subtitle.HistoryItems[listViewHistory.SelectedItems[1].Index];
         string      descr1 = string.Format("{0:00}:{1:00}:{2:00}",
                                            h1.Timestamp.Hour,
                                            h1.Timestamp.Minute,
                                            h1.Timestamp.Second) + " - " + h1.Description;
         string descr2 = string.Format("{0:00}:{1:00}:{2:00}",
                                       h2.Timestamp.Hour,
                                       h2.Timestamp.Minute,
                                       h2.Timestamp.Second) + " - " + h2.Description;
         Compare compareForm = new Compare();
         compareForm.Initialize(h1.Subtitle, descr1, h2.Subtitle, descr2);
         compareForm.Show();
     }
 }
Beispiel #5
0
 private void ToolStripMenuItemCompareClick(object sender, EventArgs e)
 {
     var compareForm = new Compare();
     if (_subtitleAlternate != null && _subtitleAlternateFileName != null)
         compareForm.Initialize(_subtitle, _fileName, _subtitleAlternate, _subtitleAlternateFileName);
     else
         compareForm.Initialize(_subtitle, _fileName, _languageGeneral.CurrentSubtitle);
     compareForm.Show(this);
 }
 private void ButtonCompareClick(object sender, EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 1)
     {
         HistoryItem h2 = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         string descr2 = h2.ToHHMMSS() + " - " + h2.Description;
         using (var compareForm = new Compare())
         {
             compareForm.Initialize(_subtitle, Configuration.Settings.Language.General.CurrentSubtitle, h2.Subtitle, descr2);
             compareForm.ShowDialog(this);
         }
     }
 }
 private void ButtonCompareHistoryClick(object sender, EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 2)
     {
         HistoryItem h1 = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         HistoryItem h2 = _subtitle.HistoryItems[listViewHistory.SelectedItems[1].Index];
         string descr1 = h1.ToHHMMSS() + " - " + h1.Description;
         string descr2 = h2.ToHHMMSS() + " - " + h2.Description;
         using (var compareForm = new Compare())
         {
             compareForm.Initialize(h1.Subtitle, descr1, h2.Subtitle, descr2);
             compareForm.ShowDialog(this);
         }
     }
 }
Beispiel #8
0
 private void ButtonCompareHistoryClick(object sender, System.EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 2)
     {
         HistoryItem h1 = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         HistoryItem h2 = _subtitle.HistoryItems[listViewHistory.SelectedItems[1].Index];
         string descr1 = string.Format("{0:00}:{1:00}:{2:00}",
                                             h1.Timestamp.Hour,
                                             h1.Timestamp.Minute,
                                             h1.Timestamp.Second) + " - " + h1.Description;
         string descr2 = string.Format("{0:00}:{1:00}:{2:00}",
                                             h2.Timestamp.Hour,
                                             h2.Timestamp.Minute,
                                             h2.Timestamp.Second) + " - " + h2.Description;
         Compare compareForm = new Compare();
         compareForm.Initialize(h1.Subtitle, descr1, h2.Subtitle, descr2);
         compareForm.Show();
     }
 }
Beispiel #9
0
 private void ButtonCompareClick(object sender, System.EventArgs e)
 {
     if (listViewHistory.SelectedItems.Count == 1)
     {
         HistoryItem h2 = _subtitle.HistoryItems[listViewHistory.SelectedItems[0].Index];
         string descr2 = string.Format("{0:00}:{1:00}:{2:00}",
                                             h2.Timestamp.Hour,
                                             h2.Timestamp.Minute,
                                             h2.Timestamp.Second) + " - " + h2.Description;
         Compare compareForm = new Compare();
         compareForm.Initialize(_subtitle, Configuration.Settings.Language.General.CurrentSubtitle, h2.Subtitle, descr2);
         compareForm.Show();
     }
 }