private void btnDeleteVariable_Click(object sender, RoutedEventArgs e) { SnippetVariable selectedVariable = ctlParameters.SelectedItem as SnippetVariable; if (selectedVariable != null) { this.Settings.Variables.Remove(selectedVariable); } }
private void btnNewVariable_Click(object sender, RoutedEventArgs e) { SnippetVariable selectedVariable = this.Settings.Variables.AddNew(); ctlParameters.SelectedItem = selectedVariable; }