Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you do not use arguments in the pole_zapol method, then in another non-static method of the form class, you can write pole_zapol(null, null);
call private in the button.What does it mean? Should the method be triggered when the button is clicked? Look for the button's Clicked event and attach a method to it.
For starters, you should not call the event handler a transliteration.
Secondly, if you are using WPF, then the private handler is simply specified in the XAML markup or when creating the button in a class method.
For example:
class Example : Window
{
// Обработчик события
private void ExampleButtonClick ( Object sender, RoutedEventArgs e )
{
//код
}
// Конструктор
public Example()
{
// Создаем кнопку
Button exampleButton = new Button();
// Привязываем к ней приватный обработчик
exampleButton.Click += ExampleButtonClick;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question