Hey Leute !
Ich hab mich seit 2 Tagen mit einem neuen Projekt beschäftigt und bin heute fertig geworden! Mein Programm ist ein simples Sortierungsprogramm, dass Dateien nach
Hier könnt ihr euch das Programm kompiliert + Quelltext herunterladen :
http://rapidshare.com/files/15393758...chine.zip.html
Form1.h :
Es geht weiter im nächstem Post.
Ich hab mich seit 2 Tagen mit einem neuen Projekt beschäftigt und bin heute fertig geworden! Mein Programm ist ein simples Sortierungsprogramm, dass Dateien nach
- Erstellungsdatum
- Dateiendung
- Anfangsbuchstaben bzw. -zahl
- Dateigröße
Hier könnt ihr euch das Programm kompiliert + Quelltext herunterladen :
http://rapidshare.com/files/15393758...chine.zip.html
Form1.h :
Code:
#pragma once namespace SortMachine { 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> /// Zusammenfassung für Form1 /// /// Warnung: Wenn Sie den Namen dieser Klasse ändern, müssen Sie auch /// die Ressourcendateiname-Eigenschaft für das Tool zur Kompilierung verwalteter Ressourcen ändern, /// das allen RESX-Dateien zugewiesen ist, von denen diese Klasse abhängt. /// Anderenfalls können die Designer nicht korrekt mit den lokalisierten Ressourcen /// arbeiten, die diesem Formular zugewiesen sind. /// </summary> public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); this->textBox1->Hide(); this->textBox2->Hide(); this->textBox3->Hide(); this->button1->Enabled = false; this->button2->Enabled = false; this->button3->Enabled = false; this->label3->Text = "Suche : "; this->label4->Text = "Ziel : "; // //TODO: Konstruktorcode hier hinzufügen. // } protected: /// <summary> /// Verwendete Ressourcen bereinigen. /// </summary> ~Form1() { if (components) { delete components; } } private: System::Windows::Forms::Label^ label1; protected: private: System::Windows::Forms::FolderBrowserDialog^ folderBrowserDialog1; private: System::Windows::Forms::GroupBox^ groupBox1; private: System::Windows::Forms::RadioButton^ radioButton4; private: System::Windows::Forms::RadioButton^ radioButton3; private: System::Windows::Forms::RadioButton^ radioButton2; private: System::Windows::Forms::RadioButton^ radioButton1; private: System::Windows::Forms::Label^ label2; private: System::Windows::Forms::CheckBox^ checkBox1; private: System::Windows::Forms::CheckBox^ checkBox2; private: System::Windows::Forms::CheckBox^ checkBox3; private: System::Windows::Forms::Button^ button1; private: System::Windows::Forms::Button^ button2; private: System::Windows::Forms::Button^ button3; private: System::Windows::Forms::Button^ button4; private: System::Windows::Forms::Button^ button5; private: System::Windows::Forms::TextBox^ textBox1; private: System::Windows::Forms::TextBox^ textBox2; private: System::Windows::Forms::TextBox^ textBox3; private: System::Windows::Forms::FolderBrowserDialog^ folderBrowserDialog2; private: System::Windows::Forms::Label^ label3; private: System::Windows::Forms::Label^ label4; private: /// <summary> /// Erforderliche Designervariable. /// </summary> System::ComponentModel::Container ^components; #pragma region Windows Form Designer generated code /// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> void InitializeComponent(void) { this->label1 = (gcnew System::Windows::Forms::Label()); this->folderBrowserDialog1 = (gcnew System::Windows::Forms::FolderBrowserDialog()); this->groupBox1 = (gcnew System::Windows::Forms::GroupBox()); this->radioButton4 = (gcnew System::Windows::Forms::RadioButton()); this->radioButton3 = (gcnew System::Windows::Forms::RadioButton()); this->radioButton2 = (gcnew System::Windows::Forms::RadioButton()); this->radioButton1 = (gcnew System::Windows::Forms::RadioButton()); this->label2 = (gcnew System::Windows::Forms::Label()); this->checkBox1 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox2 = (gcnew System::Windows::Forms::CheckBox()); this->checkBox3 = (gcnew System::Windows::Forms::CheckBox()); this->button1 = (gcnew System::Windows::Forms::Button()); this->button2 = (gcnew System::Windows::Forms::Button()); this->button3 = (gcnew System::Windows::Forms::Button()); this->button4 = (gcnew System::Windows::Forms::Button()); this->button5 = (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->folderBrowserDialog2 = (gcnew System::Windows::Forms::FolderBrowserDialog()); this->label3 = (gcnew System::Windows::Forms::Label()); this->label4 = (gcnew System::Windows::Forms::Label()); this->groupBox1->SuspendLayout(); this->SuspendLayout(); // // label1 // this->label1->AutoSize = true; this->label1->BackColor = System::Drawing::Color::White; this->label1->Font = (gcnew System::Drawing::Font(L"Courier New", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->label1->ForeColor = System::Drawing::Color::Gray; this->label1->Location = System::Drawing::Point(113, 9); this->label1->Name = L"label1"; this->label1->Size = System::Drawing::Size(180, 27); this->label1->TabIndex = 0; this->label1->Text = L"Sort-Machine"; // // folderBrowserDialog1 // this->folderBrowserDialog1->RootFolder = System::Environment::SpecialFolder::MyComputer; // // groupBox1 // this->groupBox1->Controls->Add(this->radioButton4); this->groupBox1->Controls->Add(this->radioButton3); this->groupBox1->Controls->Add(this->radioButton2); this->groupBox1->Controls->Add(this->radioButton1); this->groupBox1->Location = System::Drawing::Point(21, 61); this->groupBox1->Name = L"groupBox1"; this->groupBox1->Size = System::Drawing::Size(200, 114); this->groupBox1->TabIndex = 1; this->groupBox1->TabStop = false; this->groupBox1->Text = L"Sortieren nach"; // // radioButton4 // this->radioButton4->AutoSize = true; this->radioButton4->Location = System::Drawing::Point(8, 89); this->radioButton4->Name = L"radioButton4"; this->radioButton4->Size = System::Drawing::Size(89, 17); this->radioButton4->TabIndex = 3; this->radioButton4->TabStop = true; this->radioButton4->Text = L"... Dateigröße"; this->radioButton4->UseVisualStyleBackColor = true; this->radioButton4->CheckedChanged += gcnew System::EventHandler(this, &Form1::rb4_checkedChanged); // // radioButton3 // this->radioButton3->AutoSize = true; this->radioButton3->Location = System::Drawing::Point(8, 66); this->radioButton3->Name = L"radioButton3"; this->radioButton3->Size = System::Drawing::Size(190, 17); this->radioButton3->TabIndex = 2; this->radioButton3->TabStop = true; this->radioButton3->Text = L"... Anfangsbuchstaben und -zahlen"; this->radioButton3->UseVisualStyleBackColor = true; this->radioButton3->CheckedChanged += gcnew System::EventHandler(this, &Form1::rb3_CheckedChanged); // // radioButton2 // this->radioButton2->AutoSize = true; this->radioButton2->Location = System::Drawing::Point(8, 43); this->radioButton2->Name = L"radioButton2"; this->radioButton2->Size = System::Drawing::Size(98, 17); this->radioButton2->TabIndex = 1; this->radioButton2->TabStop = true; this->radioButton2->Text = L"... Dateiendung"; this->radioButton2->UseVisualStyleBackColor = true; this->radioButton2->CheckedChanged += gcnew System::EventHandler(this, &Form1::rb2_CheckedChanged); // // radioButton1 // this->radioButton1->AutoSize = true; this->radioButton1->Location = System::Drawing::Point(8, 20); this->radioButton1->Name = L"radioButton1"; this->radioButton1->Size = System::Drawing::Size(117, 17); this->radioButton1->TabIndex = 0; this->radioButton1->TabStop = true; this->radioButton1->Text = L"... Erstellungsdatum"; this->radioButton1->UseVisualStyleBackColor = true; this->radioButton1->CheckedChanged += gcnew System::EventHandler(this, &Form1::rb1_CheckedChanged); // // label2 // this->label2->AutoSize = true; this->label2->Location = System::Drawing::Point(243, 61); this->label2->Name = L"label2"; this->label2->Size = System::Drawing::Size(69, 13); this->label2->TabIndex = 2; this->label2->Text = L"Separieren in"; // // checkBox1 // this->checkBox1->AutoSize = true; this->checkBox1->Location = System::Drawing::Point(246, 82); this->checkBox1->Name = L"checkBox1"; this->checkBox1->Size = System::Drawing::Size(70, 17); this->checkBox1->TabIndex = 3; this->checkBox1->Text = L"... Jahren"; this->checkBox1->UseVisualStyleBackColor = true; this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &Form1::cb_CheckedChanged);
Comment