private void startNumberingFromToolStripMenuItem_Click(object sender, EventArgs e) { using (var startNumberingFrom = new StartNumberingFrom()) { if (startNumberingFrom.ShowDialog(this) == DialogResult.OK) { _startFromNumber = startNumberingFrom.StartFromNumber; _subtitle.Renumber(startNumberingFrom.StartFromNumber); SubtitleListview1.Fill(_subtitle); } } }
private void StartNumberingFromToolStripMenuItemClick(object sender, EventArgs e) { if (!IsSubtitleLoaded) { DisplaySubtitleNotLoadedMessage(); return; } ReloadFromSourceView(); using (var startNumberingFrom = new StartNumberingFrom()) { if (startNumberingFrom.ShowDialog(this) == DialogResult.OK) { SaveSubtitleListviewIndices(); MakeHistoryForUndo(_language.BeforeRenumbering); ShowStatus(string.Format(_language.RenumberedStartingFromX, startNumberingFrom.StartFromNumber)); _subtitle.Renumber(startNumberingFrom.StartFromNumber); ShowSource(); SubtitleListview1.Fill(_subtitle, _subtitleAlternate); RestoreSubtitleListviewIndices(); } } }
private void StartNumberingFromToolStripMenuItemClick(object sender, EventArgs e) { if (IsSubtitleLoaded) { ReloadFromSourceView(); var startNumberingFrom = new StartNumberingFrom(); _formPositionsAndSizes.SetPositionAndSize(startNumberingFrom); if (startNumberingFrom.ShowDialog(this) == DialogResult.OK) { SaveSubtitleListviewIndexes(); MakeHistoryForUndo(_language.BeforeRenumbering); ShowStatus(string.Format(_language.RenumberedStartingFromX, startNumberingFrom.StartFromNumber)); _subtitle.Renumber(startNumberingFrom.StartFromNumber); ShowSource(); SubtitleListview1.Fill(_subtitle, _subtitleAlternate); RestoreSubtitleListviewIndexes(); } _formPositionsAndSizes.SavePositionAndSize(startNumberingFrom); } else { MessageBox.Show(_language.NoSubtitleLoaded, Title, MessageBoxButtons.OK, MessageBoxIcon.Warning); } }