Example #1
0
        /// <summary>
        /// Edit the Quickbutton by opening the Edit Dialog
        /// </summary>
        /// <param name="quickButton">Reference to the Button to edit</param>
        private void EditQuickButtons(Button quickButton)
        {
            // Create an Editor view
            QuickButtonEditor quickButtonDialog = new QuickButtonEditor(quickButton, PointToScreen(Mouse.GetPosition(this)));

            if (quickButtonDialog.ShowDialog() == true)
            {
                Button myQuickButton = quickButtonDialog.getButton();
                quickButton.Content   = myQuickButton.Content;
                quickButton.Resources = myQuickButton.Resources;
            }
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        private void CrateQuickButton()
        {
            // Debug String list
            string[] funktionKeyList = { "F1", "F2", "F3" };

            // Create an Settings View
            QuickButtonEditor _quickButtonDialog = new QuickButtonEditor("Button" + (buttonList.Count + 1).ToString(), "", PointToScreen(Mouse.GetPosition(this)));

            if (_quickButtonDialog.ShowDialog() == true)
            {
                AddQuickButton(_quickButtonDialog.getButton());
            }
        }