دانلود سورس کد مدیریت پارکینگ با سی شارپ #C

دانلود سورس کد مدیریت پارکینگ با سی شارپ #C
سورس کد مدیریت پارکینگ با استفاده از فایل ها را مشاهده میکنید که با زبان سی شارپ نوشته شده و در اختیار شما گذارده شده است.
در این پروژه کاربردی میتوانید برای مدیریت ماشین هایی که برای نگهداری به پارکینگ آورده میشوند، استفاده کرد.
با اجرای این برنامه، فرمی باز میشود که میتوان در آن مشخصات ماشین را وارد کرد. دکمه ای جهت جستجو نیز برای یافتن ماشین براساس شماره پلاک قرار داده شده است.همچنین با کلیک روی دکمه "List All" لیست تمام ماشینهایی که وارد پارکینگ شده اند به همراه مشخصات کامل هر یک، نشان داده میشود.
سورس اصلی برنامه مدیریت پارکینگ با سی شارپ را در پایین صفحه دانلود کنید.
کد پروژه مدیریت پارکینگ را در زیر مشاهده میکنید که در تمامی نسخه های ویژوال استودیو قابل استفاده می باشد.
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;
namespace Car_Parking
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//Add
StreamWriter sr = new StreamWriter("a.txt", true);
sr.WriteLine(textBox1.Text);
sr.WriteLine(textBox2.Text);
sr.WriteLine(textBox3.Text);
sr.WriteLine(textBox4.Text);
sr.Close();
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
}
private void button2_Click(object sender, EventArgs e)
{
//List
StreamReader sr = new StreamReader("a.txt");
while (!sr.EndOfStream)
{
listBox1.Items.Add(sr.ReadLine() + " , " + sr.ReadLine() + " , " + sr.ReadLine() + " , " + sr.ReadLine());
}
sr.Close();
}
private void button3_Click(object sender, EventArgs e)
{
//Search
StreamReader sr = new StreamReader("a.txt");
listBox2.Items.Clear();
while (!sr.EndOfStream)
{
string s = sr.ReadLine();
if (s == textBox5.Text)
{
listBox2.Items.Add(sr.ReadLine() + " , " + s + " , " + sr.ReadLine() + " , " + sr.ReadLine());
}
else
{
sr.ReadLine();
sr.ReadLine();
sr.ReadLine();
}
}
}
private void button4_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://WWw.SourceCodes.ir");
}
}
}
سورس کد مدیریت پارکینگ را میتوانید بصورت رایگان دانلود کنید.
حجم فایل 96 KB