Ejemplo n.º 1
0
        /// <summary>
        /// Force redraw the Client Overlay
        /// </summary>
        private void Redraw()
        {
            if (_lcg.getProcessLolClient() != null)
            {
                RepositionClientOverlay();
            }

            cboGroups.Items.Clear();
            for (int i = 0; i < _gm.GroupCount; i++)
            {
                System.Windows.Controls.CheckBox chk = new System.Windows.Controls.CheckBox();
                chk.Content  = _gm.getGroup(i).getName();
                chk.Checked += new RoutedEventHandler(CheckBox_CheckStateChanged);
                cboGroups.Items.Add(chk);
            }
        }
Ejemplo n.º 2
0
        public wndClientOverload(StaticGroupManager gmGroupManager, StaticPinvokeLolClient lcg, Action <string> DisplayPopup) : this()
        {
            if (gmGroupManager != null && lcg != null && DisplayPopup != null)
            {
                this._gm           = gmGroupManager;
                this._lcg          = lcg;
                this._displayPopup = DisplayPopup;

                _gm.GroupsChanged += _groupManager_GroupsChanged;
                for (int i = 0; i < _gm.GroupCount; i++)
                {
                    _gm.getGroup(i).NameChanged += _groupManager_ChampionList_NameChanged;
                }

                _lcg.OnLeagueClientReposition += OnLeagueClientReposition;
                _lcg.LolClientFocussed        += _lcg_LolClientFocussed;
                _lcg.LolClientFocusLost       += _lcg_LolClientFocusLost;
                _lcg.LolClientStateChanged    += _lcg_LolClientStateChanged;
            }
            else
            {
                DisplayPopup("wndClientlay.xaml.cs has null parameters!");
            }

            Redraw();
        }
 private void btnRenameGroup_Click(object sender, RoutedEventArgs e)
 {
     if (txtRenameGroup.Text.Length > 0)
     {
         _gm.getGroup(_strGroupToRename).setName(txtRenameGroup.Text);
         this.Close();
     }
 }