public EditWorker(string workerId) { this.workerId = workerId; InitializeComponent(); con = new SqlConnect(); loadData(); }
public NewTeam(string teamId) { this.teamId = teamId; InitializeComponent(); con = new SqlConnect(); this.Text = "Edit Team"; con.SqlQuery("SELECT * FROM teams WHERE Id = \""+teamId+'"'); reader = con.QueryEx(); while (reader.Read()) { textBox1.Text = reader["Name"].ToString(); dateTimePicker1.Value = DateTime.Parse(reader["Date"].ToString()); textBox2.Text = reader["Description"].ToString(); } con.ConnectionClose(); }
public NewTeam() { InitializeComponent(); con = new SqlConnect(); }
public Form1() { InitializeComponent(); con = new SqlConnect(); LoadTreeView(); }
public NewTask() { InitializeComponent(); con = new SqlConnect(); loadTeams(); }