Exemple #1
0
 public void Show_Window_Main()
 {
     if (Window_Main == null)
     {
         Window_Main         = new wndMain(this);
         Window_Main.Closed += (s, args) => Window_Main = null;
     }
     Window_Main.Show();
     StaticWindowUtilities.EnsureVisibility(Window_Main);
 }
 private void btnSendError_Click(object sender, RoutedEventArgs e)
 {
     if (_wndConCreError == null)
     {
         _wndConCreError         = new wndContactCreator(_displayPopup, _error);
         _wndConCreError.Closed += (s, args) => _wndConCreError = null;
     }
     else
     {
         StaticWindowUtilities.EnsureVisibility(this);
     }
     _wndConCreError.Show();
 }
Exemple #3
0
 private void btnSettings_Click(object sender, RoutedEventArgs e)
 {
     if (_wndST == null)
     {
         _wndST         = new wndSettings(_ARR.MySettings, _ARR.MyLolClientProcessInvokeHandler, _ARR.DisplayPopup);
         _wndST.Closed += (s, args) => _wndST = null;
     }
     else
     {
         StaticWindowUtilities.EnsureVisibility(_wndST);
     }
     _wndST.Show();
 }
Exemple #4
0
 private void btnCredits_Click(object sender, RoutedEventArgs e)
 {
     if (_wndCR == null)
     {
         _wndCR         = new wndCredits();
         _wndCR.Closed += (s, args) => _wndCR = null;
     }
     else
     {
         StaticWindowUtilities.EnsureVisibility(_wndCR);
     }
     _wndCR.Show();
 }
Exemple #5
0
 private void btnNewGroup_Click(object sender, RoutedEventArgs e)
 {
     if (_wndAG == null)
     {
         _wndAG         = new wndAddGroup(_ARR.MyGroupManager);
         _wndAG.Closed += (s, args) => { _wndAG = null; DisplayGroups(); };
     }
     else
     {
         StaticWindowUtilities.EnsureVisibility(_wndAG);
     }
     _wndAG.Show();
 }
 private void btnConfigClientOverlay_Click(object sender, RoutedEventArgs e)
 {
     if (_wndCLCO == null)
     {
         _wndCLCO         = new wndConfigLolClientOverlay(_pilc, _s, _displayMessage);
         _wndCLCO.Closed += (s, args) => _wndCLCO = null;
     }
     else
     {
         StaticWindowUtilities.EnsureVisibility(_wndCLCO);
     }
     _wndCLCO.Show();
 }
Exemple #7
0
        public wndMain(AppRuntimeResourcesManager arr) : this()
        {
            _ARR = arr;

            //Visualize the data
            DisplayGroups();
            DisplayAllChampionsMinusInSelectedGroupAccordingToFilter();

            _ARR.AllChampions.ChampionsChanged += AllChampions_ChampionsChanged;
            _ARR.MyGroupManager.GroupsChanged  += MyGroupManager_GroupsChanged;
            for (int i = 0; i < _ARR.MyGroupManager.GroupCount; i++)
            {
                _ARR.MyGroupManager.getGroup(i).NameChanged += MyGroupManager_ChampionList_NameChanged;
            }
            _ARR.MySettings.ApiKeyChanged += MySettings_ApiKeyChanged;

            StaticWindowUtilities.EnsureVisibility(this);
        }
 private wndErrorHelper()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 private wndAddChampion()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 public wndCredits()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 private wndContactCreator()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 private wndRenameGroup()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 private wndConfigLolClientOverlay()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }
 private wndSettings()
 {
     InitializeComponent();
     StaticWindowUtilities.EnsureVisibility(this);
 }