Пример #1
0
        private void ContextMenu_Edit(object sender, RoutedEventArgs e)
        {
            if (Layers.SelectedIndex == -1)
            {
                return;
            }

            LayerTextInputDialogue ltid = new LayerTextInputDialogue(false, Layers.SelectedItem.ToString());

            ltid.Show();
            UpdateDefaultLayers();
        }
Пример #2
0
        private void ContextMenu_Add(object sender, RoutedEventArgs e)
        {
            if (Layers.SelectedIndex == -1)
            {
                return;
            }

            LayerTextInputDialogue ltid = new LayerTextInputDialogue(true, "NewLayer");

            ltid.Show();
            UpdateDefaultLayers();
        }