Commits

Alex Kulikoff  committed 4cca9c2

надо сделать 2-й уровень!!!!!!!! понял сволочь?!!!!!!!!!!!!!!1111

  • Participants
  • Parent commits 6b0a963

Comments (0)

Files changed (34)

File Banker.suo

Binary file modified.

File Banker/Form1.Designer.cs

             this.label8.AutoSize = true;
             this.label8.Location = new System.Drawing.Point(7, 238);
             this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(35, 13);
+            this.label8.Size = new System.Drawing.Size(0, 13);
             this.label8.TabIndex = 25;
-            this.label8.Text = "label8";
             // 
             // label4
             // 
             this.label1.AutoSize = true;
             this.label1.Location = new System.Drawing.Point(6, 181);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(25, 13);
+            this.label1.Size = new System.Drawing.Size(0, 13);
             this.label1.TabIndex = 19;
-            this.label1.Text = "123";
             // 
             // table1
             // 

File Banker/Form1.cs

 using System;
 using System.Collections.Generic;
 using System.Windows.Forms;
+using System.IO;
+using System.Security.Cryptography;
+
+
+ 
 
 namespace Banker
 {
             genQ();
         }
         void genOut() // генератор выходного файла
-        { }
+        {
+            StreamWriter of = new StreamWriter("banker.out");
+            string s = "Фамилия: " + family + "\nИмя: " + name + "\nГруппа: " + group + "\nИмя ПК: " + Environment.MachineName + "\nДата и время: " + DateTime.Now+"\n";
+            
+            s += MD5(s);
+            of.Write(s);
+            of.Close();
+        
+        }
+
+        public string MD5(string instr)
+        {
+            string strHash = string.Empty;
+
+            foreach (byte b in new MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.Default.GetBytes(instr)))
+            {
+                strHash += b.ToString("X2");
+            }
+            return strHash;
+        } 
 
         void genQ() 
         {
             switch (level) 
             {
-                case 1:  do { proc = rnd.Next(1, 4); res = 1; } while (isBlock()&&!isOver); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
-                case 2: do { proc = rnd.Next(1, 5); res = rnd.Next(1,3); } while (isBlock()); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
-                case 3: do { proc = rnd.Next(1, 6); res = rnd.Next(1,4); } while (isBlock()); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
+                case 1:  do { proc = rnd.Next(1, 4); res = 1; } while (isBlock()&&!isOver()); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
+                case 2: do { proc = rnd.Next(1, 5); res = rnd.Next(1, 3); } while (isBlock() && !isOver()); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
+                case 3: do { proc = rnd.Next(1, 6); res = rnd.Next(1, 4); } while (isBlock() && !isOver()); label1.Text = "Процесс " + proc + " просит ресурс " + res; break;
             }
             if (radioButton2.Checked) if (isExist()) label8.Text = "Дать"; else label8.Text = "Не дать";
+            if (isOver()) { label1.Text = ""; label8.Text = ""; groupBox1.Hide();  }
         }
 
         bool isBlock() 
 
         private void button3_Click(object sender, EventArgs e)
         {
+            blockProc.Clear(); blockRes.Clear();
+
+            groupBox1.Show();
+            groupBox1.Enabled = true;
             
-            groupBox1.Enabled = true;
+
+            
+
             if (radioButton1.Checked)
             {
                 if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "")
            table1.Rows.Add("Процесс5", 0, 0, 0, 0, 0, 0);
            table2.Rows.Add("Резерв", 5, 5, 5);
 
+           groupBox1.Hide();
+
            
            
         }
                 rezerv[res - 1] -= 1;
                 temp[res - 1, proc - 1] += 1;
                 cmp();
-                if (max[0, 0] == 0 && max[0, 1] == 0 && max[0, 2] == 0) { isOver = true; MessageBox.Show(level +" уровень закончен"); }
+                if(isOver()) {  MessageBox.Show(level +" уровень закончен"); }
                 reSet();
-                if (isOver) if (radioButton1.Checked) nextLevel(); else unblck();
+                if (isOver()) if (radioButton1.Checked) nextLevel(); else { unblck(); }
             }
             else 
             {
             genQ();
         }
 
+        private void button2_Click(object sender, EventArgs e)
+        {
+            if (!isExist()) { }
+            else
+            {
+                MessageBox.Show("Ресурс выделен");
+                temp = new int[3, 5] { { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 } };
+                copy(max, cur.t);
+                cur.m.CopyTo(rezerv, 0);
+
+                reSet();
+            }
+            genQ();
+        }
+
         private void nextLevel()
         {
             switch (level) 
             {
-                case 1: level2(var2[rnd.Next(9)]); break;
-                case 2: level3(var3[rnd.Next(9)]); break;
+                case 1: level2(var2[rnd.Next(9)]); level += 1; break;
+                case 2: level3(var3[rnd.Next(9)]); level+=1; break;
                 case 3: genOut(); break;
             }
         }
 
-        private bool isOver = false;
+        private bool isOver() 
+        {   
+            switch (level) 
+            {
+                case 1: if (max[0, 0] == 0 && max[0, 1] == 0 && max[0, 2] == 0) return true; break;
+                case 2: if (max[0, 0] == 0 && max[0, 1] == 0 && max[0, 2] == 0 && max[1, 0] == 0 && max[1, 1] == 0 && max[1, 2] == 0) return true; break;
+                case 3: return true; break;
+               
+            }
+            return false;
+        }
        
 
         private void cmp()
         {
-            
+            switch(level){
+                case 1:
             for(int i=0;i<1;i++)
                 for (int j = 0; j < 3; j++)
                 {
 
                     
                     reSet();
-                }
+                }break;
+                case 2:
+                    break;
+                case 3:
+                    break;
+        
+        }
             
         }
 
-        private void button2_Click(object sender, EventArgs e)
-        {
-            if (!isExist()) { } else 
-            {
-                MessageBox.Show("Ресурс выделен");
-                temp = new int[3, 5] { { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0 } };
-                copy(max, cur.t);
-                cur.m.CopyTo(rezerv, 0);
-                
-                reSet();
-            }
-            genQ();
-        }
+        
 
     }
 }

File Banker/Form1.resx

   <metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <data name="label2.Text" xml:space="preserve">
     <value>Для выполнения лабораторной работы необходимо
  выполнить три задания в режиме тестирования. В случае

File Banker/bin/Debug/Banker.exe

Binary file modified.

File Banker/bin/Debug/Banker.pdb

Binary file modified.

File Banker/bin/Debug/banker.out

+Фамилия: Куликов
+Имя: Александр
+Группа: ИСТ-08
+Имя ПК: ALEX-PC
+Дата и время: 29.05.2011 7:13:45
+1F9C82D433DED3A3AECEC80C7C47A770

File Banker/obj/x86/Debug/Banker.exe

Binary file modified.

File Banker/obj/x86/Debug/Banker.pdb

Binary file modified.

File Banker/obj/x86/Debug/GenerateResource-ResGen.read.1.tlog

Binary file modified.

File BankerValidator/BankerValidator.sln

+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BankerValidator", "BankerValidator\BankerValidator.csproj", "{7E2AC830-7DBF-453E-8F10-72BA5A183A85}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|x86 = Debug|x86
+		Release|x86 = Release|x86
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{7E2AC830-7DBF-453E-8F10-72BA5A183A85}.Debug|x86.ActiveCfg = Debug|x86
+		{7E2AC830-7DBF-453E-8F10-72BA5A183A85}.Debug|x86.Build.0 = Debug|x86
+		{7E2AC830-7DBF-453E-8F10-72BA5A183A85}.Release|x86.ActiveCfg = Release|x86
+		{7E2AC830-7DBF-453E-8F10-72BA5A183A85}.Release|x86.Build.0 = Release|x86
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

File BankerValidator/BankerValidator.suo

Binary file added.

File BankerValidator/BankerValidator/BankerValidator.csproj

+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+    <ProductVersion>8.0.30703</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{7E2AC830-7DBF-453E-8F10-72BA5A183A85}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>BankerValidator</RootNamespace>
+    <AssemblyName>BankerValidator</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+    <PlatformTarget>x86</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+    <PlatformTarget>x86</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Form1.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form1.Designer.cs">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Form1.resx">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>

File BankerValidator/BankerValidator/Form1.Designer.cs

+namespace BankerValidator
+{
+    partial class Form1
+    {
+        /// <summary>
+        /// Требуется переменная конструктора.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Освободить все используемые ресурсы.
+        /// </summary>
+        /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Код, автоматически созданный конструктором форм Windows
+
+        /// <summary>
+        /// Обязательный метод для поддержки конструктора - не изменяйте
+        /// содержимое данного метода при помощи редактора кода.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.label1 = new System.Windows.Forms.Label();
+            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
+            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+            this.проверитьДругойФайлToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.menuStrip1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(-5, 24);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(62, 26);
+            this.label1.TabIndex = 0;
+            this.label1.Text = "label1";
+            // 
+            // openFileDialog1
+            // 
+            this.openFileDialog1.FileName = "openFileDialog1";
+            this.openFileDialog1.Filter = "Файл с результатом|banker.out";
+            this.openFileDialog1.InitialDirectory = ".";
+            // 
+            // menuStrip1
+            // 
+            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.проверитьДругойФайлToolStripMenuItem});
+            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+            this.menuStrip1.Name = "menuStrip1";
+            this.menuStrip1.Size = new System.Drawing.Size(324, 24);
+            this.menuStrip1.TabIndex = 1;
+            this.menuStrip1.Text = "menuStrip1";
+            // 
+            // проверитьДругойФайлToolStripMenuItem
+            // 
+            this.проверитьДругойФайлToolStripMenuItem.Name = "проверитьДругойФайлToolStripMenuItem";
+            this.проверитьДругойФайлToolStripMenuItem.Size = new System.Drawing.Size(152, 20);
+            this.проверитьДругойФайлToolStripMenuItem.Text = "Проверить другой файл";
+            this.проверитьДругойФайлToolStripMenuItem.Click += new System.EventHandler(this.проверитьДругойФайлToolStripMenuItem_Click);
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(324, 217);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.menuStrip1);
+            this.MainMenuStrip = this.menuStrip1;
+            this.Name = "Form1";
+            this.Text = "Проверка файла banker.out";
+            this.Load += new System.EventHandler(this.Form1_Load);
+            this.menuStrip1.ResumeLayout(false);
+            this.menuStrip1.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.OpenFileDialog openFileDialog1;
+        private System.Windows.Forms.MenuStrip menuStrip1;
+        private System.Windows.Forms.ToolStripMenuItem проверитьДругойФайлToolStripMenuItem;
+    }
+}
+

File BankerValidator/BankerValidator/Form1.cs

+using System;
+using System.Windows.Forms;
+using System.IO;
+using System.Security.Cryptography;
+
+namespace BankerValidator
+{
+    public partial class Form1 : Form
+    {
+        public Form1()
+        {
+            InitializeComponent();
+        }
+
+        private void Form1_Load(object sender, EventArgs e)
+        {   
+            StreamReader stream;
+            try
+            {
+               stream  = new StreamReader("banker.out");
+            }
+            catch 
+            {
+                openFileDialog1.ShowDialog();
+                 stream =new StreamReader( openFileDialog1.OpenFile());
+               
+            }
+            test(stream.ReadToEnd());
+        }
+
+        public string MD5(string instr)
+        {
+            string strHash = string.Empty;
+
+            foreach (byte b in new MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.Default.GetBytes(instr)))
+            {
+                strHash += b.ToString("X2");
+            }
+            return strHash;
+        }
+
+        void test(string s) 
+        {
+            label1.Text="";
+            s = s.Trim();
+            string[] s1 = s.Split('\n');
+            string pat = s1[s1.Length-1];
+            s = s.Replace(pat, "");
+            //if (pat == MD5(s)) MessageBox.Show("OK"); else MessageBox.Show("fuck");
+            if (pat == MD5(s))
+            {
+                label1.Text = "Файл правильный!\n\n";
+                label1.Text += s;
+               
+            } 
+            else
+            {
+                label1.Text = "ОШИБКА!!!\nФайл изменён.";
+                
+            }
+        }
+
+        private void проверитьДругойФайлToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                openFileDialog1.ShowDialog();
+                StreamReader stream = new StreamReader(openFileDialog1.OpenFile());
+                test(stream.ReadToEnd());
+            }
+            catch { }
+        }
+    }
+}

File BankerValidator/BankerValidator/Form1.resx

+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>157, 17</value>
+  </metadata>
+</root>

File BankerValidator/BankerValidator/Program.cs

+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace BankerValidator
+{
+    static class Program
+    {
+        /// <summary>
+        /// Главная точка входа для приложения.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new Form1());
+        }
+    }
+}

File BankerValidator/BankerValidator/Properties/AssemblyInfo.cs

+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Управление общими сведениями о сборке осуществляется с помощью 
+// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
+// связанные со сборкой.
+[assembly: AssemblyTitle("BankerValidator")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("ПФ НГТУ")]
+[assembly: AssemblyProduct("BankerValidator")]
+[assembly: AssemblyCopyright("Copyright © ПФ НГТУ 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми 
+// для COM-компонентов.  Если требуется обратиться к типу в этой сборке через 
+// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
+[assembly: ComVisible(false)]
+
+// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
+[assembly: Guid("742b058d-03d6-4215-989b-f92f0a722d34")]
+
+// Сведения о версии сборки состоят из следующих четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии 
+//      Номер построения
+//      Редакция
+//
+// Можно задать все значения или принять номер построения и номер редакции по умолчанию, 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

File BankerValidator/BankerValidator/Properties/Resources.Designer.cs

+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программным средством.
+//     Версия среды выполнения: 4.0.30319.1
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace BankerValidator.Properties
+{
+
+
+    /// <summary>
+    ///   Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+    /// </summary>
+    // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
+    // класс с  помощью таких средств, как ResGen или Visual Studio.
+    // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
+    // с параметром /str или заново постройте свой VS-проект.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BankerValidator.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Переопределяет свойство CurrentUICulture текущего потока для всех
+        ///   подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

File BankerValidator/BankerValidator/Properties/Resources.resx

+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

File BankerValidator/BankerValidator/Properties/Settings.Designer.cs

+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.1
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace BankerValidator.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

File BankerValidator/BankerValidator/Properties/Settings.settings

+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

File BankerValidator/BankerValidator/bin/Debug/BankerValidator.exe

Binary file added.

File BankerValidator/BankerValidator/bin/Debug/BankerValidator.pdb

Binary file added.

File BankerValidator/BankerValidator/bin/Debug/BankerValidator.vshost.exe

Binary file added.

File BankerValidator/BankerValidator/bin/Debug/BankerValidator.vshost.exe.manifest

+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+    <security>
+      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+      </requestedPrivileges>
+    </security>
+  </trustInfo>
+</assembly>

File BankerValidator/BankerValidator/obj/x86/Debug/BankerValidator.Form1.resources

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/BankerValidator.Properties.Resources.resources

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/BankerValidator.csproj.FileListAbsolute.txt

+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\bin\Debug\BankerValidator.exe
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\bin\Debug\BankerValidator.pdb
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\ResolveAssemblyReference.cache
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.Form1.resources
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.Properties.Resources.resources
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\GenerateResource-ResGen.read.1.tlog
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\GenerateResource-ResGen.write.1.tlog
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.exe
+c:\users\alex\documents\visual studio 10\Projects\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.pdb
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.exe
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.pdb
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\bin\Debug\BankerValidator.exe
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\bin\Debug\BankerValidator.pdb
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\ResolveAssemblyReference.cache
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.Form1.resources
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\BankerValidator.Properties.Resources.resources
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\GenerateResource-ResGen.read.1.tlog
+C:\Users\Alex\Desktop\banker\BankerValidator\BankerValidator\obj\x86\Debug\GenerateResource-ResGen.write.1.tlog

File BankerValidator/BankerValidator/obj/x86/Debug/BankerValidator.exe

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/BankerValidator.pdb

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/GenerateResource-ResGen.read.1.tlog

Binary file added.

File BankerValidator/BankerValidator/obj/x86/Debug/GenerateResource-ResGen.write.1.tlog

Binary file added.