Ejemplo n.º 1
0
        private void btnDeleteVariable_Click(object sender, RoutedEventArgs e)
        {
            SnippetVariable selectedVariable = ctlParameters.SelectedItem as SnippetVariable;

            if (selectedVariable != null)
            {
                this.Settings.Variables.Remove(selectedVariable);
            }
        }
Ejemplo n.º 2
0
        private void btnNewVariable_Click(object sender, RoutedEventArgs e)
        {
            SnippetVariable selectedVariable = this.Settings.Variables.AddNew();

            ctlParameters.SelectedItem = selectedVariable;
        }