Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Form2.h"
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- namespace FSS {
- public ref class Form1 : public System::Windows::Forms::Form
- {
- public:
- Form1(void)
- {
- InitializeComponent();
- }
- protected:
- ~Form1()
- {
- if (components)
- {
- delete components;
- }
- }
- private: System::Windows::Forms::Button^ bCancel;
- private: System::Windows::Forms::Button^ bNext;
- private: System::Windows::Forms::Button^ bPrev;
- protected:
- protected:
- private: System::Windows::Forms::Panel^ panel1;
- private: System::Windows::Forms::NumericUpDown^ numericUpDown2;
- private: System::Windows::Forms::NumericUpDown^ numericUpDown1;
- private: System::Windows::Forms::Label^ label2;
- private: System::Windows::Forms::Label^ label1;
- private:
- System::ComponentModel::Container ^components;
- #pragma region Windows Form Designer generated code
- void InitializeComponent(void)
- {
- this->bCancel = (gcnew System::Windows::Forms::Button());
- this->bNext = (gcnew System::Windows::Forms::Button());
- this->bPrev = (gcnew System::Windows::Forms::Button());
- this->panel1 = (gcnew System::Windows::Forms::Panel());
- this->label2 = (gcnew System::Windows::Forms::Label());
- this->label1 = (gcnew System::Windows::Forms::Label());
- this->numericUpDown2 = (gcnew System::Windows::Forms::NumericUpDown());
- this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
- this->panel1->SuspendLayout();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown2))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown1))->BeginInit();
- this->SuspendLayout();
- //
- // bCancel
- //
- this->bCancel->BackColor = System::Drawing::SystemColors::ControlLightLight;
- this->bCancel->Location = System::Drawing::Point(450, 330);
- this->bCancel->Name = L"bCancel";
- this->bCancel->Size = System::Drawing::Size(75, 23);
- this->bCancel->TabIndex = 0;
- this->bCancel->Text = L"&Cancel";
- this->bCancel->UseVisualStyleBackColor = false;
- this->bCancel->Click += gcnew System::EventHandler(this, &Form1::bCancel_Click);
- //
- // bNext
- //
- this->bNext->BackColor = System::Drawing::SystemColors::ControlLightLight;
- this->bNext->Location = System::Drawing::Point(369, 330);
- this->bNext->Name = L"bNext";
- this->bNext->Size = System::Drawing::Size(75, 23);
- this->bNext->TabIndex = 1;
- this->bNext->Text = L"&Next >";
- this->bNext->UseVisualStyleBackColor = false;
- this->bNext->Click += gcnew System::EventHandler(this, &Form1::bNext_Click);
- //
- // bPrev
- //
- this->bPrev->BackColor = System::Drawing::SystemColors::ControlLightLight;
- this->bPrev->Location = System::Drawing::Point(288, 330);
- this->bPrev->Name = L"bPrev";
- this->bPrev->Size = System::Drawing::Size(75, 23);
- this->bPrev->TabIndex = 2;
- this->bPrev->Text = L"< &Previous";
- this->bPrev->UseVisualStyleBackColor = false;
- //
- // panel1
- //
- this->panel1->BackColor = System::Drawing::SystemColors::ControlLightLight;
- this->panel1->Controls->Add(this->label2);
- this->panel1->Controls->Add(this->label1);
- this->panel1->Controls->Add(this->numericUpDown2);
- this->panel1->Controls->Add(this->numericUpDown1);
- this->panel1->Location = System::Drawing::Point(125, 0);
- this->panel1->Name = L"panel1";
- this->panel1->Size = System::Drawing::Size(420, 320);
- this->panel1->TabIndex = 3;
- //
- // label2
- //
- this->label2->AutoSize = true;
- this->label2->Location = System::Drawing::Point(67, 191);
- this->label2->Name = L"label2";
- this->label2->Size = System::Drawing::Size(185, 13);
- this->label2->TabIndex = 3;
- this->label2->Text = L"Shares needed to reconstruct secret :";
- //
- // label1
- //
- this->label1->AutoSize = true;
- this->label1->Location = System::Drawing::Point(67, 121);
- this->label1->Name = L"label1";
- this->label1->Size = System::Drawing::Size(141, 13);
- this->label1->TabIndex = 2;
- this->label1->Text = L"Number of shares to create :";
- //
- // numericUpDown2
- //
- this->numericUpDown2->Location = System::Drawing::Point(70, 210);
- this->numericUpDown2->Name = L"numericUpDown2";
- this->numericUpDown2->Size = System::Drawing::Size(120, 20);
- this->numericUpDown2->TabIndex = 1;
- //
- // numericUpDown1
- //
- this->numericUpDown1->Location = System::Drawing::Point(70, 140);
- this->numericUpDown1->Name = L"numericUpDown1";
- this->numericUpDown1->Size = System::Drawing::Size(120, 20);
- this->numericUpDown1->TabIndex = 0;
- //
- // Form1
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->BackColor = System::Drawing::Color::CornflowerBlue;
- this->ClientSize = System::Drawing::Size(542, 373);
- this->Controls->Add(this->panel1);
- this->Controls->Add(this->bPrev);
- this->Controls->Add(this->bNext);
- this->Controls->Add(this->bCancel);
- this->Name = L"Form1";
- this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
- this->Text = L"FSS";
- this->panel1->ResumeLayout(false);
- this->panel1->PerformLayout();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown2))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown1))->EndInit();
- this->ResumeLayout(false);
- }
- #pragma endregion
- private: System::Void bCancel_Click(System::Object^ sender, System::EventArgs^ e) {
- Application::Exit();
- }
- private: System::Void bNext_Click(System::Object^ sender, System::EventArgs^ e) {
- Form1::Visible = false;
- Form2^ next=gcnew Form2();
- next->Show();
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement