Пример #1
0
        public void ButtonClick(string parameter)
        {
            foreach (var bd in ButtonDefinitions)
            {
                if (!parameter.Equals(bd.Name))
                {
                    continue;
                }
                _window.ButtonResult = bd.Name;
                break;
            }

            _window.Close();
        }
        public void ButtonClick(string parameter)
        {
            foreach (var bd in ButtonDefinitions)
            {
                if (parameter.Equals(bd.Name))
                {
                    _window.ButtonResult = bd.Name;
                    break;
                }
            }

            _window.Close();
            // Code for executing the command here.
        }