示例#1
0
        /// <summary>
        /// Action when a game element is clicked.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void C_Game_OnClickPanel(object sender, RoutedEventArgs e)
        {
            CC_Game cG = (CC_Game)sender;

            // if same => pass
            if (_ChosenPanel == null)
            {
                _ChosenPanel = cG;
            }
            else if (_ChosenPanel.Title.Equals(cG.Title))
            {
                return;
            }
            else
            {
                _ChosenPanel.PanelOpen = false;
                _ChosenPanel           = cG;
            }
        }
示例#2
0
        private static void OnORelatLinkChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CC_Game UserControl1Control = d as CC_Game;

            UserControl1Control.OnORelatLinkChanged(e);
        }
示例#3
0
        private static void OnTitleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CC_Game cGameControl = d as CC_Game;

            cGameControl.OnTitleChanged(e);
        }