public void DisplayEdit(string sSnippetName, string sSnippetSourceName, string sSnippetSourceText, string sSnippetTags) { Application.Current.Dispatcher.Invoke((Action) delegate { AddSnippet pWindow = new AddSnippet(); pWindow.MakeEditingSnippet(sSnippetName, sSnippetSourceName, sSnippetSourceText, sSnippetTags); pWindow.Show(); }); }
private void btnAddSnippet_MouseUp(object sender, MouseButtonEventArgs e) { AddSnippet pSnippetWindow = new AddSnippet(); pSnippetWindow.Show(); }