public override void OnExecute(object sender) { if (snippetsWindow == null || !snippetsWindow.IsLoaded) { if (!UnlockKey.IsUnlockedPremium) { UnlockKey.ShowPremiumDialog("Snippet Template Expansion", "https://github.com/RickStrahl/Snippets-MarkdownMonster-Addin"); return; } snippetsWindow = new SnippetsWindow(this); } snippetsWindow.Show(); snippetsWindow.Activate(); }
public override void OnExecute(object sender) { if (snippetsWindow == null || !snippetsWindow.IsLoaded) { if (!UnlockKey.UnlockedPremium) { UnlockKey.ShowPremiumDialog("Snippet Template Expansion", "https://github.com/RickStrahl/Snippets-MarkdownMonster-Addin"); return; } snippetsWindow = new SnippetsWindow(this); snippetsWindow.Top = Model.Window.Top; snippetsWindow.Left = Model.Window.Left + Model.Window.Width - Model.Configuration.WindowPosition.SplitterPosition; } snippetsWindow.Show(); snippetsWindow.Activate(); }