Код: Выделить всё
string strPathToPnlAll = "scr1"
+ Path.AltDirectorySeparatorChar
+ "pnlAll"
+ Path.AltDirectorySeparatorChar;
string strPathToBtnClose = strPathToPnlAll
+ Path.AltDirectorySeparatorChar
+ "btnClose";
Button btnClose = Project.Current.Get
(strPathToBtnClose);
if (btnClose != null) {
btnClose.OnMouseClick += sBtnClose_OnMouseClick;
}
< /code>
Обработчик событий: < /p>
private void sBtnClose_OnMouseClick(object sender, MouseClickEvent e) {
throw new NotImplementedException();
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... tton-click
Мобильная версия