示例#1
0
 public EditWorker(string workerId)
 {
     this.workerId = workerId;
     InitializeComponent();
     con = new SqlConnect();
     loadData();
 }
示例#2
0
 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();
 }
示例#3
0
 public NewTeam()
 {
     InitializeComponent();
     con = new SqlConnect();
 }
示例#4
0
 public Form1()
 {
     InitializeComponent();
     con = new SqlConnect();
     LoadTreeView();
 }
示例#5
0
 public NewTask()
 {
     InitializeComponent();
     con = new SqlConnect();
     loadTeams();
 }