Інформаційна система "Обслуговування клієнтів банку" - Курсовая работа

бесплатно 0
4.5 98
Автоматизація роботи бази даних клієнтів та їх особових рахунків. Опис загальної схеми виконання програми, перевірка її працездатності. Створення вікна рахунку та перевірки балансу. Проектування додатку з оформлення заявки для отримання грошей на рахунок.


Аннотация к работе
Крім того , слід розрізняти віртуальні дебетові карти, що випускаються деякими банками , і реальні кредитні та дебетові карти. Задача полягає в автоматизуванні певної роботи банку - бази даних клієнтів та їх особових рахунків. Потрібно розробити програму із зручним інтерфейсом, яка буде підключатися до бази даних клієнтів та рахунків, виводити інформацію по ним. За основу цієї програми я використав Приват 24, але саме додаток використовується окрім системи Windows 8, ще й на ОС Android та IOS. Інформаційна система «Банк» корисна тим, що можна за лічені секунди зробити грошовий переказ, створити рахунок, оформити кредит та вкласти вигідно свої грощі, тощо.Щоб виконати завдання на курсову роботу потрібно було спочатку розібратися і вирішити як реалізувати дану систему, яке середовище використовувати, яку базу даних використовувати.

Вывод
Щоб виконати завдання на курсову роботу потрібно було спочатку розібратися і вирішити як реалізувати дану систему, яке середовище використовувати, яку базу даних використовувати.

Було проаналізовано достатня кількість середовищ і обране Microsoft Visual Studio 2010.

Список литературы
ДСТУ 3008-95 „Документація. Звіти в сфері науки і техніки. Структура і правила оформлення” [Текст] - Державний стандарт України.

РД 50-34_698-90 „Автоматизированные системы. Требования к содержанию документов” [Текст] - Руководящий документ по стандартизации.

Фаулер М., Скотт К. UML. Основы. Краткое руководство поунифицированному языку моделирования [Текст] / Мартин Фаулер и Кендалл Скотт - СПБ.: Символ-Плюс, 2002. - 192 с.

ГОСТ _402-78 „Описание программы” - Государственный стандарт Союза ССР.

Уэзерелл Ч. Этюды для программистов [Текст] / Ч. Уэзерелл. - М.: Мир, 1982. - 288 с.

Тоффоли Т., Марголус Н. Машины клеточных автоматов [Текст] / Т.Тоффоли, Н. Марголус. - М.: Мир, 1991. - 280 с.

Гутман В.И., Мощанский В.Н. Алгоритмы решения задач по механике в средней школе [Текст] / В.И. Гутман, В.Н.Мощанский. - М.: Просвещение, 1988. - 95 с.

Павловский В.Е. Задачи динамики и управления мобильными роботами [Интернет-ресурс] / В.Е. Павловский. - http://posp.raai.org/data/posp2005/SIR/ Pavlovsky /pavlovsky.html

Корн, Г.Справочник по математике для научных работников и инженеров (определения, теоремы, формулы) [Текст]: справочное издание / Г. Корн, Т. Корн. - М. : Наука, 1978. - 831 с

Бережная Е.В., Бережной В.И. Математические методы моделирования экономических систем [Текст]: учеб. пособие / Е. В. Бережная, В.И.Бережной. - М.: Финансы и статистика. - 2006. - 432 с.

Яворский, Б. М.Справочник по физике для инженеров и студентов вузов [Текст] : справочное издание / Б.М. Яворский. - 3-е изд. - М. : Наука, 1965. - 847 с.

Справочниклогиста - 2008 [Текст]. - К. : ООО "СЭЭМ", 2008. - 144 с.

Гросс, К. C# и платформа NET 3.5 Framework: базовое руководство [Текст] : учебное пособие / К. Гросс. - 2-е изд. - М. : ООО "И.Д. Вильямс", 2009. - 480 с.

Шилдт, Г. C# 3.0: руководство для начинающих [Текст] : учебное пособие / Ш. Герберт. - 2-е изд. - М. : ООО "И.Д. Вильямс", 2009. - 688 с.

Глушаков, С. В. Практикум по C [Текст] : учебное пособие / С.В. Глушаков, А.В. Коваль, С.В. Смирнов. - Х. : Фолио, 2006. - 525 с.

Додаток А. Код програми addm.cs using System;

using System.IO;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{ publicpartialclassaddm : Form

{ public addm()

{

INITIALIZECOMPONENT();

} menu1 menu;

privatevoid button2_Click(object sender, EVENTARGS e)

{ this.Close();

menu = new menu1();

menu.Show();

} privatevoid TEXTBOX2_TEXTCHANGED(object sender, EVENTARGS e)

{

TEXTBOX2.Text = System.IO.File.READALLTEXT(@"DB\log.txt");

} privatevoid TEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{ int num = System.IO.File.READALLLINES(@"DB

um.txt").Length;

string number = "" num;

TEXTBOX1.Text = number;

} privatevoid button1_Click(object sender, EVENTARGS e)

{ string a = "-";

string[] lineshistory = System.IO.File.READALLLINES(@"DB

um.txt");

string[] lineshistory2 = { a };

List s2 = NEWLIST();

s2.ADDRANGE(lineshistory);

s2.ADDRANGE(lineshistory2);

System.IO.File.WRITEALLLINES(@"DB

um.txt", s2);

string dir = @"DB\Ячейки\" TEXTBOX1.Text;

Directory.CREATEDIRECTORY(dir);

string info = dir "\\info.txt";

string money = dir "\\money.txt";

string ceep = dir "\\ceep.txt";

string a1 = "Владелец: " TEXTBOX2.Text;

string b1 = "Стартовое вложение: " TEXTBOX6.Text;

string c1 = "Дата открытия: " DATETIME.Now.TOSTRING("dd MMMM yyyy | HH:mm:ss") ";";

string[] line1 = { c1, a1, b1 };

System.IO.File.WRITEALLLINES(info, line1);

System.IO.File.WRITEALLTEXT(money, TEXTBOX6.Text);

System.IO.File.WRITEALLTEXT(ceep, TEXTBOX2.Text);

string bankmoney1 = System.IO.File.READALLTEXT(@"DB\int.txt");

int bankmoney2 = Convert.TOINT32(TEXTBOX5.Text);

int bankmoney = Convert.TOINT32(bankmoney1);

int bankmoney0 = bankmoney bankmoney2;

bankmoney1 = "" bankmoney0;

System.IO.File.WRITEALLTEXT(@"DB\int.txt", bankmoney1);

string[] lin = System.IO.File.READALLLINES(@"DB\history.txt");

string h = "Открыл счет:";

string space = "";

string[] lin2 = {space, h, a1, b1, c1, space};

List s1 = NEWLIST();

s1.ADDRANGE(lin);

s1.ADDRANGE(lin2);

System.IO.File.WRITEALLLINES(@"DB\history.txt", s1);

string[] lastl1 = System.IO.File.READALLLINES(@"DB\Аккаунты\" TEXTBOX2.Text "\\mb.txt");

string[] lastl2 = { TEXTBOX1.Text };

List s4 = NEWLIST();

s4.ADDRANGE(lastl1);

s4.ADDRANGE(lastl2);

System.IO.File.WRITEALLLINES(@"DB\Аккаунты\" TEXTBOX2.Text "\\mb.txt", s4);

} privatevoid TEXTBOX6_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid label5_Click(object sender, EVENTARGS e)

{

} privatevoid button3_Click(object sender, EVENTARGS e)

{ int x = Convert.TOINT32(TEXTBOX3.Text);

int y = 100;

if (x >= 100) { y = 10;} elseif(x >= 10000) { y = 5;} elseif (x >= 60000) {y = 3;} string yy = "" y;

TEXTBOX4.Text = yy;

int z = x / 100 * y;

string zz = "" z;

TEXTBOX5.Text = zz;

int f = x - z;

string ff = "" f;

TEXTBOX6.Text = ff;

} privatevoid label6_Click(object sender, EVENTARGS e)

{

} privatevoid label7_Click(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX3_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX4_TEXTCHANGED(object sender, EVENTARGS e)

{

TEXTBOX4.Text = System.IO.File.READALLTEXT(@"DB\percent2.txt");

} privatevoid TEXTBOX5_TEXTCHANGED(object sender, EVENTARGS e)

{

}

}

}

Addm.Designer.cs namespace BANK

{ partialclassaddm

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(addm));

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.label3 = new System.Windows.Forms.Label();

this.label4 = new System.Windows.Forms.Label();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX2 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX3 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX4 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX5 = new System.Windows.Forms.TEXTBOX();

this.button1 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.label5 = new System.Windows.Forms.Label();

this.TEXTBOX6 = new System.Windows.Forms.TEXTBOX();

this.label6 = new System.Windows.Forms.Label();

this.label7 = new System.Windows.Forms.Label();

this.SUSPENDLAYOUT();

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(26, 26);

this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(131, 17);

this.label1.TABINDEX = 0;

this.label1.Text = "Номер нового счета";

//

// label2

// this.label2.AUTOSIZE = true;

this.label2.Location = new System.Drawing.Point(26, 69);

this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(65, 17);

this.label2.TABINDEX = 1;

this.label2.Text = "Владелец";

//

// label3

// this.label3.AUTOSIZE = true;

this.label3.Location = new System.Drawing.Point(26, 110);

this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label3.Name = "label3";

this.label3.Size = new System.Drawing.Size(133, 17);

this.label3.TABINDEX = 2;

this.label3.Text = "Стартовое вложение";

//

// label4

// this.label4.AUTOSIZE = true;

this.label4.Location = new System.Drawing.Point(26, 154);

this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label4.Name = "label4";

this.label4.Size = new System.Drawing.Size(58, 17);

this.label4.TABINDEX = 3;

this.label4.Text = "Процент";

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(200, 22);

this.TEXTBOX1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(402, 24);

this.TEXTBOX1.TABINDEX = 4;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// TEXTBOX2

// this.TEXTBOX2.Location = new System.Drawing.Point(200, 65);

this.TEXTBOX2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.TEXTBOX2.Name = "TEXTBOX2";

this.TEXTBOX2.Size = new System.Drawing.Size(402, 24);

this.TEXTBOX2.TABINDEX = 5;

this.TEXTBOX2.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX2_TEXTCHANGED);

//

// TEXTBOX3

// this.TEXTBOX3.Location = new System.Drawing.Point(200, 106);

this.TEXTBOX3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.TEXTBOX3.Name = "TEXTBOX3";

this.TEXTBOX3.Size = new System.Drawing.Size(402, 24);

this.TEXTBOX3.TABINDEX = 6;

this.TEXTBOX3.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX3_TEXTCHANGED);

//

// TEXTBOX4

// this.TEXTBOX4.Location = new System.Drawing.Point(148, 150);

this.TEXTBOX4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.TEXTBOX4.Name = "TEXTBOX4";

this.TEXTBOX4.Size = new System.Drawing.Size(65, 24);

this.TEXTBOX4.TABINDEX = 7;

this.TEXTBOX4.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX4_TEXTCHANGED);

//

// TEXTBOX5

// this.TEXTBOX5.Location = new System.Drawing.Point(256, 150);

this.TEXTBOX5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.TEXTBOX5.Name = "TEXTBOX5";

this.TEXTBOX5.Size = new System.Drawing.Size(104, 24);

this.TEXTBOX5.TABINDEX = 8;

this.TEXTBOX5.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX5_TEXTCHANGED);

//

// button1

// this.button1.Location = new System.Drawing.Point(422, 150);

this.button1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(180, 31);

this.button1.TABINDEX = 9;

this.button1.Text = "Создать счет";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// button2

// this.button2.Location = new System.Drawing.Point(422, 201);

this.button2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(180, 31);

this.button2.TABINDEX = 10;

this.button2.Text = "Назад";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// button3

// this.button3.Location = new System.Drawing.Point(110, 222);

this.button3.Margin = new System.Windows.Forms.Padding(4);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(268, 23);

this.button3.TABINDEX = 11;

this.button3.Text = "Подсчет";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// label5

// this.label5.AUTOSIZE = true;

this.label5.Location = new System.Drawing.Point(26, 194);

this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label5.Name = "label5";

this.label5.Size = new System.Drawing.Size(102, 17);

this.label5.TABINDEX = 12;

this.label5.Text = "Будет на счету:";

this.label5.Click = new System.EVENTHANDLER(this.label5_Click);

//

// TEXTBOX6

// this.TEXTBOX6.Location = new System.Drawing.Point(148, 191);

this.TEXTBOX6.Margin = new System.Windows.Forms.Padding(4);

this.TEXTBOX6.Name = "TEXTBOX6";

this.TEXTBOX6.Size = new System.Drawing.Size(266, 24);

this.TEXTBOX6.TABINDEX = 13;

this.TEXTBOX6.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX6_TEXTCHANGED);

//

// label6

// this.label6.AUTOSIZE = true;

this.label6.Location = new System.Drawing.Point(220, 154);

this.label6.Name = "label6";

this.label6.Size = new System.Drawing.Size(16, 17);

this.label6.TABINDEX = 14;

this.label6.Text = "%

";

this.label6.Click = new System.EVENTHANDLER(this.label6_Click);

//

// label7

// this.label7.AUTOSIZE = true;

this.label7.Location = new System.Drawing.Point(367, 154);

this.label7.Name = "label7";

this.label7.Size = new System.Drawing.Size(18, 17);

this.label7.TABINDEX = 15;

this.label7.Text = "€";

this.label7.Click = new System.EVENTHANDLER(this.label7_Click);

//

// addm

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(625, 258);

this.Controls.Add(this.label7);

this.Controls.Add(this.label6);

this.Controls.Add(this.TEXTBOX6);

this.Controls.Add(this.label5);

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button1);

this.Controls.Add(this.TEXTBOX5);

this.Controls.Add(this.TEXTBOX4);

this.Controls.Add(this.TEXTBOX3);

this.Controls.Add(this.TEXTBOX2);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.label4);

this.Controls.Add(this.label3);

this.Controls.Add(this.label2);

this.Controls.Add(this.label1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.Name = "addm";

this.Text = "Создание счета";

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Label label1;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Label label3;

private System.Windows.Forms.Label label4;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.TEXTBOX TEXTBOX2;

private System.Windows.Forms.TEXTBOX TEXTBOX3;

private System.Windows.Forms.TEXTBOX TEXTBOX4;

private System.Windows.Forms.TEXTBOX TEXTBOX5;

private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

private System.Windows.Forms.Label label5;

private System.Windows.Forms.TEXTBOX TEXTBOX6;

private System.Windows.Forms.Label label6;

private System.Windows.Forms.Label label7;

}

}

Addm2.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{

PUBLICPARTIALCLASSADDM2 : Form

{ public Addm2()

{

INITIALIZECOMPONENT();

} menu1 menu;

privatevoid button1_Click(object sender, EVENTARGS e)

{ this.Close();

menu = new menu1();

menu.Show();

} privatevoid RICHTEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid button2_Click(object sender, EVENTARGS e)

{

RICHTEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\Аккаунты\" TEXTBOX1.Text "\\mb.txt");

} privatevoid button3_Click(object sender, EVENTARGS e)

{

RICHTEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX2.Text "\\info.txt");

TEXTBOX3.Text = System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX2.Text "\\money.txt");

} privatevoid label3_Click(object sender, EVENTARGS e)

{

} privatevoid label2_Click(object sender, EVENTARGS e)

{

} privatevoid label1_Click(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

TEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\log.txt");

} privatevoid TEXTBOX2_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX3_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid Addm2_Load(object sender, EVENTARGS e)

{

}

}

}

Addm2.Designer.cs namespace BANK

{

PARTIALCLASSADDM2

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(Addm2));

this.button1 = new System.Windows.Forms.Button();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.label3 = new System.Windows.Forms.Label();

this.TEXTBOX2 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX3 = new System.Windows.Forms.TEXTBOX();

this.button2 = new System.Windows.Forms.Button();

this.RICHTEXTBOX1 = new System.Windows.Forms.RICHTEXTBOX();

this.button3 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// button1

// this.button1.Location = new System.Drawing.Point(305, 305);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(109, 26);

this.button1.TABINDEX = 0;

this.button1.Text = "Назад";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(178, 12);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(209, 24);

this.TEXTBOX1.TABINDEX = 1;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(29, 15);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(65, 17);

this.label1.TABINDEX = 2;

this.label1.Text = "Владелец";

this.label1.Click = new System.EVENTHANDLER(this.label1_Click);

//

// label2

// this.label2.AUTOSIZE = true;

this.label2.Location = new System.Drawing.Point(29, 49);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(51, 17);

this.label2.TABINDEX = 3;

this.label2.Text = "Ячейка";

this.label2.Click = new System.EVENTHANDLER(this.label2_Click);

//

// label3

// this.label3.AUTOSIZE = true;

this.label3.Location = new System.Drawing.Point(29, 86);

this.label3.Name = "label3";

this.label3.Size = new System.Drawing.Size(51, 17);

this.label3.TABINDEX = 4;

this.label3.Text = "Баланс";

this.label3.Click = new System.EVENTHANDLER(this.label3_Click);

//

// TEXTBOX2

// this.TEXTBOX2.Location = new System.Drawing.Point(178, 49);

this.TEXTBOX2.Name = "TEXTBOX2";

this.TEXTBOX2.Size = new System.Drawing.Size(209, 24);

this.TEXTBOX2.TABINDEX = 5;

this.TEXTBOX2.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX2_TEXTCHANGED);

//

// TEXTBOX3

// this.TEXTBOX3.Location = new System.Drawing.Point(178, 86);

this.TEXTBOX3.Name = "TEXTBOX3";

this.TEXTBOX3.Size = new System.Drawing.Size(209, 24);

this.TEXTBOX3.TABINDEX = 6;

this.TEXTBOX3.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX3_TEXTCHANGED);

//

// button2

// this.button2.Location = new System.Drawing.Point(32, 133);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(131, 26);

this.button2.TABINDEX = 7;

this.button2.Text = "Показать ячейки";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// RICHTEXTBOX1

// this.RICHTEXTBOX1.Location = new System.Drawing.Point(31, 173);

this.RICHTEXTBOX1.Name = "RICHTEXTBOX1";

this.RICHTEXTBOX1.Size = new System.Drawing.Size(131, 157);

this.RICHTEXTBOX1.TABINDEX = 8;

this.RICHTEXTBOX1.Text = "";

this.RICHTEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.RICHTEXTBOX1_TEXTCHANGED);

//

// button3

// this.button3.Location = new System.Drawing.Point(187, 133);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(131, 26);

this.button3.TABINDEX = 9;

this.button3.Text = "Показать баланс";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// Addm2

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(426, 343);

this.Controls.Add(this.button3);

this.Controls.Add(this.RICHTEXTBOX1);

this.Controls.Add(this.button2);

this.Controls.Add(this.TEXTBOX3);

this.Controls.Add(this.TEXTBOX2);

this.Controls.Add(this.label3);

this.Controls.Add(this.label2);

this.Controls.Add(this.label1);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.button1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.Name = "Addm2";

this.Text = "Проверка баланса";

this.Load = new System.EVENTHANDLER(this.Addm2_Load);

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Button button1;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Label label3;

private System.Windows.Forms.TEXTBOX TEXTBOX2;

private System.Windows.Forms.TEXTBOX TEXTBOX3;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.RICHTEXTBOX RICHTEXTBOX1;

private System.Windows.Forms.Button button3;

}

}

Bank.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{

PUBLICPARTIALCLASSBANK : Form

{ public Bank()

{

INITIALIZECOMPONENT();

} menu1 menu;

privatevoid button1_Click(object sender, EVENTARGS e)

{ this.Close();

menu = new menu1();

menu.Show();

} privatevoid button2_Click(object sender, EVENTARGS e)

{ string text = System.IO.File.READALLTEXT(@"DB\history.txt");

UTF8Encoding utf8 = NEWUTF8Encoding();

Byte[] ENCODEDBYTES = utf8.GETBYTES(text);

text = utf8.GETSTRING(ENCODEDBYTES);

RICHTEXTBOX1.Text = text;

} privatevoid Bank_Load(object sender, EVENTARGS e)

{

Bank.designer.cs namespace BANK

{

PARTIALCLASSBANK

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(Bank));

this.button1 = new System.Windows.Forms.Button();

this.RICHTEXTBOX1 = new System.Windows.Forms.RICHTEXTBOX();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX2 = new System.Windows.Forms.TEXTBOX();

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.button4 = new System.Windows.Forms.Button();

this.button5 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// button1

// this.button1.Location = new System.Drawing.Point(355, 307);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(72, 25);

this.button1.TABINDEX = 0;

this.button1.Text = "Назад";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// RICHTEXTBOX1

// this.RICHTEXTBOX1.Location = new System.Drawing.Point(12, 118);

this.RICHTEXTBOX1.Name = "RICHTEXTBOX1";

this.RICHTEXTBOX1.Size = new System.Drawing.Size(265, 214);

this.RICHTEXTBOX1.TABINDEX = 3;

this.RICHTEXTBOX1.Text = "";

this.RICHTEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.RICHTEXTBOX1_TEXTCHANGED);

//

// button2

// this.button2.Location = new System.Drawing.Point(12, 12);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(265, 25);

this.button2.TABINDEX = 4;

this.button2.Text = "Показать историю";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// button3

// this.button3.Location = new System.Drawing.Point(12, 53);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(264, 33);

this.button3.TABINDEX = 5;

this.button3.Text = "Финансовое состояние";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(300, 121);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(126, 20);

this.TEXTBOX1.TABINDEX = 6;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// TEXTBOX2

// this.TEXTBOX2.Location = new System.Drawing.Point(300, 194);

this.TEXTBOX2.Name = "TEXTBOX2";

this.TEXTBOX2.Size = new System.Drawing.Size(126, 20);

this.TEXTBOX2.TABINDEX = 7;

this.TEXTBOX2.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX2_TEXTCHANGED);

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(297, 160);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(134, 13);

this.label1.TABINDEX = 8;

this.label1.Text = "процент кредитирования";

this.label1.Click = new System.EVENTHANDLER(this.label1_Click);

//

// label2

// this.label2.AUTOSIZE = true;

this.label2.Location = new System.Drawing.Point(297, 89);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(130, 13);

this.label2.TABINDEX = 9;

this.label2.Text = "процент создания счета";

this.label2.Click = new System.EVENTHANDLER(this.label2_Click);

//

// button4

// this.button4.Location = new System.Drawing.Point(300, 231);

this.button4.Name = "button4";

this.button4.Size = new System.Drawing.Size(127, 35);

this.button4.TABINDEX = 10;

this.button4.Text = "Изменить";

this.button4.USEVISUALSTYLEBACKCOLOR = true;

this.button4.Click = new System.EVENTHANDLER(this.button4_Click);

//

// button5

// this.button5.Location = new System.Drawing.Point(299, 31);

this.button5.Name = "button5";

this.button5.Size = new System.Drawing.Size(127, 35);

this.button5.TABINDEX = 11;

this.button5.Text = "Текущие";

this.button5.USEVISUALSTYLEBACKCOLOR = true;

this.button5.Click = new System.EVENTHANDLER(this.button5_Click);

//

// Bank

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(6F, 13F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(439, 344);

this.Controls.Add(this.button5);

this.Controls.Add(this.button4);

this.Controls.Add(this.label2);

this.Controls.Add(this.label1);

this.Controls.Add(this.TEXTBOX2);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.RICHTEXTBOX1);

this.Controls.Add(this.button1);

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Name = "Bank";

this.Text = "Bank";

this.Load = new System.EVENTHANDLER(this.Bank_Load);

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Button button1;

private System.Windows.Forms.RICHTEXTBOX RICHTEXTBOX1;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.TEXTBOX TEXTBOX2;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Button button4;

private System.Windows.Forms.Button button5;

}

}

Bank0.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{

PUBLICPARTIALCLASSBANK0 : Form

{ public Bank0()

{

INITIALIZECOMPONENT();

bank = new Bank();

} menu1 menu;

privatevoid button3_Click(object sender, EVENTARGS e)

{ this.Close();

menu = new menu1();

menu.Show();

} privatevoid button2_Click(object sender, EVENTARGS e)

{

TEXTBOX1.USESYSTEMPASSWORDCHAR = true;

} privatevoid TEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid Bank0_Load(object sender, EVENTARGS e)

{

}

Bank bank;

privatevoid button1_Click(object sender, EVENTARGS e)

{ if (TEXTBOX1.Text == "99567581")

{ this.Close();

bank = new Bank();

bank.Show();

} else

{

MESSAGEBOX.Show("Неверный пароль или логин", "Ошибка");

}

}

}

}

Bank0.Designer.cs namespace BANK

{

PARTIALCLASSBANK0

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(Bank0));

this.label1 = new System.Windows.Forms.Label();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.button1 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(33, 27);

this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(52, 17);

this.label1.TABINDEX = 0;

this.label1.Text = "Пароль";

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(104, 24);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(228, 24);

this.TEXTBOX1.TABINDEX = 1;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// button1

// this.button1.Location = new System.Drawing.Point(104, 54);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(228, 28);

this.button1.TABINDEX = 2;

this.button1.Text = "Вход";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// button2

// this.button2.Location = new System.Drawing.Point(338, 24);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(18, 21);

this.button2.TABINDEX = 3;

this.button2.Text = "*";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// button3

// this.button3.Location = new System.Drawing.Point(104, 88);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(228, 26);

this.button3.TABINDEX = 4;

this.button3.Text = "Назад";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// Bank0

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(375, 126);

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button1);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.label1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.FORMBORDERSTYLE = System.Windows.Forms.FORMBORDERSTYLE.FIXEDTOOLWINDOW;

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.Name = "Bank0";

this.Load = new System.EVENTHANDLER(this.Bank0_Load);

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Label label1;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

}

}

Cred2.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{

PUBLICPARTIALCLASSCRED2 : Form

{ public Cred2()

{

INITIALIZECOMPONENT();

} publicstaticstring intt = System.IO.File.READALLTEXT(@"DB\int.txt");

publicint bank = Convert.TOINT32(intt);

menu1 menu;

privatevoid button1_Click(object sender, EVENTARGS e)

{ this.Close();

menu = newmenu1();

menu.Show();

} privatevoid button2_Click(object sender, EVENTARGS e)

{

RICHTEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\Кредиты.txt");

} privatevoid button4_Click(object sender, EVENTARGS e)

{ string name = System.IO.File.READALLTEXT(@"DB\log.txt");

RICHTEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\Аккаунты\" name "\\mb.txt");

} privatevoid button3_Click(object sender, EVENTARGS e)

{ int ask1 = Convert.TOINT32(TEXTBOX2.Text);

int ask2 = Convert.TOINT32(System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX1.Text "\\money.txt"));

if (ask1 > ask2)

{

TEXTBOX2.Text = "???";

RICHTEXTBOX1.Text = System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX1.Text "\\info.txt") "|| на счету: " System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX1.Text "\\money.txt");

} else

{ int sum = Convert.TOINT32(TEXTBOX2.Text);

bank = bank sum;

int sum2 = Convert.TOINT32(System.IO.File.READALLTEXT(@"DB\Кредиты\" TEXTBOX3.Text "\\сумма.txt"));

sum2 = sum2 - sum;

string summa = "" sum2;

System.IO.File.WRITEALLTEXT(@"DB\Кредиты\" TEXTBOX3.Text "\\сумма.txt", summa);

sum2 = Convert.TOINT32(System.IO.File.READALLTEXT(@"DB\Ячейки\" TEXTBOX1.Text "\\money.txt"));

sum2 = sum2 - sum;

string sum22 = "" sum2;

System.IO.File.WRITEALLTEXT(@"DB\Ячейки\" TEXTBOX1.Text "\\money.txt", sum22);

RICHTEXTBOX1.Text = "Выполнено...";

}

} privatevoid TEXTBOX2_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX3_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid label3_Click(object sender, EVENTARGS e)

{

} privatevoid label1_Click(object sender, EVENTARGS e)

{

} privatevoid label2_Click(object sender, EVENTARGS e)

{

} privatevoid Cred2_Load(object sender, EVENTARGS e)

{

} privatevoid RICHTEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

}

}

}

Cred2.Designer.cs namespace BANK

{

PARTIALCLASSCRED2

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(Cred2));

this.button1 = new System.Windows.Forms.Button();

this.RICHTEXTBOX1 = new System.Windows.Forms.RICHTEXTBOX();

this.button2 = new System.Windows.Forms.Button();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.TEXTBOX2 = new System.Windows.Forms.TEXTBOX();

this.button3 = new System.Windows.Forms.Button();

this.TEXTBOX3 = new System.Windows.Forms.TEXTBOX();

this.label3 = new System.Windows.Forms.Label();

this.button4 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// button1

// this.button1.Location = new System.Drawing.Point(330, 327);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(110, 28);

this.button1.TABINDEX = 0;

this.button1.Text = "Назад";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// RICHTEXTBOX1

// this.RICHTEXTBOX1.Location = new System.Drawing.Point(12, 58);

this.RICHTEXTBOX1.Name = "RICHTEXTBOX1";

this.RICHTEXTBOX1.Size = new System.Drawing.Size(271, 303);

this.RICHTEXTBOX1.TABINDEX = 1;

this.RICHTEXTBOX1.Text = "";

this.RICHTEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.RICHTEXTBOX1_TEXTCHANGED);

//

// button2

// this.button2.Location = new System.Drawing.Point(12, 12);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(119, 40);

this.button2.TABINDEX = 2;

this.button2.Text = "Список кредитов";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(292, 165);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(148, 24);

this.TEXTBOX1.TABINDEX = 3;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(293, 129);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(90, 17);

this.label1.TABINDEX = 4;

this.label1.Text = "Номер счета ";

this.label1.Click = new System.EVENTHANDLER(this.label1_Click);

//

// label2

// this.label2.AUTOSIZE = true;

this.label2.Location = new System.Drawing.Point(293, 204);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(47, 17);

this.label2.TABINDEX = 5;

this.label2.Text = "Сумма";

this.label2.Click = new System.EVENTHANDLER(this.label2_Click);

//

// TEXTBOX2

// this.TEXTBOX2.Location = new System.Drawing.Point(292, 242);

this.TEXTBOX2.Name = "TEXTBOX2";

this.TEXTBOX2.Size = new System.Drawing.Size(146, 24);

this.TEXTBOX2.TABINDEX = 6;

this.TEXTBOX2.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX2_TEXTCHANGED);

//

// button3

// this.button3.Location = new System.Drawing.Point(292, 284);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(146, 25);

this.button3.TABINDEX = 7;

this.button3.Text = "Оплатить";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// TEXTBOX3

// this.TEXTBOX3.Location = new System.Drawing.Point(292, 88);

this.TEXTBOX3.Name = "TEXTBOX3";

this.TEXTBOX3.Size = new System.Drawing.Size(148, 24);

this.TEXTBOX3.TABINDEX = 8;

this.TEXTBOX3.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX3_TEXTCHANGED);

//

// label3

// this.label3.AUTOSIZE = true;

this.label3.Location = new System.Drawing.Point(289, 44);

this.label3.Name = "label3";

this.label3.Size = new System.Drawing.Size(100, 17);

this.label3.TABINDEX = 9;

this.label3.Text = "Номер кредита";

this.label3.Click = new System.EVENTHANDLER(this.label3_Click);

//

// button4

// this.button4.Location = new System.Drawing.Point(164, 12);

this.button4.Name = "button4";

this.button4.Size = new System.Drawing.Size(119, 40);

this.button4.TABINDEX = 10;

this.button4.Text = "Счета";

this.button4.USEVISUALSTYLEBACKCOLOR = true;

this.button4.Click = new System.EVENTHANDLER(this.button4_Click);

//

// Cred2

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(461, 373);

this.Controls.Add(this.button4);

this.Controls.Add(this.label3);

this.Controls.Add(this.TEXTBOX3);

this.Controls.Add(this.button3);

this.Controls.Add(this.TEXTBOX2);

this.Controls.Add(this.label2);

this.Controls.Add(this.label1);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.button2);

this.Controls.Add(this.RICHTEXTBOX1);

this.Controls.Add(this.button1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);

this.Name = "Cred2";

this.Text = "Оплата кредитов";

this.Load = new System.EVENTHANDLER(this.Cred2_Load);

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Button button1;

private System.Windows.Forms.RICHTEXTBOX RICHTEXTBOX1;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.TEXTBOX TEXTBOX2;

private System.Windows.Forms.Button button3;

private System.Windows.Forms.TEXTBOX TEXTBOX3;

private System.Windows.Forms.Label label3;

private System.Windows.Forms.Button button4;

}

}

Enter.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{

PUBLICPARTIALCLASSENTER : Form

{ publicstring log;

public Enter()

{

INITIALIZECOMPONENT();

registration = NEWREGISTRATION();

menu = newmenu1();

} privatevoid TEXTBOX1_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid label3_Click(object sender, EVENTARGS e)

{

} privatevoid TEXTBOX2_TEXTCHANGED(object sender, EVENTARGS e)

{

} privatevoid label2_Click(object sender, EVENTARGS e)

{

} privatevoid label1_Click(object sender, EVENTARGS e)

{

} privatevoid Enter_Load(object sender, EVENTARGS e)

{

} privatevoid button4_Click(object sender, EVENTARGS e)

{

TEXTBOX2.USESYSTEMPASSWORDCHAR = true;

} menu1 menu;

privatevoid button2_Click(object sender, EVENTARGS e)

{ string a = TEXTBOX2.Text;

string b = System.IO.File.READALLTEXT(@"DB\Аккаунты\" TEXTBOX1.Text "\\pass.txt");

if(b == a)

{ string hisspace = "";

string ifohis = "Вход совершен: " TEXTBOX1.Text ";";

string datahis = DATETIME.Now.TOSTRING("dd MMMM yyyy | HH:mm:ss") ";";

string[] lineshistory = System.IO.File.READALLLINES(@"DB\history.txt");

string[] lineshistory2 = { hisspace, ifohis, datahis, hisspace };

List s2 = NEWLIST();

s2.ADDRANGE(lineshistory);

s2.ADDRANGE(lineshistory2);

System.IO.File.WRITEALLLINES(@"DB\history.txt", s2);

log = TEXTBOX1.Text;

System.IO.File.WRITEALLTEXT(@"DB\log.txt", log);

this.Hide();

menu = newmenu1();

menu.Show();

} else

{

MESSAGEBOX.Show("Неверный пароль или логин", "Ошибка");

}

} privatevoid button1_Click(object sender, EVENTARGS e)

{ string logg = TEXTBOX1.Text;

string askk = System.IO.File.READALLTEXT(@"DB\Аккаунты\" TEXTBOX1.Text "\\ask.txt");

MESSAGEBOX.Show("Подсказка: " askk, logg);

}

Registration registration;

privatevoid button3_Click(object sender, EVENTARGS e)

{ this.Hide();

registration = NEWREGISTRATION();

registration.Show();

}

}

}

Enter.Designer.cs namespace BANK

{

PARTIALCLASSENTER

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(Enter));

this.button1 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.label3 = new System.Windows.Forms.Label();

this.TEXTBOX1 = new System.Windows.Forms.TEXTBOX();

this.TEXTBOX2 = new System.Windows.Forms.TEXTBOX();

this.button4 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// button1

// this.button1.Location = new System.Drawing.Point(101, 205);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(248, 29);

this.button1.TABINDEX = 0;

this.button1.Text = "Забыли пароль";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// button2

// this.button2.Location = new System.Drawing.Point(101, 162);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(248, 26);

this.button2.TABINDEX = 1;

this.button2.Text = "Вход";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// button3

// this.button3.Location = new System.Drawing.Point(101, 252);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(248, 24);

this.button3.TABINDEX = 2;

this.button3.Text = "Регистрация";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// label1

// this.label1.AUTOSIZE = true;

this.label1.Location = new System.Drawing.Point(38, 65);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(44, 17);

this.label1.TABINDEX = 3;

this.label1.Text = "Логин";

this.label1.Click = new System.EVENTHANDLER(this.label1_Click);

//

// label2

// this.label2.AUTOSIZE = true;

this.label2.Location = new System.Drawing.Point(38, 120);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(52, 17);

this.label2.TABINDEX = 4;

this.label2.Text = "Пароль";

this.label2.Click = new System.EVENTHANDLER(this.label2_Click);

//

// label3

// this.label3.AUTOSIZE = true;

this.label3.Location = new System.Drawing.Point(177, 21);

this.label3.Name = "label3";

this.label3.Size = new System.Drawing.Size(85, 17);

this.label3.TABINDEX = 5;

this.label3.Text = "Авторизация";

this.label3.Click = new System.EVENTHANDLER(this.label3_Click);

//

// TEXTBOX1

// this.TEXTBOX1.Location = new System.Drawing.Point(101, 62);

this.TEXTBOX1.Name = "TEXTBOX1";

this.TEXTBOX1.Size = new System.Drawing.Size(248, 24);

this.TEXTBOX1.TABINDEX = 6;

this.TEXTBOX1.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX1_TEXTCHANGED);

//

// TEXTBOX2

// this.TEXTBOX2.Location = new System.Drawing.Point(101, 117);

this.TEXTBOX2.Name = "TEXTBOX2";

this.TEXTBOX2.Size = new System.Drawing.Size(248, 24);

this.TEXTBOX2.TABINDEX = 7;

this.TEXTBOX2.TEXTCHANGED = new System.EVENTHANDLER(this.TEXTBOX2_TEXTCHANGED);

//

// button4

// this.button4.Location = new System.Drawing.Point(369, 119);

this.button4.Name = "button4";

this.button4.Size = new System.Drawing.Size(21, 21);

this.button4.TABINDEX = 8;

this.button4.Text = "*";

this.button4.USEVISUALSTYLEBACKCOLOR = true;

this.button4.Click = new System.EVENTHANDLER(this.button4_Click);

//

// Enter

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(426, 343);

this.Controls.Add(this.button4);

this.Controls.Add(this.TEXTBOX2);

this.Controls.Add(this.TEXTBOX1);

this.Controls.Add(this.label3);

this.Controls.Add(this.label2);

this.Controls.Add(this.label1);

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.FORMBORDERSTYLE = System.Windows.Forms.FORMBORDERSTYLE.FIXEDTOOLWINDOW;

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4);

this.Name = "Enter";

this.Text = "Вход";

this.Load = new System.EVENTHANDLER(this.Enter_Load);

this.RESUMELAYOUT(false);

this.PERFORMLAYOUT();

}

#endregion private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Label label3;

private System.Windows.Forms.TEXTBOX TEXTBOX1;

private System.Windows.Forms.TEXTBOX TEXTBOX2;

private System.Windows.Forms.Button button4;

}

}

Menu1.cs using System;

using System.Collections.Generic;

using System.COMPONENTMODEL;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace BANK

{ publicpartialclassmenu1 : Form

{ public menu1()

{

INITIALIZECOMPONENT();

bank0 = NEWBANK0();

addm1 = newaddm();

addm2 = NEWADDM2();

ta = NEWTA();

cred = NEWCRED();

}

Enter enter;

privatevoid button1_Click(object sender, EVENTARGS e)

{ this.Close();

enter = NEWENTER();

enter.Show();

}

Bank0 bank0;

privatevoid button2_Click(object sender, EVENTARGS e)

{ this.Close();

bank0 = NEWBANK0();

bank0.Show();

} addm addm1;

privatevoid button3_Click(object sender, EVENTARGS e)

{ this.Close();

addm1 = newaddm();

addm1.Show();

}

Addm2 addm2;

privatevoid button4_Click(object sender, EVENTARGS e)

{ this.Close();

addm2 = NEWADDM2();

addm2.Show();

}

TA ta;

privatevoid button5_Click(object sender, EVENTARGS e)

{ this.Close();

ta = NEWTA();

ta.Show();

}

Cred cred;

privatevoid button6_Click(object sender, EVENTARGS e)

{ this.Close();

cred = NEWCRED();

cred.Show();

} privatevoid menu1_Load(object sender, EVENTARGS e)

{

}

}

}

Menu.Designer.cs namespace BANK

{ partialclassmenu1

{

///

/// Требуется переменная конструктора.

/// private System.COMPONENTMODEL.ICONTAINER components = null;

///

/// Освободить все используемые ресурсы.

///

///истинно, если управляемый ресурс должен быть удален; иначе ложно. protectedoverridevoid Dispose(bool disposing)

{ if (disposing && (components != null))

{ components.Dispose();

} base.Dispose(disposing);

}

#region Код, автоматически созданный конструктором форм Windows

///

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// privatevoid INITIALIZECOMPONENT()

{

System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER resources = new System.COMPONENTMODEL.COMPONENTRESOURCEMANAGER(typeof(menu1));

this.button1 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.button4 = new System.Windows.Forms.Button();

this.button5 = new System.Windows.Forms.Button();

this.button6 = new System.Windows.Forms.Button();

this.SUSPENDLAYOUT();

//

// button1

// this.button1.Location = new System.Drawing.Point(310, 319);

this.button1.Name = "button1";

this.button1.Size = new System.Drawing.Size(104, 26);

this.button1.TABINDEX = 0;

this.button1.Text = "Назад";

this.button1.USEVISUALSTYLEBACKCOLOR = true;

this.button1.Click = new System.EVENTHANDLER(this.button1_Click);

//

// button2

// this.button2.Location = new System.Drawing.Point(68, 25);

this.button2.Name = "button2";

this.button2.Size = new System.Drawing.Size(278, 29);

this.button2.TABINDEX = 1;

this.button2.Text = "Банкир";

this.button2.USEVISUALSTYLEBACKCOLOR = true;

this.button2.Click = new System.EVENTHANDLER(this.button2_Click);

//

// button3

// this.button3.Location = new System.Drawing.Point(68, 78);

this.button3.Name = "button3";

this.button3.Size = new System.Drawing.Size(277, 27);

this.button3.TABINDEX = 2;

this.button3.Text = "Создание счета";

this.button3.USEVISUALSTYLEBACKCOLOR = true;

this.button3.Click = new System.EVENTHANDLER(this.button3_Click);

//

// button4

// this.button4.Location = new System.Drawing.Point(68, 127);

this.button4.Name = "button4";

this.button4.Size = new System.Drawing.Size(278, 27);

this.button4.TABINDEX = 3;

this.button4.Text = "Проверка баланса";

this.button4.USEVISUALSTYLEBACKCOLOR = true;

this.button4.Click = new System.EVENTHANDLER(this.button4_Click);

//

// button5

// this.button5.Location = new System.Drawing.Point(68, 177);

this.button5.Name = "button5";

this.button5.Size = new System.Drawing.Size(278, 27);

this.button5.TABINDEX = 4;

this.button5.Text = "Перевод денег";

this.button5.USEVISUALSTYLEBACKCOLOR = true;

this.button5.Click = new System.EVENTHANDLER(this.button5_Click);

//

// button6

// this.button6.Location = new System.Drawing.Point(68, 229);

this.button6.Name = "button6";

this.button6.Size = new System.Drawing.Size(278, 27);

this.button6.TABINDEX = 5;

this.button6.Text = "Кредит";

this.button6.USEVISUALSTYLEBACKCOLOR = true;

this.button6.Click = new System.EVENTHANDLER(this.button6_Click);

//

// menu1

// this.AUTOSCALEDIMENSIONS = new System.Drawing.SIZEF(9F, 17F);

this.AUTOSCALEMODE = System.Windows.Forms.AUTOSCALEMODE.Font;

this.CLIENTSIZE = new System.Drawing.Size(426, 357);

this.Controls.Add(this.button6);

this.Controls.Add(this.button5);

this.Controls.Add(this.button4);

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button1);

this.Font = new System.Drawing.Font("Modern No. 20", 11.25F, System.Drawing.FONTSTYLE.Bold, System.Drawing.GRAPHICSUNIT.Point, ((byte)(0)));

this.FORMBORDERSTYLE = System.Windows.Forms.FORMBORDERSTYLE.FIXEDTOOLWINDOW;

this.Icon = ((System.Drawing.Icon)(resources.GETOBJECT("$this.Icon")));

this.Margin = new System.Windows.Forms.Padding(4);

this.Name = "menu1";

this.Text = "menu";

this.Load = new System.EVENTHANDLER(this.menu1_Load);

this.RESUMELAYOUT(false);

}

#endregion private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button2;

p
Заказать написание новой работы



Дисциплины научных работ



Хотите, перезвоним вам?