Sie sind auf Seite 1von 34

LAMPIRAN-LAMPIRAN

Lampiran Potongan Listing Program #pragma once namespace bengkelkecewa { 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 Form1 /// </summary> public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); // //TODO: Add the constructor code here // } protected: /// <summary> /// Clean up any resources being used. /// </summary> ~Form1() { if (components) { delete components; } } private: System::Windows::Forms::GroupBox^ groupBox1; protected: private: System::Windows::Forms::CheckBox^ checkBox8; L1

private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^ private: System::Windows::Forms::CheckBox^

checkBox7; checkBox6; checkBox5; checkBox4; checkBox3; checkBox2; checkBox1; checkBox9; checkBox10; checkBox12; checkBox11; checkBox14; checkBox13; checkBox15; checkBox16; checkBox17; checkBox19; checkBox18; checkBox20; checkBox30; checkBox29; checkBox28; checkBox27; checkBox26; checkBox25; checkBox24; checkBox23; checkBox22; checkBox21; checkBox33; checkBox32; checkBox31;

private: System::Windows::Forms::TextBox^ textBox1; private: System::Windows::Forms::RichTextBox^ richTextBox1; private: System::Windows::Forms::Label^ label1; private: System::Windows::Forms::GroupBox^ groupBox2; private: System::Windows::Forms::GroupBox^ groupBox3; private: System::Windows::Forms::GroupBox^ groupBox4; private: System::Windows::Forms::GroupBox^ groupBox5; private: System::Windows::Forms::GroupBox^ groupBox6; private: System::Windows::Forms::CheckBox^ checkBox35; private: System::Windows::Forms::CheckBox^ checkBox34; private: System::Windows::Forms::Label^ label2; private: System::Windows::Forms::PictureBox^ pictureBox1; private: System::Windows::Forms::Label^ label3; L2

protected: protected: 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(Form1::typeid)); this->groupBox1 = (gcnew System::Windows::Forms::GroupBox()); this->groupBox6 = (gcnew System::Windows::Forms::GroupBox()); this->checkBox35 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox31 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox32 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox33 = (gcnew System::Windows::Forms::CheckBox()); this->groupBox5 = (gcnew System::Windows::Forms::GroupBox()); this->checkBox27 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox28 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox29 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox30 = (gcnew System::Windows::Forms::CheckBox()); this->groupBox4 = (gcnew System::Windows::Forms::GroupBox()); this->checkBox16 = (gcnew System::Windows::Forms::CheckBox()); L3

this->checkBox17 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox18 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox19 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox20 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox21 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox22 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox23 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox24 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox25 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox26 = (gcnew System::Windows::Forms::CheckBox()); this->groupBox3 = (gcnew System::Windows::Forms::GroupBox()); this->checkBox1 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox2 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox3 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox4 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox5 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox6 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox7 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox8 = (gcnew System::Windows::Forms::CheckBox()); this->groupBox2 = (gcnew System::Windows::Forms::GroupBox()); this->checkBox34 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox9 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox10 = (gcnew System::Windows::Forms::CheckBox()); L4

this->checkBox11 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox12 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox13 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox15 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox14 = (gcnew System::Windows::Forms::CheckBox()); this->textBox1 = (gcnew System::Windows::Forms::TextBox()); this->richTextBox1 = (gcnew System::Windows::Forms::RichTextBox()); this->label1 = (gcnew System::Windows::Forms::Label()); this->label2 = (gcnew System::Windows::Forms::Label()); this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox()); this->label3 = (gcnew System::Windows::Forms::Label()); this->groupBox1->SuspendLayout(); this->groupBox6->SuspendLayout(); this->groupBox5->SuspendLayout(); this->groupBox4->SuspendLayout(); this->groupBox3->SuspendLayout(); this->groupBox2->SuspendLayout(); (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->BeginInit(); this->SuspendLayout(); // // groupBox1 // this->groupBox1->Controls->Add(this->groupBox6); this->groupBox1->Controls->Add(this->groupBox5); this->groupBox1->Controls->Add(this->groupBox4); this->groupBox1->Controls->Add(this->groupBox3); this->groupBox1->Controls->Add(this->groupBox2); this->groupBox1->Location = System::Drawing::Point(29, 23); this->groupBox1->Name = L"groupBox1"; this->groupBox1->Size = System::Drawing::Size(1152, 492); this->groupBox1->TabIndex = 0; this->groupBox1->TabStop = false; this->groupBox1->Text = L"GEJALA"; this->groupBox1->Enter += gcnew System::EventHandler(this, &Form1::groupBox1_Enter); // // groupBox6 // this->groupBox6->Controls->Add(this->checkBox35); L5

this->groupBox6->Controls->Add(this->checkBox31); this->groupBox6->Controls->Add(this->checkBox32); this->groupBox6->Controls->Add(this->checkBox33); this->groupBox6->Location = System::Drawing::Point(932, 25); this->groupBox6->Name = L"groupBox6"; this->groupBox6->Size = System::Drawing::Size(195, 449); this->groupBox6->TabIndex = 36; this->groupBox6->TabStop = false; this->groupBox6->Text = L"KELISTRIKAN"; this->groupBox6->Enter += gcnew System::EventHandler(this, &Form1::groupBox6_Enter); // // checkBox35 // this->checkBox35->AutoSize = true; this->checkBox35->Location = System::Drawing::Point(6, 124); this->checkBox35->Name = L"checkBox35"; this->checkBox35->Size = System::Drawing::Size(180, 30); this->checkBox35->TabIndex = 33; this->checkBox35->Text = L"MESIN SUKAR MENYALA DAN\r\nTERDENGAR LEMAH"; this->checkBox35->UseVisualStyleBackColor = true; this->checkBox35->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox35_CheckedChanged); // // checkBox31 // this->checkBox31->AutoSize = true; this->checkBox31->Location = System::Drawing::Point(6, 29); this->checkBox31->Name = L"checkBox31"; this->checkBox31->Size = System::Drawing::Size(104, 17); this->checkBox31->TabIndex = 30; this->checkBox31->Text = L"LAMPU REDUP"; this->checkBox31->UseVisualStyleBackColor = true; this->checkBox31->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox31_CheckedChanged); // // checkBox32 // this->checkBox32->AutoSize = true; this->checkBox32->Location = System::Drawing::Point(6, 52); this->checkBox32->Name = L"checkBox32"; this->checkBox32->Size = System::Drawing::Size(172, 17); this->checkBox32->TabIndex = 31; this->checkBox32->Text = L"SUARA KLAKSON MELEMAH"; this->checkBox32->UseVisualStyleBackColor = true; L6

this->checkBox32->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox32_CheckedChanged); // // checkBox33 // this->checkBox33->AutoSize = true; this->checkBox33->Location = System::Drawing::Point(6, 75); this->checkBox33->Name = L"checkBox33"; this->checkBox33->Size = System::Drawing::Size(188, 43); this->checkBox33->TabIndex = 32; this->checkBox33->Text = L"MESIN YANG BARU DIMATIKAN\r\nSUKAR UNTUK MENYALA\r\nKEMBALI"; this->checkBox33->UseVisualStyleBackColor = true; this->checkBox33->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox33_CheckedChanged); // // groupBox5 // this->groupBox5->Controls->Add(this->checkBox27); this->groupBox5->Controls->Add(this->checkBox28); this->groupBox5->Controls->Add(this->checkBox29); this->groupBox5->Controls->Add(this->checkBox30); this->groupBox5->Location = System::Drawing::Point(706, 25); this->groupBox5->Name = L"groupBox5"; this->groupBox5->Size = System::Drawing::Size(200, 449); this->groupBox5->TabIndex = 26; this->groupBox5->TabStop = false; this->groupBox5->Text = L"TRANSMISI"; this->groupBox5->Enter += gcnew System::EventHandler(this, &Form1::groupBox5_Enter); // // checkBox27 // this->checkBox27->AutoSize = true; this->checkBox27->Location = System::Drawing::Point(6, 29); this->checkBox27->Name = L"checkBox27"; this->checkBox27->Size = System::Drawing::Size(182, 30); this->checkBox27->TabIndex = 26; this->checkBox27->Text = L"GIGI TIDAK BISA MASUK SAAT\r\nMESIN MENYALA"; this->checkBox27->UseVisualStyleBackColor = true; this->checkBox27->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox27_CheckedChanged); // // checkBox28 // this->checkBox28->AutoSize = true; L7

this->checkBox28->Location = System::Drawing::Point(6, 68); this->checkBox28->Name = L"checkBox28"; this->checkBox28->Size = System::Drawing::Size(163, 30); this->checkBox28->TabIndex = 27; this->checkBox28->Text = L"TIDAK TERDAPAT MINYAK\r\nTRANSMISI"; this->checkBox28->UseVisualStyleBackColor = true; this->checkBox28->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox28_CheckedChanged); // // checkBox29 // this->checkBox29->AutoSize = true; this->checkBox29->Location = System::Drawing::Point(6, 108); this->checkBox29->Name = L"checkBox29"; this->checkBox29->Size = System::Drawing::Size(171, 30); this->checkBox29->TabIndex = 28; this->checkBox29->Text = L"PEDAL KOLPING TIDAK ADA\r\nTEKANAN"; this->checkBox29->UseVisualStyleBackColor = true; this->checkBox29->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox29_CheckedChanged); // // checkBox30 // this->checkBox30->AutoSize = true; this->checkBox30->Location = System::Drawing::Point(6, 144); this->checkBox30->Name = L"checkBox30"; this->checkBox30->Size = System::Drawing::Size(186, 43); this->checkBox30->TabIndex = 29; this->checkBox30->Text = L"SAAT PEDAL KOPLING DIINJAK\r\nMENGELUARKAN SUARA\r\nSEPERTI BESI BERADU"; this->checkBox30->UseVisualStyleBackColor = true; this->checkBox30->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox30_CheckedChanged); // // groupBox4 // this->groupBox4->Controls->Add(this->checkBox16); this->groupBox4->Controls->Add(this->checkBox17); this->groupBox4->Controls->Add(this->checkBox18); this->groupBox4->Controls->Add(this->checkBox19); this->groupBox4->Controls->Add(this->checkBox20); this->groupBox4->Controls->Add(this->checkBox21); this->groupBox4->Controls->Add(this->checkBox22); this->groupBox4->Controls->Add(this->checkBox23); this->groupBox4->Controls->Add(this->checkBox24); L8

this->groupBox4->Controls->Add(this->checkBox25); this->groupBox4->Controls->Add(this->checkBox26); this->groupBox4->Location = System::Drawing::Point(471, 25); this->groupBox4->Name = L"groupBox4"; this->groupBox4->Size = System::Drawing::Size(214, 449); this->groupBox4->TabIndex = 35; this->groupBox4->TabStop = false; this->groupBox4->Text = L"REM dan KAKI-KAKI"; this->groupBox4->Enter += gcnew System::EventHandler(this, &Form1::groupBox4_Enter); // // checkBox16 // this->checkBox16->AutoSize = true; this->checkBox16->Location = System::Drawing::Point(6, 29); this->checkBox16->Name = L"checkBox16"; this->checkBox16->Size = System::Drawing::Size(125, 17); this->checkBox16->TabIndex = 15; this->checkBox16->Text = L"REM TIDAK PAKEM"; this->checkBox16->UseVisualStyleBackColor = true; this->checkBox16->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox16_CheckedChanged); // // checkBox17 // this->checkBox17->AutoSize = true; this->checkBox17->Location = System::Drawing::Point(6, 52); this->checkBox17->Name = L"checkBox17"; this->checkBox17->Size = System::Drawing::Size(171, 30); this->checkBox17->TabIndex = 16; this->checkBox17->Text = L"PEDAL REM PERLU DIINJAK\r\nBERKALI-KALI AGAR PAKEM"; this->checkBox17->UseVisualStyleBackColor = true; this->checkBox17->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox17_CheckedChanged); // // checkBox18 // this->checkBox18->AutoSize = true; this->checkBox18->Location = System::Drawing::Point(6, 89); this->checkBox18->Name = L"checkBox18"; this->checkBox18->Size = System::Drawing::Size(190, 30); this->checkBox18->TabIndex = 17; this->checkBox18->Text = L"TIMBUL BUNYI BERDECIT SAAT\r\nPEDAL REM DI TEKAN"; this->checkBox18->UseVisualStyleBackColor = true; L9

this->checkBox18->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox18_CheckedChanged); // // checkBox19 // this->checkBox19->AutoSize = true; this->checkBox19->Location = System::Drawing::Point(6, 125); this->checkBox19->Name = L"checkBox19"; this->checkBox19->Size = System::Drawing::Size(207, 56); this->checkBox19->TabIndex = 18; this->checkBox19->Text = L"TERDAPAT PERBEDAAN TEKANAN\r\nSAAT PEDAL REM DIINJAK\r\nPERTAMA KALI DENGAN KEDUA\r\nKA" L"LINYA"; this->checkBox19->UseVisualStyleBackColor = true; this->checkBox19->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox19_CheckedChanged); // // checkBox20 // this->checkBox20->AutoSize = true; this->checkBox20->Location = System::Drawing::Point(6, 187); this->checkBox20->Name = L"checkBox20"; this->checkBox20->Size = System::Drawing::Size(183, 30); this->checkBox20->TabIndex = 19; this->checkBox20->Text = L"TERDAPAT SUARA GEMURUH\r\nSAAT MOBIL BERJALAN"; this->checkBox20->UseVisualStyleBackColor = true; this->checkBox20->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox20_CheckedChanged); // // checkBox21 // this->checkBox21->AutoSize = true; this->checkBox21->Location = System::Drawing::Point(6, 223); this->checkBox21->Name = L"checkBox21"; this->checkBox21->Size = System::Drawing::Size(205, 30); this->checkBox21->TabIndex = 20; this->checkBox21->Text = L"MOBIL BERAYUN SAAT MELEWATI\r\nPOLISI TIDUR"; this->checkBox21->UseVisualStyleBackColor = true; this->checkBox21->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox21_CheckedChanged); // // checkBox22 // this->checkBox22->AutoSize = true; L10

this->checkBox22->Location = System::Drawing::Point(6, 259); this->checkBox22->Name = L"checkBox22"; this->checkBox22->Size = System::Drawing::Size(175, 43); this->checkBox22->TabIndex = 21; this->checkBox22->Text = L"TERDAPAT SUARA GLUDUK\r\nGLUDUK SAAT MELEWATI\r\nJALAN RUSAK"; this->checkBox22->UseVisualStyleBackColor = true; this->checkBox22->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox22_CheckedChanged); // // checkBox23 // this->checkBox23->AutoSize = true; this->checkBox23->Location = System::Drawing::Point(6, 308); this->checkBox23->Name = L"checkBox23"; this->checkBox23->Size = System::Drawing::Size(195, 30); this->checkBox23->TabIndex = 22; this->checkBox23->Text = L"MOBIL TIDAK BISA MENAMPUNG\r\nBEBAN BANYAK"; this->checkBox23->UseVisualStyleBackColor = true; this->checkBox23->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox23_CheckedChanged); // // checkBox24 // this->checkBox24->AutoSize = true; this->checkBox24->Location = System::Drawing::Point(6, 344); this->checkBox24->Name = L"checkBox24"; this->checkBox24->Size = System::Drawing::Size(170, 30); this->checkBox24->TabIndex = 23; this->checkBox24->Text = L"KETIKA MEMBELOKAN STIR\r\nTERDENGAR BUNYI KASAR"; this->checkBox24->UseVisualStyleBackColor = true; this->checkBox24->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox24_CheckedChanged); // // checkBox25 // this->checkBox25->AutoSize = true; this->checkBox25->Location = System::Drawing::Point(6, 380); this->checkBox25->Name = L"checkBox25"; this->checkBox25->Size = System::Drawing::Size(107, 17); this->checkBox25->TabIndex = 24; this->checkBox25->Text = L"SETIR GOYANG"; this->checkBox25->UseVisualStyleBackColor = true; this->checkBox25->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox25_CheckedChanged); L11

// // checkBox26 // this->checkBox26->AutoSize = true; this->checkBox26->Location = System::Drawing::Point(6, 403); this->checkBox26->Name = L"checkBox26"; this->checkBox26->Size = System::Drawing::Size(202, 30); this->checkBox26->TabIndex = 25; this->checkBox26->Text = L"SETIR SUKA MEMBELOK DENGAN\r\nSENDIRINYA"; this->checkBox26->UseVisualStyleBackColor = true; this->checkBox26->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox26_CheckedChanged); // // groupBox3 // this->groupBox3->Controls->Add(this->checkBox1); this->groupBox3->Controls->Add(this->checkBox2); this->groupBox3->Controls->Add(this->checkBox3); this->groupBox3->Controls->Add(this->checkBox4); this->groupBox3->Controls->Add(this->checkBox5); this->groupBox3->Controls->Add(this->checkBox6); this->groupBox3->Controls->Add(this->checkBox7); this->groupBox3->Controls->Add(this->checkBox8); this->groupBox3->Location = System::Drawing::Point(19, 25); this->groupBox3->Name = L"groupBox3"; this->groupBox3->Size = System::Drawing::Size(200, 449); this->groupBox3->TabIndex = 34; this->groupBox3->TabStop = false; this->groupBox3->Text = L"BAGIAN MESIN"; this->groupBox3->Enter += gcnew System::EventHandler(this, &Form1::groupBox3_Enter); // // checkBox1 // this->checkBox1->AutoSize = true; this->checkBox1->Location = System::Drawing::Point(6, 29); this->checkBox1->Name = L"checkBox1"; this->checkBox1->Size = System::Drawing::Size(194, 30); this->checkBox1->TabIndex = 0; this->checkBox1->Text = L"MOBIL SUKAR MENYALA TETAPI\r\nTIDAK TERDENGAR LEMAH"; this->checkBox1->UseVisualStyleBackColor = true; this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox1_CheckedChanged); // // checkBox2 L12

// this->checkBox2->AutoSize = true; this->checkBox2->Location = System::Drawing::Point(6, 66); this->checkBox2->Name = L"checkBox2"; this->checkBox2->Size = System::Drawing::Size(143, 17); this->checkBox2->TabIndex = 1; this->checkBox2->Text = L"MESIN MATI TIBA-TIBA"; this->checkBox2->UseVisualStyleBackColor = true; this->checkBox2->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox2_CheckedChanged); // // checkBox3 // this->checkBox3->AutoSize = true; this->checkBox3->Location = System::Drawing::Point(6, 89); this->checkBox3->Name = L"checkBox3"; this->checkBox3->Size = System::Drawing::Size(179, 17); this->checkBox3->TabIndex = 2; this->checkBox3->Text = L"KINERJA MESIN BERKURANG"; this->checkBox3->UseVisualStyleBackColor = true; this->checkBox3->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox3_CheckedChanged); // // checkBox4 // this->checkBox4->AutoSize = true; this->checkBox4->Location = System::Drawing::Point(6, 108); this->checkBox4->Name = L"checkBox4"; this->checkBox4->Size = System::Drawing::Size(172, 30); this->checkBox4->TabIndex = 3; this->checkBox4->Text = L"TERDAPAT BUNYI NGELITIK\r\nDARI MESIN"; this->checkBox4->UseVisualStyleBackColor = true; this->checkBox4->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox4_CheckedChanged); // // checkBox5 // this->checkBox5->AutoSize = true; this->checkBox5->Location = System::Drawing::Point(6, 145); this->checkBox5->Name = L"checkBox5"; this->checkBox5->Size = System::Drawing::Size(140, 17); this->checkBox5->TabIndex = 4; this->checkBox5->Text = L"BBM MENJADI BOROS"; this->checkBox5->UseVisualStyleBackColor = true; this->checkBox5->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox5_CheckedChanged); L13

// // checkBox6 // this->checkBox6->AutoSize = true; this->checkBox6->Location = System::Drawing::Point(6, 167); this->checkBox6->Name = L"checkBox6"; this->checkBox6->Size = System::Drawing::Size(159, 17); this->checkBox6->TabIndex = 5; this->checkBox6->Text = L"INDIKATOR OLI MENYALA"; this->checkBox6->UseVisualStyleBackColor = true; this->checkBox6->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox6_CheckedChanged); // // checkBox7 // this->checkBox7->AutoSize = true; this->checkBox7->Location = System::Drawing::Point(6, 190); this->checkBox7->Name = L"checkBox7"; this->checkBox7->Size = System::Drawing::Size(131, 17); this->checkBox7->TabIndex = 6; this->checkBox7->Text = L"ADA REMBESAN OLI"; this->checkBox7->UseVisualStyleBackColor = true; this->checkBox7->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox7_CheckedChanged); // // checkBox8 // this->checkBox8->AutoSize = true; this->checkBox8->Location = System::Drawing::Point(6, 213); this->checkBox8->Name = L"checkBox8"; this->checkBox8->Size = System::Drawing::Size(175, 17); this->checkBox8->TabIndex = 7; this->checkBox8->Text = L"SUARA MESIN TIDAK STABIL"; this->checkBox8->UseVisualStyleBackColor = true; this->checkBox8->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox8_CheckedChanged); // // groupBox2 // this->groupBox2->Controls->Add(this->checkBox34); this->groupBox2->Controls->Add(this->checkBox9); this->groupBox2->Controls->Add(this->checkBox10); this->groupBox2->Controls->Add(this->checkBox11); this->groupBox2->Controls->Add(this->checkBox12); this->groupBox2->Controls->Add(this->checkBox13); this->groupBox2->Controls->Add(this->checkBox15); this->groupBox2->Controls->Add(this->checkBox14); L14

this->groupBox2->Location = System::Drawing::Point(248, 25); this->groupBox2->Name = L"groupBox2"; this->groupBox2->Size = System::Drawing::Size(200, 449); this->groupBox2->TabIndex = 33; this->groupBox2->TabStop = false; this->groupBox2->Text = L"SISTEM PENDINGINAN"; this->groupBox2->Enter += gcnew System::EventHandler(this, &Form1::groupBox2_Enter); // // checkBox34 // this->checkBox34->AutoSize = true; this->checkBox34->Location = System::Drawing::Point(15, 161); this->checkBox34->Name = L"checkBox34"; this->checkBox34->Size = System::Drawing::Size(179, 17); this->checkBox34->TabIndex = 15; this->checkBox34->Text = L"KINERJA MESIN BERKURANG"; this->checkBox34->UseVisualStyleBackColor = true; this->checkBox34->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox34_CheckedChanged); // // checkBox9 // this->checkBox9->AutoSize = true; this->checkBox9->Location = System::Drawing::Point(15, 29); this->checkBox9->Name = L"checkBox9"; this->checkBox9->Size = System::Drawing::Size(102, 17); this->checkBox9->TabIndex = 8; this->checkBox9->Text = L"MESIN PANAS "; this->checkBox9->UseVisualStyleBackColor = true; this->checkBox9->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox9_CheckedChanged); // // checkBox10 // this->checkBox10->AutoSize = true; this->checkBox10->Location = System::Drawing::Point(15, 52); this->checkBox10->Name = L"checkBox10"; this->checkBox10->Size = System::Drawing::Size(175, 30); this->checkBox10->TabIndex = 9; this->checkBox10->Text = L"AIR DI TABUING RESERVOIR\r\nBERKURANG"; this->checkBox10->UseVisualStyleBackColor = true; this->checkBox10->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox10_CheckedChanged); // L15

// checkBox11 // this->checkBox11->AutoSize = true; this->checkBox11->Location = System::Drawing::Point(15, 89); this->checkBox11->Name = L"checkBox11"; this->checkBox11->Size = System::Drawing::Size(117, 30); this->checkBox11->TabIndex = 10; this->checkBox11->Text = L"AIR DI RADIATOR\r\nBERKURANG"; this->checkBox11->UseVisualStyleBackColor = true; this->checkBox11->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox11_CheckedChanged); // // checkBox12 // this->checkBox12->AutoSize = true; this->checkBox12->Location = System::Drawing::Point(15, 125); this->checkBox12->Name = L"checkBox12"; this->checkBox12->Size = System::Drawing::Size(163, 30); this->checkBox12->TabIndex = 11; this->checkBox12->Text = L"MESIN DINGIN MESKIPUN \r\nSUDAH BERJALAN JAUH"; this->checkBox12->UseVisualStyleBackColor = true; this->checkBox12->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox12_CheckedChanged); // // checkBox13 // this->checkBox13->AutoSize = true; this->checkBox13->Location = System::Drawing::Point(15, 259); this->checkBox13->Name = L"checkBox13"; this->checkBox13->Size = System::Drawing::Size(146, 30); this->checkBox13->TabIndex = 12; this->checkBox13->Text = L"ADA REMBESAN AIR DI\r\nKOLONG MOBIL"; this->checkBox13->UseVisualStyleBackColor = true; this->checkBox13->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox13_CheckedChanged); // // checkBox15 // this->checkBox15->AutoSize = true; this->checkBox15->Location = System::Drawing::Point(15, 191); this->checkBox15->Name = L"checkBox15"; this->checkBox15->Size = System::Drawing::Size(149, 30); this->checkBox15->TabIndex = 14; L16

this->checkBox15->Text = L"MESIN MENJADI PANAS\r\nSAAT MACET"; this->checkBox15->UseVisualStyleBackColor = true; this->checkBox15->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox15_CheckedChanged); // // checkBox14 // this->checkBox14->AutoSize = true; this->checkBox14->Location = System::Drawing::Point(15, 227); this->checkBox14->Name = L"checkBox14"; this->checkBox14->Size = System::Drawing::Size(175, 30); this->checkBox14->TabIndex = 13; this->checkBox14->Text = L"TABUNG RESERVOIR TERISI\r\nMELEBIHI BATAS"; this->checkBox14->UseVisualStyleBackColor = true; this->checkBox14->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox14_CheckedChanged); // // textBox1 // this->textBox1->Location = System::Drawing::Point(899, 566); this->textBox1->Name = L"textBox1"; this->textBox1->Size = System::Drawing::Size(182, 20); this->textBox1->TabIndex = 2; this->textBox1->TextChanged += gcnew System::EventHandler(this, &Form1::textBox1_TextChanged); // // richTextBox1 // this->richTextBox1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->richTextBox1->Location = System::Drawing::Point(179, 537); this->richTextBox1->Name = L"richTextBox1"; this->richTextBox1->Size = System::Drawing::Size(288, 87); this->richTextBox1->TabIndex = 3; this->richTextBox1->Text = L""; this->richTextBox1->TextChanged += gcnew System::EventHandler(this, &Form1::richTextBox1_TextChanged); // // label1 // this->label1->AutoSize = true; L17

this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->label1->Location = System::Drawing::Point(525, 570); this->label1->Name = L"label1"; this->label1->Size = System::Drawing::Size(343, 16); this->label1->TabIndex = 4; this->label1->Text = L"Nilai kemungkinan hasil diagnosa tersebut benar adalah"; this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click); // // label2 // this->label2->AutoSize = true; this->label2->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle; this->label2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->label2->Location = System::Drawing::Point(329, 680); this->label2->Name = L"label2"; this->label2->Size = System::Drawing::Size(471, 32); this->label2->TabIndex = 5; this->label2->Text = L"Copyright 2012 Nobel Mengino Alharto, Adhi Prananto Nusantara, Yayan Prahardian\r\n" L" Supported by BINA NUSANTARA UNIVERSITY"; // // pictureBox1 // this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources>GetObject(L"pictureBox1.Image"))); this->pictureBox1->Location = System::Drawing::Point(806, 610); this->pictureBox1->Name = L"pictureBox1"; this->pictureBox1->Size = System::Drawing::Size(400, 102); this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage; this->pictureBox1->TabIndex = 6; this->pictureBox1->TabStop = false; this->pictureBox1->Click += gcnew System::EventHandler(this, &Form1::pictureBox1_Click); // L18

// label3 // this->label3->AutoSize = true; this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->label3->Location = System::Drawing::Point(45, 570); this->label3->Name = L"label3"; this->label3->Size = System::Drawing::Size(119, 16); this->label3->TabIndex = 7; this->label3->Text = L"HASIL DIAGNOSA"; this->label3->Click += gcnew System::EventHandler(this, &Form1::label3_Click); // // Form1 // this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->ClientSize = System::Drawing::Size(1203, 715); this->Controls->Add(this->label3); this->Controls->Add(this->pictureBox1); this->Controls->Add(this->label2); this->Controls->Add(this->label1); this->Controls->Add(this->richTextBox1); this->Controls->Add(this->textBox1); this->Controls->Add(this->groupBox1); this->Name = L"Form1"; this->Text = L"ANALISA KERUSAKAN PADA MOBIL DENGAN PENDEKATAN BAYES"; this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load); this->groupBox1->ResumeLayout(false); this->groupBox6->ResumeLayout(false); this->groupBox6->PerformLayout(); this->groupBox5->ResumeLayout(false); this->groupBox5->PerformLayout(); this->groupBox4->ResumeLayout(false); this->groupBox4->PerformLayout(); this->groupBox3->ResumeLayout(false); this->groupBox3->PerformLayout(); this->groupBox2->ResumeLayout(false); this->groupBox2->PerformLayout(); (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->pictureBox1))->EndInit(); this->ResumeLayout(false); L19

this->PerformLayout(); } #pragma endregion

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { } private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) { } private: System::Void richTextBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) { } private: System::Void groupBox1_Enter(System::Object^ sender, System::EventArgs^ e) { } private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { if((checkBox1->Checked==true) || (checkBox2->Checked==true) || (checkBox3->Checked==true) || (checkBox4->Checked ==true) || (checkBox5->Checked==true) || (checkBox6>Checked==true) || (checkBox7->Checked==true) || (checkBox8->Checked==true)) { this->groupBox2->Enabled=false; this->groupBox4->Enabled=false; this->groupBox5->Enabled=false; this->groupBox6->Enabled=false; } else if ((checkBox1->Checked==false) || (checkBox2>Checked==false) || (checkBox3->Checked==false) || (checkBox4->Checked ==false) || (checkBox5->Checked==false) || (checkBox6>Checked==false) || (checkBox7->Checked==false) || (checkBox8->Checked==false)) { this->groupBox2->Enabled=true; this->groupBox4->Enabled=true; this->groupBox5->Enabled=true; this->groupBox6->Enabled=true; } if(checkBox1->Checked==true) { if(checkBox2->Checked==true) { if(checkBox3->Checked==true) { L20

richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP=0.5, pMesinMati=0.2, pMesinSukar=0.7; double pHF=((0.7*0.5)+(0.2*0.5))/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP = 0.5, pMesinSukar=0.7; double pHF= (0.7*0.5)/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } } else if(checkBox1->Checked==false) L21

{ if(checkBox2->Checked==true) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.5, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.2*0.5)/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.4*0.33)/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } } } } private: System::Void checkBox2_CheckedChanged(System::Object^ sender, System::EventArgs^ e){ if((checkBox1->Checked==true) || (checkBox2->Checked==true) || (checkBox3->Checked==true) || (checkBox4->Checked ==true) L22

|| (checkBox5->Checked==true) || (checkBox6>Checked==true) || (checkBox7->Checked==true) || (checkBox8->Checked==true)) { this->groupBox2->Enabled=false; this->groupBox4->Enabled=false; this->groupBox5->Enabled=false; this->groupBox6->Enabled=false; } else if ((checkBox1->Checked==false) || (checkBox2>Checked==false) || (checkBox3->Checked==false) || (checkBox4->Checked ==false) || (checkBox5->Checked==false) || (checkBox6>Checked==false) || (checkBox7->Checked==false) || (checkBox8->Checked==false)) { this->groupBox2->Enabled=true; this->groupBox4->Enabled=true; this->groupBox5->Enabled=true; this->groupBox6->Enabled=true; } if(checkBox1->Checked==true) { if(checkBox2->Checked==true) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP=0.5, pMesinMati=0.2, pMesinSukar=0.7; double pHF=((0.7*0.5)+(0.2*0.5))/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { L23

if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP = 0.5, pMesinSukar=0.7; double pHF= (0.7*0.5)/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } } else if(checkBox1->Checked==false) { if(checkBox2->Checked==true) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.5, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.2*0.5)/((0.7*0.5)+(0.2*0.5)); L24

this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.4*0.33)/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } } } } private: System::Void checkBox3_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { if((checkBox1->Checked==true) || (checkBox2->Checked==true) || (checkBox3->Checked==true) || (checkBox4->Checked ==true) || (checkBox5->Checked==true) || (checkBox6>Checked==true) || (checkBox7->Checked==true) || (checkBox8->Checked==true)) { this->groupBox2->Enabled=false; this->groupBox4->Enabled=false; this->groupBox5->Enabled=false; this->groupBox6->Enabled=false; } else if ((checkBox1->Checked==false) || (checkBox2>Checked==false) || (checkBox3->Checked==false) || (checkBox4->Checked ==false) || (checkBox5->Checked==false) || (checkBox6>Checked==false) || (checkBox7->Checked==false) || (checkBox8->Checked==false)) { this->groupBox2->Enabled=true; this->groupBox4->Enabled=true; this->groupBox5->Enabled=true; this->groupBox6->Enabled=true; } if(checkBox1->Checked==true) { if(checkBox2->Checked==true) { if(checkBox3->Checked==true) L25

{ richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP=0.5, pMesinMati=0.2, pMesinSukar=0.7; double pHF=((0.7*0.5)+(0.2*0.5))/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.7*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pFP = 0.5, pMesinSukar=0.7; double pHF= (0.7*0.5)/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } } L26

else if(checkBox1->Checked==false) { if(checkBox2->Checked==true) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = ((0.2*0.33)+(0.4*0.33))/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox3->Checked==false) { richTextBox1->Text = "Fuel Pump Rusak. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.5, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.2*0.5)/((0.7*0.5)+(0.2*0.5)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox2->Checked==false) { if(checkBox3->Checked==true) { richTextBox1->Text = "Injector atau Karburator. Harap segera ke bengkel untuk menggantinya dengan yang baru"; double pI=0.33, pKinerja=0.4, pMesinMati=0.2, pMesinSukar=0.7; double pHF = (0.4*0.33)/((0.7*0.33)+(0.2*0.33)+(0.4*0.33)); this->textBox1->Text = System::Convert::ToString(pHF); } } } if(checkBox3->Checked==true) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) L27

{ richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } } else if(checkBox3->Checked==false) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; L28

double pHF = ((0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.8*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.5*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } } } private: System::Void checkBox4_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { if((checkBox1->Checked==true) || (checkBox2->Checked==true) || (checkBox3->Checked==true) || (checkBox4->Checked ==true) || (checkBox5->Checked==true) || (checkBox6>Checked==true) || (checkBox7->Checked==true) || (checkBox8->Checked==true)) { this->groupBox2->Enabled=false; this->groupBox4->Enabled=false; this->groupBox5->Enabled=false; this->groupBox6->Enabled=false; } else if ((checkBox1->Checked==false) || (checkBox2>Checked==false) || (checkBox3->Checked==false) || (checkBox4->Checked ==false) L29

|| (checkBox5->Checked==false) || (checkBox6>Checked==false) || (checkBox7->Checked==false) || (checkBox8->Checked==false)) { this->groupBox2->Enabled=true; this->groupBox4->Enabled=true; this->groupBox5->Enabled=true; this->groupBox6->Enabled=true; } if(checkBox3->Checked==true) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); L30

this->textBox1->Text = System::Convert::ToString(pHF); } } } else if(checkBox3->Checked==false) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.8*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.5*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } } L31

} private: System::Void checkBox5_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { if((checkBox1->Checked==true) || (checkBox2->Checked==true) || (checkBox3->Checked==true) || (checkBox4->Checked ==true) || (checkBox5->Checked==true) || (checkBox6>Checked==true) || (checkBox7->Checked==true) || (checkBox8->Checked==true)) { this->groupBox2->Enabled=false; this->groupBox4->Enabled=false; this->groupBox5->Enabled=false; this->groupBox6->Enabled=false; } else if ((checkBox1->Checked==false) || (checkBox2>Checked==false) || (checkBox3->Checked==false) || (checkBox4->Checked ==false) || (checkBox5->Checked==false) || (checkBox6>Checked==false) || (checkBox7->Checked==false) || (checkBox8->Checked==false)) { this->groupBox2->Enabled=true; this->groupBox4->Enabled=true; this->groupBox5->Enabled=true; this->groupBox6->Enabled=true; } if(checkBox3->Checked==true) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.8*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); L32

this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.4*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } } else if(checkBox3->Checked==false) { if(checkBox4->Checked==true) { if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = ((0.8*0.3)+(0.5*0.3))/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } else if(checkBox5->Checked==false) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.8*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } else if(checkBox4->Checked==false) L33

{ if(checkBox5->Checked==true) { richTextBox1->Text = "Mesin Knocking/Ngelitik. Segera ke bengkel dan lakukan Tune Up"; double pMN=0.3, pTBN=0.8, pBBM =0.5, pKinerja=0.4; double pHF = (0.5*0.3)/((0.4*0.3)+(0.8*0.3)+(0.5*0.3)); this->textBox1->Text = System::Convert::ToString(pHF); } } } }

L34

Das könnte Ihnen auch gefallen