I have a method in my code, it's name is bindingSource_PositionChanged. the definition of it is:
private: System::Void bindingSource_PositionChanged(**System::Object^ sender, System::EventArgs^ e**)
{
toolStripStatusLabel->Text = String::Format("Datensatz {0:N0} von {1:N0}", bindingSource->Position + 1, bindingSource->Count);
}
My questions:
I have in my program calling the function in this way:
bindingSource_PositionChanged(nullptr, System::EventArgs::Empty);
my Question 1: what makes pass
System::EventArgs::Empty
to the parametere
of this function? or to anySystem::EventArgs^
. and what makes passnullptr
to the parameter sender here? or to anySystem::Object^
sender?I have in my program calling the function in another way:
bindingSource_PositionChanged(nullptr, nullptr);
Question 2: what makes a
nullptr
to the parameter e of this function? or to any parameter of the typeSystem::EventArgs^?