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; using System.Data.Sql; using System.Data.SqlClient; using System.IO;
namespace cambalkonhesaplama { public partial class giris : Form { public giris() { InitializeComponent(); } public SqlConnection db; private void button1_Click(object sender, EventArgs e) { Application.Exit(); } bool bag = true; private void button2_Click(object sender, EventArgs e) { if (bag == false) { Application.Restart(); } else { giris giris = new giris(); giris.Close(); camsiparis siparis = new camsiparis(); siparis.Show(); this.Hide(); } }
private void giris_Load(object sender, EventArgs e) { // Dosyadan veri tabanı çek StreamReader oku; oku = File.OpenText(@"c:\cambalkonconfig.txt"); string yazi; string[] config = new string[4]; ; for (int x = 0; x < 4; x++) { yazi = oku.ReadLine(); config[x] = yazi.ToString(); }