protected void Check_Click(object sender, EventArgs e) { string sqlConnection = TextBox1.Text; var makeSQLQuery = new SQLHandler(sqlConnection); var farm = new Farm(makeSQLQuery.GetLastActionDate(), makeSQLQuery.GetMoney(), makeSQLQuery.GetActualProduction(), makeSQLQuery); CollectedInfo.Text += farm.GetActualProduction() + " " + farm.GetLastActionDate() + " " + farm.GetMoney(); }
protected void Button1_Click(object sender, EventArgs e) { string sqlConnection = TextBox1.Text; var makeSQLQuery = new SQLHandler(sqlConnection); var farm = new Farm(makeSQLQuery.GetLastActionDate(), makeSQLQuery.GetMoney(), makeSQLQuery.GetActualProduction(), makeSQLQuery); SewInfo.Text = farm.Sow(ToInt32(HowMuchToSew)); }