PersonSelectWindow.on_button_portrait_clicked C# (CSharp) Méthode

on_button_portrait_clicked() private méthode

private on_button_portrait_clicked ( object o, EventArgs args ) : void
o object
args EventArgs
Résultat void
    private void on_button_portrait_clicked(object o, EventArgs args)
    {
        LogB.Information("Clicked");

        //access the button
        Button b = (Button) o;

        int personID = PersonPhotoButton.GetPersonID(b);

        LogB.Information("UniqueID: " + personID.ToString());

        //TODO: now need to process the signal and close
        foreach(Person p in persons)
            if(p.UniqueID == personID) {
                SelectedPerson = p;
                label_selected_person_name.Text = p.Name;

                personButtonsSensitive(true);
            }
    }