혹시나 몰라서 코드는 전부 다 붙여넣을게

textbox1과 2에 숫자를 입력해 버튼을 누르면 3에서 연산결과가 나오는 프로그램 짜려고 했어

마지막 부분에서 "예기치 않은 double 형식입니다", int형식입니다 이렇게 뜨는데 어느점이 잘못될걸까??

솔직히 말하면 오늘 처음 c#접해서 프로그램만드는거라 까막눈이라서

자세하게 설명해줬으면 좋겠어 ~♡


#pragma once
namespace test {

        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>
        /// Form1에 대한 요약입니다.
        /// </summary>
        public ref class Form1 : public System::Windows::Forms::Form

        {
        private: System::Windows::Forms::Button^  button1;
        private: System::Windows::Forms::TextBox^  textBox1;
        private: System::Windows::Forms::TextBox^  textBox2;
        private: System::Windows::Forms::TextBox^  textBox3;
        private: System::Windows::Forms::ComboBox^  angle;
        public:
                Form1(void)
                {
                        InitializeComponent();
                        //
                        //TODO: 생성자 코드를 여기에 추가합니다.
                        //
                }

        protected:
                /// <summary>
                /// 사용 중인 모든 리소스를 정리합니다.
                /// </summary>
                ~Form1()
                {
                        if (components)
                        {
                                delete components;
                        }
                }

        protected: 




        private:
                /// <summary>
                /// 필수 디자이너 변수입니다.
                /// </summary>
                System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
                /// <summary>
                /// 디자이너 지원에 필요한 메서드입니다.
                /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
                /// </summary>
                void InitializeComponent(void)
                {
                        this->angle = (gcnew System::Windows::Forms::ComboBox());
                        this->button1 = (gcnew System::Windows::Forms::Button());
                        this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                        this->textBox2 = (gcnew System::Windows::Forms::TextBox());
                        this->textBox3 = (gcnew System::Windows::Forms::TextBox());
                        this->SuspendLayout();
                        // 
                        // angle
                        // 
                        this->angle->FormattingEnabled = true;
                        this->angle->Items->AddRange(gcnew cli::array< System::Object^  >(91) {L"0", L"1", L"2", L"3", L"4", L"5", L"6", L"7", L"8", 
                                L"9", L"10", L"11", L"12", L"13", L"14", L"15", L"16", L"17", L"18", L"19", L"20", L"21", L"22", L"23", L"24", L"25", L"26", 
                                L"27", L"28", L"29", L"30", L"31", L"32", L"33", L"34", L"35", L"36", L"37", L"38", L"39", L"40", L"41", L"42", L"43", L"44", 
                                L"45", L"46", L"47", L"48", L"49", L"50", L"51", L"52", L"53", L"54", L"55", L"56", L"57", L"58", L"59", L"60", L"61", L"62", 
                                L"63", L"64", L"65", L"66", L"67", L"68", L"69", L"70", L"71", L"72", L"73", L"74", L"75", L"76", L"77", L"78", L"79", L"80", 
                                L"81", L"82", L"83", L"84", L"85", L"86", L"87", L"88", L"89", L"90"});
                        this->angle->Location = System::Drawing::Point(269, 141);
                        this->angle->Name = L"angle";
                        this->angle->Size = System::Drawing::Size(100, 20);
                        this->angle->TabIndex = 2;
                        // 
                        // button1
                        // 
                        this->button1->Location = System::Drawing::Point(269, 180);
                        this->button1->Name = L"button1";
                        this->button1->Size = System::Drawing::Size(75, 23);
                        this->button1->TabIndex = 3;
                        this->button1->Text = L"button1";
                        this->button1->UseVisualStyleBackColor = true;
                        this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
                        // 
                        // textBox1
                        // 
                        this->textBox1->Location = System::Drawing::Point(269, 31);
                        this->textBox1->Name = L"textBox1";
                        this->textBox1->Size = System::Drawing::Size(100, 21);
                        this->textBox1->TabIndex = 4;
                        // 
                        // textBox2
                        // 
                        this->textBox2->Location = System::Drawing::Point(269, 86);
                        this->textBox2->Name = L"textBox2";
                        this->textBox2->Size = System::Drawing::Size(100, 21);
                        this->textBox2->TabIndex = 5;
                        // 
                        // textBox3
                        // 
                        this->textBox3->Location = System::Drawing::Point(269, 226);
                        this->textBox3->Name = L"textBox3";
                        this->textBox3->Size = System::Drawing::Size(100, 21);
                        this->textBox3->TabIndex = 6;
                        // 
                        // Form1
                        // 
                        this->AutoScaleDimensions = System::Drawing::SizeF(7, 12);
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                        this->ClientSize = System::Drawing::Size(394, 285);
                        this->Controls->Add(this->textBox3);
                        this->Controls->Add(this->textBox2);
                        this->Controls->Add(this->textBox1);
                        this->Controls->Add(this->button1);
                        this->Controls->Add(this->angle);
                        this->Name = L"Form1";
                        this->Text = L"Form1";
                        this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
                        this->ResumeLayout(false);
                        this->PerformLayout();

                }
#pragma endregion
        private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
                         }

        private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) 
                         {
                                 double n1, n, a;
                                 int c1, c2;

                                 n1 = double Parse(textBox1.Text);
                                 n2 = double.Parse(textBox2.Text);
                                 a        = int.Parse(angle.Text);



                         }
};
}