Use custom msgbox

This commit is contained in:
niksedk 2023-08-09 16:43:45 +02:00
parent 1c2130a4f5
commit 43692374b7
115 changed files with 162 additions and 26 deletions

BIN
Icons/Black/Error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
Icons/Black/Information.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
Icons/Black/Question.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
Icons/Black/Warning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
Icons/DarkTheme/Error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
Icons/DarkTheme/Warning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
Icons/Legacy/Error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

BIN
Icons/Legacy/Question.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

BIN
Icons/Legacy/Warning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

View File

@ -3,6 +3,7 @@ using Nikse.SubtitleEdit.Core.Dictionaries;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -9,6 +9,7 @@ using System.Drawing;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -8,6 +8,7 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -16,6 +16,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Controls;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -13,6 +13,7 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -10,6 +10,7 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -5,6 +5,7 @@ using System;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -10,6 +10,7 @@ using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -6,6 +6,7 @@ using System.Windows.Forms;
using System.Xml;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Logic;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Assa
{

View File

@ -13,6 +13,7 @@ using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using Nikse.SubtitleEdit.Logic;
using Vosk;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -7,6 +7,7 @@ using Nikse.SubtitleEdit.Core.AudioToText;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.Http;
using Nikse.SubtitleEdit.Logic;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -15,6 +15,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Controls;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -10,6 +10,7 @@ using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -7,6 +7,7 @@ using System.Threading;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.AudioToText;
using Nikse.SubtitleEdit.Core.Http;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -8,6 +8,7 @@ using System.Text;
using System.Threading;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.Common;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{

View File

@ -23,6 +23,7 @@ using System.Text;
using System.Threading;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.Enums;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -7,6 +7,7 @@ using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.Forms;
using Nikse.SubtitleEdit.Forms.ShotChanges;
using Nikse.SubtitleEdit.Logic;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.BeautifyTimeCodes
{

View File

@ -22,6 +22,7 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.BinaryEdit
{
@ -2792,8 +2793,14 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
}
}
private bool _forceClose;
private void BinEdit_FormClosing(object sender, FormClosingEventArgs e)
{
if (_forceClose)
{
return;
}
if (_extra != null && HasChanges())
{
var result = MessageBox.Show(this, "Close and lose changes?", "SE", MessageBoxButtons.YesNoCancel);
@ -2806,6 +2813,15 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
CloseVideo();
CleanUp();
if (!e.Cancel)
{
e.Cancel = true;
// To allow windows in FormClosing...
_forceClose = true;
SynchronizationContext.Current.Post(TimeSpan.FromMilliseconds(10), () => Close());
}
}
private void CleanUp()

View File

@ -6,6 +6,7 @@ using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using static Nikse.SubtitleEdit.Forms.ExportPngXml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.BinaryEdit
{

View File

@ -3,6 +3,7 @@ using System;
using System.Globalization;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Controls;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -4,6 +4,7 @@ using System;
using System.IO;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -9,6 +9,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -7,6 +7,7 @@ using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -6,6 +6,7 @@ using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -8,6 +8,7 @@ using System.Globalization;
using System.IO;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -2,12 +2,12 @@
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -22,6 +22,7 @@ using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -7,6 +7,7 @@ using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -15,6 +15,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -12,6 +12,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Logic.VideoPlayers;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -14,6 +14,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -9,6 +9,7 @@ using System.IO.Compression;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -1,6 +1,7 @@
using Nikse.SubtitleEdit.Logic;
using System;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
//using Nikse.SubtitleEdit.Logic.DirectShow.Custom;

View File

@ -12,6 +12,7 @@ using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -10,6 +10,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -4,6 +4,7 @@ using System;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -7,6 +7,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -7,6 +7,7 @@ using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -3,6 +3,7 @@ using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Networking
{

View File

@ -3,6 +3,7 @@ using Nikse.SubtitleEdit.Logic;
using System;
using System.Net;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Networking
{

View File

@ -4,6 +4,7 @@ using Nikse.SubtitleEdit.Logic;
using System;
using System.Globalization;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -5,6 +5,7 @@ using Nikse.SubtitleEdit.Logic.Ocr.Binary;
using System;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -11,6 +11,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -6,6 +6,7 @@ using System.IO;
using System.IO.Compression;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -5,6 +5,7 @@ using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -9,6 +9,7 @@ using System.Linq;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -8,6 +8,7 @@ using System.IO.Compression;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -7,6 +7,7 @@ using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -11,6 +11,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -27,6 +27,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using Nikse.SubtitleEdit.Core.Enums;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{
@ -8136,6 +8137,8 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
return _subtitle != null && _subtitle.Paragraphs.Any(p => !string.IsNullOrWhiteSpace(p.Text));
}
private bool _forceClose;
private void VobSubOcr_FormClosing(object sender, FormClosingEventArgs e)
{
if (!_okClicked && HasChangesBeenMade())
@ -8147,6 +8150,11 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
}
if (_forceClose)
{
return;
}
_ocrThreadStop = true;
_abort = true;
_mainOcrTimer?.Stop();
@ -8217,6 +8225,15 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
Configuration.Settings.VobSubOcr.LineOcrLastLanguages = comboBoxNOcrLanguage.Items[comboBoxNOcrLanguage.SelectedIndex].ToString();
}
}
if (!e.Cancel)
{
e.Cancel = true;
// To allow windows in FormClosing...
_forceClose = true;
System.Threading.SynchronizationContext.Current.Post(TimeSpan.FromMilliseconds(10), () => Close());
}
}
private void subtitleListView1_KeyDown(object sender, KeyEventArgs e)

View File

@ -9,6 +9,7 @@ using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -3,6 +3,7 @@ using Nikse.SubtitleEdit.Logic;
using System;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -2,6 +2,7 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Ocr
{

View File

@ -16,6 +16,7 @@ using System.Reflection;
using System.Text;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Controls;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -3,6 +3,7 @@ using Nikse.SubtitleEdit.Core.Enums;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -7,6 +7,7 @@ using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -2,6 +2,7 @@
using Nikse.SubtitleEdit.Logic;
using System.Collections.Generic;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -9,6 +9,7 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.Options
{

View File

@ -9,6 +9,7 @@ using System.IO;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{
@ -371,7 +372,6 @@ namespace Nikse.SubtitleEdit.Forms
{
Configuration.Settings.Tools.ReplaceIn = nameof(LanguageSettings.Current.ReplaceDialog.TranslationAndOriginal);
}
}
private void textBoxFind_TextChanged(object sender, EventArgs e)

View File

@ -7,6 +7,7 @@ using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -40,9 +40,9 @@
this.labelText = new System.Windows.Forms.Label();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.pictureBoxIcon = new System.Windows.Forms.PictureBox();
this.seTextBox2 = new Nikse.SubtitleEdit.Controls.SETextBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.copyTextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.seTextBox2 = new Nikse.SubtitleEdit.Controls.SETextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
@ -144,7 +144,7 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelText.AutoSize = true;
this.labelText.Location = new System.Drawing.Point(99, 52);
this.labelText.Location = new System.Drawing.Point(79, 40);
this.labelText.Name = "labelText";
this.labelText.Size = new System.Drawing.Size(50, 13);
this.labelText.TabIndex = 14;
@ -164,10 +164,24 @@
//
this.pictureBoxIcon.Location = new System.Drawing.Point(33, 35);
this.pictureBoxIcon.Name = "pictureBoxIcon";
this.pictureBoxIcon.Size = new System.Drawing.Size(48, 48);
this.pictureBoxIcon.Size = new System.Drawing.Size(37, 30);
this.pictureBoxIcon.TabIndex = 15;
this.pictureBoxIcon.TabStop = false;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.copyTextToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(126, 26);
//
// copyTextToolStripMenuItem
//
this.copyTextToolStripMenuItem.Name = "copyTextToolStripMenuItem";
this.copyTextToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.copyTextToolStripMenuItem.Text = "Copy text";
this.copyTextToolStripMenuItem.Click += new System.EventHandler(this.copyTextToolStripMenuItem_Click);
//
// seTextBox2
//
this.seTextBox2.BackColor = System.Drawing.SystemColors.WindowFrame;
@ -179,7 +193,7 @@
this.seTextBox2.IsSpellCheckRequested = false;
this.seTextBox2.IsWrongWord = false;
this.seTextBox2.LanguageChanged = false;
this.seTextBox2.Location = new System.Drawing.Point(87, 35);
this.seTextBox2.Location = new System.Drawing.Point(76, 35);
this.seTextBox2.MaxLength = 32767;
this.seTextBox2.Multiline = true;
this.seTextBox2.Name = "seTextBox2";
@ -188,25 +202,11 @@
this.seTextBox2.SelectedText = "";
this.seTextBox2.SelectionLength = 0;
this.seTextBox2.SelectionStart = 0;
this.seTextBox2.Size = new System.Drawing.Size(677, 342);
this.seTextBox2.Size = new System.Drawing.Size(688, 342);
this.seTextBox2.TabIndex = 17;
this.seTextBox2.TextBoxFont = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
this.seTextBox2.UseSystemPasswordChar = false;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.copyTextToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
//
// copyTextToolStripMenuItem
//
this.copyTextToolStripMenuItem.Name = "copyTextToolStripMenuItem";
this.copyTextToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.copyTextToolStripMenuItem.Text = "Copy text";
this.copyTextToolStripMenuItem.Click += new System.EventHandler(this.copyTextToolStripMenuItem_Click);
//
// MessageBoxForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -41,25 +41,25 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
if (icon == MessageBoxIcon.Information)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxInfo;
TryLoadIcon(pictureBoxIcon, "MsgBoxInfo");
TryLoadIcon(pictureBoxIcon, "Information");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Question)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxQuestion;
TryLoadIcon(pictureBoxIcon, "MsgBoxQuestion");
TryLoadIcon(pictureBoxIcon, "Question");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Warning)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxWarning;
TryLoadIcon(pictureBoxIcon, "MsgBoxWarning");
TryLoadIcon(pictureBoxIcon, "Warning");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Error)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoError;
TryLoadIcon(pictureBoxIcon, "MsgBoError");
TryLoadIcon(pictureBoxIcon, "Error");
pictureBoxIcon.BringToFront();
}
else

View File

@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAm
CgAAAk1TRnQBSQFMAgEBBAEAARgBAAEYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CgAAAk1TRnQBSQFMAgEBBAEAATABAAEwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -9,6 +9,7 @@ using System.Xml;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Core.SubtitleFormats;
using Nikse.SubtitleEdit.Logic;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms.ShotChanges
{

View File

@ -8,6 +8,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -16,6 +16,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using MessageBox = Nikse.SubtitleEdit.Forms.SeMsgBox.MessageBox;
namespace Nikse.SubtitleEdit.Forms
{

Some files were not shown because too many files have changed in this diff Show More