示例#1
0
        private void RenameOnClick(IUiElement sender)
        {
            var oldName = string.Empty;

            if (sender.IsLabel)
            {
                oldName = sender.LabelName;
            }
            var dialog = new RenameDialog(oldName);

            if (dialog.ShowDialog() == true)
            {
                _graphViewModel.UpdeteElementLabel(sender.Id, dialog.Rename);
            }
        }