private void AddTag_Click(object sender, RoutedEventArgs e) { var dlg = new PromptWindow("Add tag"); dlg.WindowStartupLocation = WindowStartupLocation.CenterScreen; if (dlg.ShowDialog() == true) { LinkView.Tags.Add(dlg.ResponseText); } }
private void EditTag_Click(object sender, RoutedEventArgs e) { var index = lbTags.SelectedIndex; if (index >= 0) { var dlg = new PromptWindow("Edit tag", null, lbTags.Items[index].ToString()); dlg.WindowStartupLocation = WindowStartupLocation.CenterScreen; if (dlg.ShowDialog() == true) { LinkView.Tags[index] = dlg.ResponseText; } } }