コード例 #1
0
        public override void OnExecute(object sender)
        {
            if (snippetsWindow == null || !snippetsWindow.IsLoaded)
            {
                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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }