Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2. #include "Form2.h"
  3.  
  4. using namespace System;
  5. using namespace System::ComponentModel;
  6. using namespace System::Collections;
  7. using namespace System::Windows::Forms;
  8. using namespace System::Data;
  9. using namespace System::Drawing;
  10.  
  11.  
  12. namespace FSS {
  13.  
  14.     public ref class Form1 : public System::Windows::Forms::Form
  15.     {
  16.     public:
  17.         Form1(void)
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.     protected:
  23.         ~Form1()
  24.         {
  25.             if (components)
  26.             {
  27.                 delete components;
  28.             }
  29.         }
  30.     private: System::Windows::Forms::Button^  bCancel;
  31.     private: System::Windows::Forms::Button^  bNext;
  32.     private: System::Windows::Forms::Button^  bPrev;
  33.     protected:
  34.  
  35.     protected:
  36.  
  37.  
  38.     private: System::Windows::Forms::Panel^  panel1;
  39.     private: System::Windows::Forms::NumericUpDown^  numericUpDown2;
  40.     private: System::Windows::Forms::NumericUpDown^  numericUpDown1;
  41.     private: System::Windows::Forms::Label^  label2;
  42.     private: System::Windows::Forms::Label^  label1;
  43.  
  44.     private:
  45.         System::ComponentModel::Container ^components;
  46.  
  47. #pragma region Windows Form Designer generated code
  48.  
  49.         void InitializeComponent(void)
  50.         {
  51.             this->bCancel = (gcnew System::Windows::Forms::Button());
  52.             this->bNext = (gcnew System::Windows::Forms::Button());
  53.             this->bPrev = (gcnew System::Windows::Forms::Button());
  54.             this->panel1 = (gcnew System::Windows::Forms::Panel());
  55.             this->label2 = (gcnew System::Windows::Forms::Label());
  56.             this->label1 = (gcnew System::Windows::Forms::Label());
  57.             this->numericUpDown2 = (gcnew System::Windows::Forms::NumericUpDown());
  58.             this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
  59.             this->panel1->SuspendLayout();
  60.             (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown2))->BeginInit();
  61.             (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->BeginInit();
  62.             this->SuspendLayout();
  63.             //
  64.             // bCancel
  65.             //
  66.             this->bCancel->BackColor = System::Drawing::SystemColors::ControlLightLight;
  67.             this->bCancel->Location = System::Drawing::Point(450, 330);
  68.             this->bCancel->Name = L"bCancel";
  69.             this->bCancel->Size = System::Drawing::Size(75, 23);
  70.             this->bCancel->TabIndex = 0;
  71.             this->bCancel->Text = L"&Cancel";
  72.             this->bCancel->UseVisualStyleBackColor = false;
  73.             this->bCancel->Click += gcnew System::EventHandler(this, &Form1::bCancel_Click);
  74.             //
  75.             // bNext
  76.             //
  77.             this->bNext->BackColor = System::Drawing::SystemColors::ControlLightLight;
  78.             this->bNext->Location = System::Drawing::Point(369, 330);
  79.             this->bNext->Name = L"bNext";
  80.             this->bNext->Size = System::Drawing::Size(75, 23);
  81.             this->bNext->TabIndex = 1;
  82.             this->bNext->Text = L"&Next >";
  83.             this->bNext->UseVisualStyleBackColor = false;
  84.             this->bNext->Click += gcnew System::EventHandler(this, &Form1::bNext_Click);
  85.             //
  86.             // bPrev
  87.             //
  88.             this->bPrev->BackColor = System::Drawing::SystemColors::ControlLightLight;
  89.             this->bPrev->Location = System::Drawing::Point(288, 330);
  90.             this->bPrev->Name = L"bPrev";
  91.             this->bPrev->Size = System::Drawing::Size(75, 23);
  92.             this->bPrev->TabIndex = 2;
  93.             this->bPrev->Text = L"< &Previous";
  94.             this->bPrev->UseVisualStyleBackColor = false;
  95.             //
  96.             // panel1
  97.             //
  98.             this->panel1->BackColor = System::Drawing::SystemColors::ControlLightLight;
  99.             this->panel1->Controls->Add(this->label2);
  100.             this->panel1->Controls->Add(this->label1);
  101.             this->panel1->Controls->Add(this->numericUpDown2);
  102.             this->panel1->Controls->Add(this->numericUpDown1);
  103.             this->panel1->Location = System::Drawing::Point(125, 0);
  104.             this->panel1->Name = L"panel1";
  105.             this->panel1->Size = System::Drawing::Size(420, 320);
  106.             this->panel1->TabIndex = 3;
  107.             //
  108.             // label2
  109.             //
  110.             this->label2->AutoSize = true;
  111.             this->label2->Location = System::Drawing::Point(67, 191);
  112.             this->label2->Name = L"label2";
  113.             this->label2->Size = System::Drawing::Size(185, 13);
  114.             this->label2->TabIndex = 3;
  115.             this->label2->Text = L"Shares needed to reconstruct secret :";
  116.             //
  117.             // label1
  118.             //
  119.             this->label1->AutoSize = true;
  120.             this->label1->Location = System::Drawing::Point(67, 121);
  121.             this->label1->Name = L"label1";
  122.             this->label1->Size = System::Drawing::Size(141, 13);
  123.             this->label1->TabIndex = 2;
  124.             this->label1->Text = L"Number of shares to create :";
  125.             //
  126.             // numericUpDown2
  127.             //
  128.             this->numericUpDown2->Location = System::Drawing::Point(70, 210);
  129.             this->numericUpDown2->Name = L"numericUpDown2";
  130.             this->numericUpDown2->Size = System::Drawing::Size(120, 20);
  131.             this->numericUpDown2->TabIndex = 1;
  132.             //
  133.             // numericUpDown1
  134.             //
  135.             this->numericUpDown1->Location = System::Drawing::Point(70, 140);
  136.             this->numericUpDown1->Name = L"numericUpDown1";
  137.             this->numericUpDown1->Size = System::Drawing::Size(120, 20);
  138.             this->numericUpDown1->TabIndex = 0;
  139.             //
  140.             // Form1
  141.             //
  142.             this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  143.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  144.             this->BackColor = System::Drawing::Color::CornflowerBlue;
  145.             this->ClientSize = System::Drawing::Size(542, 373);
  146.             this->Controls->Add(this->panel1);
  147.             this->Controls->Add(this->bPrev);
  148.             this->Controls->Add(this->bNext);
  149.             this->Controls->Add(this->bCancel);
  150.             this->Name = L"Form1";
  151.             this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
  152.             this->Text = L"FSS";
  153.             this->panel1->ResumeLayout(false);
  154.             this->panel1->PerformLayout();
  155.             (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown2))->EndInit();
  156.             (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->EndInit();
  157.             this->ResumeLayout(false);
  158.  
  159.         }
  160. #pragma endregion
  161.     private: System::Void bCancel_Click(System::Object^  sender, System::EventArgs^  e) {
  162.                  Application::Exit();
  163.              }
  164. private: System::Void bNext_Click(System::Object^  sender, System::EventArgs^  e) {
  165.                 Form1::Visible = false;
  166.                 Form2^ next=gcnew Form2();
  167.                 next->Show();
  168.          }
  169. };
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement