Exemple #1
0
        public void FindProcess()
        {
            processSelector.ShowDialog(this);
            if (processSelector.DialogResult == DialogResult.Yes)
            {
                Process proc = processSelector.selectedProcess;
                if (proc != null)
                {
                    FFXIV.SetProcess(proc);

                    if (processSelector.useLocalOrchestra)
                    {
                        InfoTabs.TabPages.Remove(localOrchestraTab);
                        InfoTabs.TabPages.Insert(2, localOrchestraTab);
                        Player.Status = PlayerStatus.Conducting;
                    }
                    else
                    {
                        Player.Status = PlayerStatus.Performing;
                        InfoTabs.TabPages.Remove(localOrchestraTab);
                    }
                    LocalOrchestra.OrchestraEnabled = processSelector.useLocalOrchestra;
                    if (LocalOrchestra.OrchestraEnabled)
                    {
                        LocalOrchestra.PopulateLocalProcesses(processSelector.multiboxProcesses);
                        LocalOrchestra.Sequencer = Player.Player;
                        InfoTabs.SelectTab(2);
                    }
                }
            }
        }
Exemple #2
0
 public void AddTab(TabPage page)
 {
     InfoTabs.TabPages.Add(page);
     if (page.Text == DefaultGameTab)
     {
         InfoTabs.SelectTab(page);
     }
 }
Exemple #3
0
 public void SetLoading(bool loading)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new Action <bool>(SetLoading), loading);
         return;
     }
     if (loading)
     {
         InfoTabs.TabPages.Clear();
     }
     else
     {
         if (!string.IsNullOrWhiteSpace(DefaultGameTab) && InfoTabs.TabPages[DefaultGameTab] != null)
         {
             InfoTabs.SelectTab(DefaultGameTab);
         }
     }
     LoadingPicture.Visible = loading;
 }