Rename pckLocked to LockPrompt

This commit is contained in:
miku-666
2022-11-16 17:13:53 +01:00
parent f4479669c4
commit 3fc216e6c1
6 changed files with 16 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
namespace PckStudio.Forms
{
partial class pckLocked
partial class LockPrompt
{
/// <summary>
/// Required designer variable.
@@ -28,7 +28,7 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(pckLocked));
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LockPrompt));
this.textBoxPass = new System.Windows.Forms.TextBox();
this.buttonUnlocked = new System.Windows.Forms.Button();
this.SuspendLayout();

View File

@@ -11,11 +11,11 @@ using PckStudio;
namespace PckStudio.Forms
{
public partial class pckLocked : MetroFramework.Forms.MetroForm
public partial class LockPrompt : MetroFramework.Forms.MetroForm
{
string pass;
public pckLocked(string pass)
public LockPrompt(string pass)
{
this.pass = pass;
InitializeComponent();
@@ -38,6 +38,9 @@ namespace PckStudio.Forms
DialogResult = DialogResult.Abort;
textBoxPass.Text = "";
}
#if DEBUG
DialogResult = DialogResult.OK;
#endif
}
private void textBoxPass_TextChanged(object sender, EventArgs e)

View File

@@ -180,7 +180,7 @@ namespace PckStudio
if (currentPCK.TryGetFile("0", PCKFile.FileData.FileType.InfoFile, out PCKFile.FileData file))
{
if (file.properties.Contains("LOCK"))
return new pckLocked(file.properties.GetPropertyValue("LOCK")).ShowDialog() == DialogResult.OK;
return new LockPrompt(file.properties.GetPropertyValue("LOCK")).ShowDialog() == DialogResult.OK;
}
return true;
}
@@ -1164,7 +1164,7 @@ namespace PckStudio
}
if (pckfile.HasFile("0", PCKFile.FileData.FileType.InfoFile) &&
pckfile.GetFile("0", PCKFile.FileData.FileType.InfoFile).properties.HasProperty("LOCK") &&
new pckLocked(pckfile.GetFile("0", PCKFile.FileData.FileType.InfoFile).properties.GetProperty("LOCK").Item2).ShowDialog() != DialogResult.OK)
new LockPrompt(pckfile.GetFile("0", PCKFile.FileData.FileType.InfoFile).properties.GetProperty("LOCK").Item2).ShowDialog() != DialogResult.OK)
return; // cancel extraction if password not provided
foreach (PCKFile.FileData file in pckfile.Files)
{

View File

@@ -400,11 +400,11 @@
<Compile Include="Forms\Utilities\pckCenterOpen.Designer.cs">
<DependentUpon>pckCenterOpen.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\pckLocked.cs">
<Compile Include="Forms\Additional-Popups\LockPrompt.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\pckLocked.Designer.cs">
<DependentUpon>pckLocked.cs</DependentUpon>
<Compile Include="Forms\Additional-Popups\LockPrompt.Designer.cs">
<DependentUpon>LockPrompt.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Utilities\Pref.cs">
<SubType>Form</SubType>
@@ -579,11 +579,11 @@
<EmbeddedResource Include="Forms\Utilities\pckCenterOpen.resx">
<DependentUpon>pckCenterOpen.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\pckLocked.ja.resx">
<DependentUpon>pckLocked.cs</DependentUpon>
<EmbeddedResource Include="Forms\Additional-Popups\LockPrompt.ja.resx">
<DependentUpon>LockPrompt.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\pckLocked.resx">
<DependentUpon>pckLocked.cs</DependentUpon>
<EmbeddedResource Include="Forms\Additional-Popups\LockPrompt.resx">
<DependentUpon>LockPrompt.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Utilities\Pref.ja.resx">
<DependentUpon>Pref.cs</DependentUpon>