예제 #1
0
    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();
    }
예제 #2
0
    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));
    }