bernie2024
bernie2024
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
!close
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
thanks for the help! :) jk!
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
how do I choose in the list though?
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
and its supposed to output the EarnedPoints value
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
look I am feeding it a studentID and assignmentID right
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
hmmm
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
so like
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
I am just unsure of how to display that property
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
ok sorry
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
and I am not sure how to grab just that attribute from the list
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
what I want to do is this:
private void UpdateTextBoxes()
{
if (comboBox1.SelectedItem == null || comboBox2.SelectedItem == null)
{
return;
}

Student student = (Student)comboBox1.SelectedItem;
Assignment assignment = (Assignment)comboBox2.SelectedItem;


List<CompletedAssignment> completedAssignment = dbManager.GetCompletedAssignments(assignment.AssignmentID, student.StudentID);


textBox1.Text = completedAssignment.EarnedPoints.ToString();

textBox2.Text = assignment.TotalPoints.ToString();
}

}
}
private void UpdateTextBoxes()
{
if (comboBox1.SelectedItem == null || comboBox2.SelectedItem == null)
{
return;
}

Student student = (Student)comboBox1.SelectedItem;
Assignment assignment = (Assignment)comboBox2.SelectedItem;


List<CompletedAssignment> completedAssignment = dbManager.GetCompletedAssignments(assignment.AssignmentID, student.StudentID);


textBox1.Text = completedAssignment.EarnedPoints.ToString();

textBox2.Text = assignment.TotalPoints.ToString();
}

}
}
`
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
the EarnedPoints attribute
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
sorry
28 replies
CC#
Created by bernie2024 on 2/27/2023 in #help
❔ ✅ How to call a specific attribute from a getter class to another class
private void UpdateTextBoxes()
{
if (comboBox1.SelectedItem == null || comboBox2.SelectedItem == null)
{
return;
}

Student student = (Student)comboBox1.SelectedItem;
Assignment assignment = (Assignment)comboBox2.SelectedItem;

string completedAssignment = dbManager.GetCompletedAssignments(assignment.AssignmentID, student.StudentID).ToString();

textBox1.Text = completedAssignment;
textBox2.Text = assignment.TotalPoints.ToString();
}
private void UpdateTextBoxes()
{
if (comboBox1.SelectedItem == null || comboBox2.SelectedItem == null)
{
return;
}

Student student = (Student)comboBox1.SelectedItem;
Assignment assignment = (Assignment)comboBox2.SelectedItem;

string completedAssignment = dbManager.GetCompletedAssignments(assignment.AssignmentID, student.StudentID).ToString();

textBox1.Text = completedAssignment;
textBox2.Text = assignment.TotalPoints.ToString();
}
the issue is that I cant get the specific attribute I need into this textbox
28 replies