private void ContextMenu_Edit(object sender, RoutedEventArgs e) { if (Layers.SelectedIndex == -1) { return; } LayerTextInputDialogue ltid = new LayerTextInputDialogue(false, Layers.SelectedItem.ToString()); ltid.Show(); UpdateDefaultLayers(); }
private void ContextMenu_Add(object sender, RoutedEventArgs e) { if (Layers.SelectedIndex == -1) { return; } LayerTextInputDialogue ltid = new LayerTextInputDialogue(true, "NewLayer"); ltid.Show(); UpdateDefaultLayers(); }