Skip to content

Commit d48c393

Browse files
committed
Removed many redundant '@'
1 parent e1bbb9c commit d48c393

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

DeadLock/Classes/ListViewLocker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ await Task.Run(() =>
477477
{
478478
if (File.Exists(GetPath()))
479479
{
480-
SaveFileDialog sfd = new SaveFileDialog { Filter = @"|*" + Path.GetExtension(GetPath()) };
480+
SaveFileDialog sfd = new SaveFileDialog { Filter = "|*" + Path.GetExtension(GetPath()) };
481481
if (sfd.ShowDialog() == DialogResult.OK)
482482
{
483483
await Unlock();
@@ -514,7 +514,7 @@ await Task.Run(() =>
514514
}
515515
else
516516
{
517-
SaveFileDialog sfd = new SaveFileDialog { Filter = @"|*" + Path.GetExtension(GetPath()) };
517+
SaveFileDialog sfd = new SaveFileDialog { Filter = "|*" + Path.GetExtension(GetPath()) };
518518
if (sfd.ShowDialog() == DialogResult.OK)
519519
{
520520
await Unlock();

DeadLock/Forms/FrmAbout.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public FrmAbout(Language language)
3737
/// </summary>
3838
private void LoadLanguage()
3939
{
40-
Text = @"DeadLock - " + _language.BarItemAbout;
41-
txtAbout.Text = _language.TxtAboutCreated + Environment.NewLine + _language.TxtAboutImages + Environment.NewLine + _language.TxtAboutTheme + Environment.NewLine + Environment.NewLine + _language.TxtAboutCopyright + Environment.NewLine + Environment.NewLine + _language.TxtAboutTranslation + Environment.NewLine + _language.Comment + @" - " + _language.Author;
40+
Text = "DeadLock - " + _language.BarItemAbout;
41+
txtAbout.Text = _language.TxtAboutCreated + Environment.NewLine + _language.TxtAboutImages + Environment.NewLine + _language.TxtAboutTheme + Environment.NewLine + Environment.NewLine + _language.TxtAboutCopyright + Environment.NewLine + Environment.NewLine + _language.TxtAboutTranslation + Environment.NewLine + _language.Comment + " - " + _language.Author;
4242
btnClose.Text = _language.BtnClose;
4343
btnLicense.Text = _language.BtnLicense;
4444
}

DeadLock/Forms/FrmMain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private void LoadTheme()
247247

248248
private void FrmMain_Load(object sender, EventArgs e)
249249
{
250-
versionStaticBarItem.Text += @" " + Application.ProductVersion;
250+
versionStaticBarItem.Text += " " + Application.ProductVersion;
251251
try
252252
{
253253
nfiTray.Visible = Properties.Settings.Default.ShowNotifyIcon;
@@ -862,7 +862,7 @@ private void openFileLocationToolStripMenuItem_Click(object sender, EventArgs e)
862862
foreach (ListViewItem l in lsvDetails.SelectedItems)
863863
{
864864
if (!File.Exists(l.SubItems[1].Text)) continue;
865-
Process.Start("explorer.exe", @"/select, " + l.SubItems[1].Text);
865+
Process.Start("explorer.exe", "/select, " + l.SubItems[1].Text);
866866
}
867867
}
868868
catch (Exception ex)

DeadLock/Forms/FrmSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public FrmSettings(NotifyIcon nfi, Language l)
4444
/// </summary>
4545
private void LoadLanguage()
4646
{
47-
Text = @"DeadLock - " + _language.BarItemSettings;
47+
Text = "DeadLock - " + _language.BarItemSettings;
4848

4949
tpaGeneral.Text = _language.LblGeneral;
5050
tpaAppearance.Text = _language.LblAppearance;
@@ -159,7 +159,7 @@ private static bool WindowsExplorerIntegration()
159159
bool folderExplorerIntegration = false;
160160
using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(@"*\shell\DeadLock\command"))
161161
{
162-
if (key != null && key.GetValue(@"", "").ToString() == Application.ExecutablePath + " %1")
162+
if (key != null && key.GetValue("", "").ToString() == Application.ExecutablePath + " %1")
163163
{
164164
fileExplorerIntegration = true;
165165
}
@@ -168,7 +168,7 @@ private static bool WindowsExplorerIntegration()
168168

169169
using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(@"Directory\shell\DeadLock\command"))
170170
{
171-
if (key != null && key.GetValue(@"", "").ToString() == Application.ExecutablePath + " %1")
171+
if (key != null && key.GetValue("", "").ToString() == Application.ExecutablePath + " %1")
172172
{
173173
folderExplorerIntegration = true;
174174
}
@@ -376,7 +376,7 @@ private void btnSave_Click(object sender, EventArgs e)
376376
private void btnSelectPath_Click(object sender, EventArgs e)
377377
{
378378
cboLanguage.SelectedIndex = 2;
379-
OpenFileDialog ofd = new OpenFileDialog {Filter = @"XML (*.xml)|*.xml"};
379+
OpenFileDialog ofd = new OpenFileDialog {Filter = "XML (*.xml)|*.xml"};
380380
if (ofd.ShowDialog() == DialogResult.OK)
381381
{
382382
txtLanguagePath.Text = ofd.FileName;

DeadLock/Forms/FrmUpdater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public FrmUpdater(Update update, Language language)
4343
/// </summary>
4444
private void LoadLanguage()
4545
{
46-
Text = @"DeadLock - " + _language.TxtUpdater;
46+
Text = "DeadLock - " + _language.TxtUpdater;
4747

4848
lblPath.Text = _language.LblPath;
4949
lblProgress.Text = _language.LblProgress;
@@ -55,7 +55,7 @@ private void LoadLanguage()
5555
private void btnSelectPath_Click(object sender, EventArgs e)
5656
{
5757
string extension = _update.UpdateUrl.Substring(_update.UpdateUrl.Length - 4, 4);
58-
SaveFileDialog sfd = new SaveFileDialog {Filter = extension.ToUpper() + @" (*" + extension + @")|*" + extension};
58+
SaveFileDialog sfd = new SaveFileDialog {Filter = extension.ToUpper() + " (*" + extension + ")|*" + extension};
5959
if (sfd.ShowDialog() == DialogResult.OK)
6060
{
6161
txtPath.Text = sfd.FileName;

0 commit comments

Comments
 (0)