, .. , , , . .

 

 

!

 

:

:

 

 

 

?

StudentHelp, , MS Word. , , antiplagiat.ru, etxt.ru advego.ru. StudentHelp , Word .


:


:

: . : 13.05.2012. : 2011. : 12. antiplagiat.ru: < 30%

():





********************************

***************************










-












                  : . ****

                  :








. *
2009

    充..3
    腅...4
    -...9
    ㅅ...10


1.

. . : , , .
:
    ( );
    ;
    ;
    , .


2.

, reis.
/*
*
*/
public class reis
{
/*
*
*/
public String punkt_naznacheniya;
public String vremya_otpravleniya;
public int nomer_poezda;
public reis(String punkt_naznacheniya, String vremya_otpravleniya, int nomer_poezda)
{
this.punkt_naznacheniya = punkt_naznacheniya;
this.vremya_otpravleniya = vremya_otpravleniya;
this.nomer_poezda = nomer_poezda;
}
}

reis .

Form1 db.txt DataGridView poezda.
private void Form1_Load(object sender, EventArgs e)
{
/*
*
*/
t_hour.Text = "";
t_min.Text = "";
/*
*
*/
FileStream Stream2 = new FileStream("db.txt", FileMode.Open, FileAccess.Read);
StreamReader Reader = new StreamReader(Stream2);
string Str;
int y;
int z;
bool zxc = false;
do
{
Str = Reader.ReadLine();
if (Str != null)
{
if (zxc == true)
{
string[] arr = new string[3];
y = Str.IndexOf("\t");
z = 0;
do
{
arr[z] = Str.Substring(0, y);
Str = Str.Substring(y + 1, Str.Length - y - 1);
z++;
y = Str.IndexOf("\t");
}
while (y > -1);
string[] row = { arr[0], arr[1], Str };
poezda.Rows.Add(row);
}
zxc = true;
}

}
while (Str != null);
Reader.Close();
Stream2.Close();
    }

button1_Click. , reis, poezda.
private void button1_Click(object sender, EventArgs e)
{
/*
*
*/
reis REIS = new reis(txt_punkt.Text, t_hour.Text+":"+t_min.Text, Int16.Parse(txt_nomer.Text));
FileStream Stream = new FileStream("db.txt", FileMode.Append, FileAccess.Write);
StreamWriter Writer = new StreamWriter(Stream);
Writer.WriteLine(REIS.punkt_naznacheniya+"\t"+REIS.vremya_otpravleniya+"\t"+REIS.nomer_poezda.ToString());
Writer.Close();
Stream.Close();
poezda.Rows.Clear();
/*
*
*/
FileStream Stream2 = new FileStream("db.txt", FileMode.Open, FileAccess.Read);
StreamReader Reader = new StreamReader(Stream2);
string Str;
int y;
int z;
bool zxc = false;
do
{
Str = Reader.ReadLine();
if (Str != null)
{
if (zxc == true)
{
string[] arr = new string[3];
y = Str.IndexOf("\t");
z = 0;
do
{
arr[z] = Str.Substring(0, y);
Str = Str.Substring(y + 1, Str.Length - y - 1);
z++;
y = Str.IndexOf("\t");
}
while (y > -1);
string[] row = { arr[0], arr[1], Str };
poezda.Rows.Add(row);
}
zxc = true;
}

}
while (Str != null);
Reader.Close();
Stream2.Close();
/*
*
*/
txt_punkt.Text = "";
txt_nomer.Text = "";
t_hour.Text = "0";
t_min.Text = "00";
}

, Form2.










radiobutton button1_Click.
private void button1_Click(object sender, EventArgs e)
{
/*
*
*/
poisk.Rows.Clear();
int kol = poezda.Rows.Count;
kol--;
for (int i = 0; i < kol; i++)
{
if (radioButton1.Checked == true)
{
/*
*
*/
if (poezda.Rows[i].Cells[0].Value.ToString() == searcher.Text)
{
string[] str = { poezda.Rows[i].Cells[0].Value.ToString(), poezda.Rows[i].Cells[1].Value.ToString(), poezda.Rows[i].Cells[2].Value.ToString() };
poisk.Rows.Add(str);
}
}
else
{
/*
*
*/
if (poezda.Rows[i].Cells[2].Value.ToString() == searcher.Text)
{
string[] str = { poezda.Rows[i].Cells[0].Value.ToString(), poezda.Rows[i].Cells[1].Value.ToString(), poezda.Rows[i].Cells[2].Value.ToString() };
poisk.Rows.Add(str);
}
}
}

}
3. -

-


4.

Form1:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;


namespace fidel
{
public partial class Form1 : Form
{
/*
*
*/
public class reis
{
/*
*
*/
public String punkt_naznacheniya;
public String vremya_otpravleniya;
public int nomer_poezda;
public reis(String punkt_naznacheniya, String vremya_otpravleniya, int nomer_poezda)
{
this.punkt_naznacheniya = punkt_naznacheniya;
this.vremya_otpravleniya = vremya_otpravleniya;
this.nomer_poezda = nomer_poezda;
}
}

public Form1()
{
InitializeComponent();
}

private void button3_Click(object sender, EventArgs e)
{

}

private void Form1_Load(object sender, EventArgs e)
{
/*
*
*/
t_hour.Text = "";
t_min.Text = "";
/*
*
*/
FileStream Stream2 = new FileStream("db.txt", FileMode.Open, FileAccess.Read);
StreamReader Reader = new StreamReader(Stream2);
string Str;
int y;
int z;
bool zxc = false;
do
{
Str = Reader.ReadLine();
if (Str != null)
{
if (zxc == true)
{
string[] arr = new string[3];
y = Str.IndexOf("\t");
z = 0;
do
{
arr[z] = Str.Substring(0, y);
Str = Str.Substring(y + 1, Str.Length - y - 1);
z++;
y = Str.IndexOf("\t");
}
while (y > -1);
string[] row = { arr[0], arr[1], Str };
poezda.Rows.Add(row);
}
zxc = true
..................



90% antiplagiat.ru, etxt.ru advego.ru




* . , .