на тему рефераты
 
Главная | Карта сайта
на тему рефераты
РАЗДЕЛЫ

на тему рефераты
ПАРТНЕРЫ

на тему рефераты
АЛФАВИТ
... А Б В Г Д Е Ж З И К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Э Ю Я

на тему рефераты
ПОИСК
Введите фамилию автора:


Курсовая работа: Структура иерархии классов "Экран курсового проектирования"


this->Column2->ReadOnly = true;

this->Column2->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column2->Width = 70;

//

// Column3

//

this->Column3->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column3->HeaderText = L"1к.н. факт. % вып.";

this->Column3->Name = L"Column3";

this->Column3->ReadOnly = true;

this->Column3->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column3->Width = 70;

//

// Column4

//

this->Column4->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column4->HeaderText = L"1к.н. контр. оценка";

this->Column4->Name = L"Column4";

this->Column4->ReadOnly = true;

this->Column4->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column4->Width = 70;

//

// Column5

//

this->Column5->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column5->HeaderText = L"2к.н. задан. % вып.";

this->Column5->Name = L"Column5";

this->Column5->ReadOnly = true;

this->Column5->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column5->Width = 70;

//

// Column6

//

this->Column6->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column6->HeaderText = L"2к.н. факт. % вып.";

this->Column6->Name = L"Column6";

this->Column6->ReadOnly = true;

this->Column6->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column6->Width = 70;

//

// Column7

//

this->Column7->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column7->HeaderText = L"2к.н. контр. оценка";

this->Column7->Name = L"Column7";

this->Column7->ReadOnly = true;

this->Column7->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column7->Width = 70;

//

// Column8

//

this->Column8->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column8->HeaderText = L"3к.н. задан. % вып.";

this->Column8->Name = L"Column8";

this->Column8->ReadOnly = true;

this->Column8->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column8->Width = 70;

//

// Column9

//

this->Column9->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column9->HeaderText = L"3к.н. факт. % вып.";

this->Column9->Name = L"Column9";

this->Column9->ReadOnly = true;

this->Column9->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column9->Width = 70;

//

// Column10

//

this->Column10->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column10->HeaderText = L"3к.н. контр. оценка";

this->Column10->Name = L"Column10";

this->Column10->ReadOnly = true;

this->Column10->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column10->Width = 70;

//

// Column11

//

this->Column11->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column11->HeaderText = L"Дата сдачи заверш. проекта (работы) на проверку План";

this->Column11->Name = L"Column11";

this->Column11->ReadOnly = true;

this->Column11->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column11->Width = 120;

//

// Column12

//

this->Column12->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column12->HeaderText = L"Дата сдачи заверш. проекта (работы) на проверку Факт.";

this->Column12->Name = L"Column12";

this->Column12->ReadOnly = true;

this->Column12->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column12->Width = 120;

//

// Column13

//

this->Column13->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column13->HeaderText = L"Дата выдачи проекта (работы) препод. на доработку План";

this->Column13->Name = L"Column13";

this->Column13->ReadOnly = true;

this->Column13->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column13->Width = 120;

//

// Column14

//

this->Column14->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column14->HeaderText = L"Дата выдачи проекта (работы) препод. на доработку Факт.";

this->Column14->Name = L"Column14";

this->Column14->ReadOnly = true;

this->Column14->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column14->Width = 120;

//

// Column15

//

this->Column15->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column15->HeaderText = L"ДатазащитыПлан";

this->Column15->Name = L"Column15";

this->Column15->ReadOnly = true;

this->Column15->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column15->Width = 120;

//

// Column16

//

this->Column16->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column16->HeaderText = L"ДатазащитыФакт.";

this->Column16->Name = L"Column16";

this->Column16->ReadOnly = true;

this->Column16->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column16->Width = 120;

//

// Column17

//

this->Column17->AutoSizeMode = System::Windows::Forms::DataGridViewAutoSizeColumnMode::None;

this->Column17->FillWeight = 30;

this->Column17->HeaderText = L"Оценказаработу";

this->Column17->Name = L"Column17";

this->Column17->ReadOnly = true;

this->Column17->Resizable = System::Windows::Forms::DataGridViewTriState::False;

this->Column17->Width = 75;

//

// menuStrip1

//

this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->fileToolStripMenuItem,

this->helpToolStripMenuItem});

this->menuStrip1->Location = System::Drawing::Point(0, 0);

this->menuStrip1->Name = L"menuStrip1";

this->menuStrip1->Size = System::Drawing::Size(944, 24);

this->menuStrip1->TabIndex = 8;

this->menuStrip1->Text = L"menuStrip1";

//

// fileToolStripMenuItem

//

this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->exitToolStripMenuItem});

this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";

this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);

this->fileToolStripMenuItem->Text = L"File";

//

// exitToolStripMenuItem

//

this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";

this->exitToolStripMenuItem->Size = System::Drawing::Size(92, 22);

this->exitToolStripMenuItem->Text = L"Exit";

this->exitToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::button5_Click);

//

// helpToolStripMenuItem

//

this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->aboutToolStripMenuItem,

this->aboutToolStripMenuItem1});

this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";

this->helpToolStripMenuItem->Size = System::Drawing::Size(44, 20);

this->helpToolStripMenuItem->Text = L"Help";

//

// aboutToolStripMenuItem

//

this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";

this->aboutToolStripMenuItem->Size = System::Drawing::Size(152, 22);

this->aboutToolStripMenuItem->Text = L"Help file";

this->aboutToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::aboutToolStripMenuItem_Click);

//

// aboutToolStripMenuItem1

//

this->aboutToolStripMenuItem1->Name = L"aboutToolStripMenuItem1";

this->aboutToolStripMenuItem1->Size = System::Drawing::Size(152, 22);

this->aboutToolStripMenuItem1->Text = L"About";

this->aboutToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::aboutToolStripMenuItem1_Click);

//

// button4

//

this->button4->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));

this->button4->Location = System::Drawing::Point(12, 727);

this->button4->Name = L"button4";

this->button4->Size = System::Drawing::Size(106, 23);

this->button4->TabIndex = 9;

this->button4->Text = L"Добавитьзапись";

this->button4->UseVisualStyleBackColor = true;

this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);

//

// button5

//

this->button5->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));

this->button5->Location = System::Drawing::Point(860, 706);

this->button5->Name = L"button5";

this->button5->Size = System::Drawing::Size(72, 44);

this->button5->TabIndex = 10;

this->button5->Text = L"Выход";

this->button5->UseVisualStyleBackColor = true;

this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);

//

// button6

//

this->button6->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));

this->button6->Enabled = false;

this->button6->Location = System::Drawing::Point(806, 664);

this->button6->Name = L"button6";

this->button6->Size = System::Drawing::Size(126, 23);

this->button6->TabIndex = 12;

this->button6->Text = L"Удалитьзапись";

this->button6->UseVisualStyleBackColor = true;

this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);

//

// button7

//

this->button7->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));

this->button7->Location = System::Drawing::Point(806, 606);

this->button7->Name = L"button7";

this->button7->Size = System::Drawing::Size(126, 23);

this->button7->TabIndex = 13;

this->button7->Text = L"Изменитьназавние";

this->button7->UseVisualStyleBackColor = true;

this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);

//

// button1

//

this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));

this->button1->Enabled = false;

this->button1->Location = System::Drawing::Point(137, 727);

this->button1->Name = L"button1";

this->button1->Size = System::Drawing::Size(75, 23);

this->button1->TabIndex = 19;

this->button1->Text = L"Поиск";

this->button1->UseVisualStyleBackColor = true;

this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);

//

// button2

//

this->button2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));

this->button2->Enabled = false;

this->button2->Location = System::Drawing::Point(806, 635);

this->button2->Name = L"button2";

this->button2->Size = System::Drawing::Size(126, 23);

this->button2->TabIndex = 20;

this->button2->Text = L"Редактировать";

this->button2->UseVisualStyleBackColor = true;

this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);

//

// listBox1

//

this->listBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)

| System::Windows::Forms::AnchorStyles::Right));

this->listBox1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(0)));

this->listBox1->FormattingEnabled = true;

this->listBox1->ItemHeight = 21;

this->listBox1->Location = System::Drawing::Point(12, 27);

this->listBox1->Name = L"listBox1";

this->listBox1->Size = System::Drawing::Size(920, 25);

this->listBox1->TabIndex = 21;

this->listBox1->Tag = L"";

//

// listBox2

//

this->listBox2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left)

| System::Windows::Forms::AnchorStyles::Right));

this->listBox2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,

static_cast<System::Byte>(204)));

this->listBox2->FormattingEnabled = true;

this->listBox2->HorizontalScrollbar = true;

this->listBox2->ItemHeight = 21;

this->listBox2->Location = System::Drawing::Point(12, 606);

this->listBox2->Name = L"listBox2";

this->listBox2->ScrollAlwaysVisible = true;

this->listBox2->Size = System::Drawing::Size(788, 109);

this->listBox2->TabIndex = 22;

//

// checkBox1

//

this->checkBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left));

this->checkBox1->AutoSize = true;

this->checkBox1->Enabled = false;

this->checkBox1->Location = System::Drawing::Point(256, 727);

this->checkBox1->Name = L"checkBox1";

this->checkBox1->Size = System::Drawing::Size(214, 17);

this->checkBox1->TabIndex = 23;

this->checkBox1->Text = L"Разрешитьредактированиетаблицы";

this->checkBox1->UseVisualStyleBackColor = true;

this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox1_CheckedChanged);

//

// Form1

//

this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);

this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;

this->BackColor = System::Drawing::Color::White;

this->ClientSize = System::Drawing::Size(944, 762);

this->Controls->Add(this->checkBox1);

this->Controls->Add(this->listBox2);

this->Controls->Add(this->listBox1);

this->Controls->Add(this->button2);

this->Controls->Add(this->button1);

this->Controls->Add(this->button7);

this->Controls->Add(this->button6);

this->Controls->Add(this->button5);

this->Controls->Add(this->button4);

this->Controls->Add(this->dataGridView1);

this->Controls->Add(this->menuStrip1);

this->Location = System::Drawing::Point(388, 613);

this->MainMenuStrip = this->menuStrip1;

this->MinimumSize = System::Drawing::Size(960, 800);

this->Name = L"Form1";

this->Text = L"Form1";

this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);

this->Shown += gcnew System::EventHandler(this, &Form1::button7_Click);

(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->dataGridView1))->EndInit();

this->menuStrip1->ResumeLayout(false);

this->menuStrip1->PerformLayout();

this->ResumeLayout(false);

this->PerformLayout();

}

#pragma endregion

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {

}

private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {

 System::Windows::Forms::DialogResult dialres;

 Form2 ^newdlg=gcnew Form2();

 dialres=newdlg->ShowDialog();

 if(dialres==System::Windows::Forms::DialogResult::OK){

 Student->SetName(newdlg->textBox1->Text);

 Student->SetControl(System::Convert::ToInt16(newdlg->textBox4->Text),0);

 Student->SetControl(System::Convert::ToInt16(newdlg->textBox7->Text),1);

 Student->SetControl(System::Convert::ToInt16(newdlg->textBox10->Text),2);

 Student->SetControlScore(System::Convert::ToInt16(newdlg->textBox17->Text));

 Student->SetFact(System::Convert::ToInt16(newdlg->textBox3->Text),0);

 Student->SetFact(System::Convert::ToInt16(newdlg->textBox6->Text),1);

 Student->SetFact(System::Convert::ToInt16(newdlg->textBox9->Text),2);

 Student->SetPlan(System::Convert::ToInt16(newdlg->textBox2->Text),0);

 Student->SetPlan(System::Convert::ToInt16(newdlg->textBox5->Text),1);

 Student->SetPlan(System::Convert::ToInt16(newdlg->textBox8->Text),2);

 Student->SetTest(newdlg->textBox11->Text);

 Student->SetTestF(newdlg->textBox12->Text);

 Student->SetRevision(newdlg->textBox13->Text);

 Student->SetRevisionF(newdlg->textBox14->Text);

 Student->SetProtection(newdlg->textBox15->Text);

 Student->SetProtectionF(newdlg->textBox16->Text);

 dataGridView1->Rows->Add(Student->TName,Student->Plan[0],Student->Fact[0],Student->Control[0],

 Student->Plan[1],Student->Fact[1],Student->Control[1],Student->Plan[2],Student->Fact[2],

 Student->Control[2],Student->Test,Student->TestF,Student->Revision,Student->RevisionF,

 Student->Protection,Student->ProtectionF,Student->ControlScore);

 CountDataGrid++;

 button1->Enabled=true;

 checkBox1->Enabled=true;

 MessageBox::Show("Записьдобавлена!","Information",MessageBoxButtons::OK,MessageBoxIcon::Information);

return;

 }

 }

private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {

 this->Close();

 }

private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {

 System::Windows::Forms::DialogResult dialres;

 dialres=MessageBox::Show("Выточнохотитеудалитьзапись?","Удалить?",MessageBoxButtons::OKCancel,MessageBoxIcon::Warning);

 if(dialres==System::Windows::Forms::DialogResult::OK){

 if(this->dataGridView1->SelectedRows->Count > 0 &&

 this->dataGridView1->SelectedRows[0]->Index !=

 this->dataGridView1->Rows->Count){

 this->dataGridView1->Rows->RemoveAt(this->dataGridView1->SelectedRows[0]->Index);

CountDataGrid--;

 if(CountDataGrid==0){

 button1->Enabled=false;

button2->Enabled=false;

 button6->Enabled=false;

 checkBox1->Enabled=false;

}

 MessageBox::Show("Записьудалена!","Information",MessageBoxButtons::OK,MessageBoxIcon::Information);

}

 else{

 MessageBox::Show("Невыделенаудаляемаястрока!","Ошибка",MessageBoxButtons::OK,MessageBoxIcon::Error);

}

 }

 }

private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {

 System::Windows::Forms::DialogResult dialres;

 Start ^newdlg=gcnew Start();

 dialres=newdlg->ShowDialog();

 if(dialres==System::Windows::Forms::DialogResult::OK){

 this->Text=newdlg->textBox1->Text;

 Screen.SetName(newdlg->textBox1->Text);

 Screen.SetComposition(newdlg->textBox2->Text);

 Screen.SetDate(newdlg->textBox3->Text);

 listBox1->Items->Add(Screen.TName);

listBox2->Items->Add("Состав приемной комиссии: ");

listBox2->Items->Add(Screen.Composition);

listBox2->Items->Add("Дата утверждения: ");

listBox2->Items->Add(Screen.Date);

 }

 }

private: System::Void aboutToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

System::Diagnostics::Process::Start("Help.chm");

}

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

 System::Windows::Forms::DialogResult dialres;

 Search ^newdlg=gcnew Search();

 dialres=newdlg->ShowDialog();

 if(dialres==System::Windows::Forms::DialogResult::OK){

 System::String ^srh;

 srh=newdlg->textBox1->Text;

if(CountDataGrid!=0){

 for(int i=0; i<CountDataGrid; i++){

 for(int j=0; j<dataGridView1->ColumnCount; j++){

 if(System::Convert::ToString(dataGridView1->Rows[i]->Cells[j]->Value)==srh){

 dataGridView1->CurrentCell=dataGridView1->Rows[i]->Cells[j];

 System::Windows::Forms::DialogResult dl;

 dl=MessageBox::Show("Искатьдалее?","Continue?",MessageBoxButtons::OKCancel,MessageBoxIcon::Question);

 if(dl==System::Windows::Forms::DialogResult::Cancel){

 break;

4 }

 }

 }

 }

 MessageBox::Show("Поискзавершен!","Information",MessageBoxButtons::OK,MessageBoxIcon::Information);

 }

 }

 }

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {

 System::Windows::Forms::DialogResult dl;

 dl=MessageBox::Show("Редактироватьзапись?","Изменить?",MessageBoxButtons::OKCancel,MessageBoxIcon::Question);

 if(dl==System::Windows::Forms::DialogResult::OK){

 if(this->dataGridView1->SelectedRows->Count > 0 &&

 this->dataGridView1->SelectedRows[0]->Index !=

 this->dataGridView1->Rows->Count){

Страницы: 1, 2, 3, 4


на тему рефераты
НОВОСТИ на тему рефераты
на тему рефераты
ВХОД на тему рефераты
Логин:
Пароль:
регистрация
забыли пароль?

на тему рефераты    
на тему рефераты
ТЕГИ на тему рефераты

Рефераты бесплатно, реферат бесплатно, курсовые работы, реферат, доклады, рефераты, рефераты скачать, рефераты на тему, сочинения, курсовые, дипломы, научные работы и многое другое.


Copyright © 2012 г.
При использовании материалов - ссылка на сайт обязательна.