Exemple #1
0
        private void initTabs()
        {
            UserControls.TabControl tC = new UserControls.TabControl(this, new PsychoPy());
            tC.setTestLogo(@"\Images\Psychopy.png");
            tabPsy.Content = tC;
            tC.TabItem     = tabPsy;
            tabControls.Add(tC);
            tabPsy.Header = new TextBlock
            {
                Text = tabPsy.Header.ToString(),
            };

            UserControls.TabControl tC2 = new UserControls.TabControl(this, new EPrime());
            tC2.setTestLogo(@"\Images\eprime.png");
            tabEPrime.Content = tC2;
            tC2.TabItem       = tabEPrime;
            tabControls.Add(tC2);
            tabEPrime.Header = new TextBlock
            {
                Text = tabEPrime.Header.ToString(),
            };

            UserControls.TabControl tC3 = new UserControls.TabControl(this, new ZTree());
            tC3.setTestLogo(@"\Images\ztree.png");
            tabZTree.Content = tC3;
            tC3.TabItem      = tabZTree;
            tabControls.Add(tC3);
            tabZTree.Header = new TextBlock
            {
                Text = tabZTree.Header.ToString(),
            };

            ((Button)tC3.FindName("btnRun")).Content          = "Run Leaves";
            ((Button)tC3.FindName("btnBrowse")).Visibility    = Visibility.Hidden;
            ((TextBlock)tC3.FindName("txbBrowse")).Visibility = Visibility.Hidden;
            ((CheckBox)tC3.FindName("cbxCopyAll")).Visibility = Visibility.Hidden;

            UserControls.ChromeTab tC4 = new UserControls.ChromeTab(this);
            tC4.setTestLogo(@"\Images\chrome-logo.png");
            tabChrome.Content = tC4;
            tC4.TabItem       = tabChrome;
            tabControls.Add(tC4);
            tabChrome.Header = new TextBlock
            {
                Text = tabChrome.Header.ToString(),
            };

            UserControls.CustomRun tC5 = new UserControls.CustomRun(this, this.clients);
            tabCustom.Content = tC5;
            tC5.TabItem       = tabCustom;
            tabControls.Add(tC5);
            tabCustom.Header = new TextBlock
            {
                Text = tabCustom.Header.ToString(),
            };
        }
 public ResultsExtensionWindow(CustomRun parent, List <string> paramExtensions)
 {
     InitializeComponent();
     if (paramExtensions != null)
     {
         foreach (var temp in paramExtensions)
         {
             extensions.Add(new StringValue(temp));
         }
     }
     dgrExtensions.ItemsSource = extensions;
     this.parent = parent;
 }
 public ResultsExtensionWindow(CustomRun parent, List<string> paramExtensions)
 {
     InitializeComponent();
     if (paramExtensions != null)
     {
         foreach (var temp in paramExtensions)
         {
             extensions.Add(new StringValue(temp));
         }
     }
     dgrExtensions.ItemsSource = extensions;
     this.parent = parent;
 }
 public KillProcessWindow(CustomRun parent)
 {
     InitializeComponent();
     this.parent = parent;
     foreach (var client in parent.getParent().getSelectedClients())
     {
         foreach (var temp in service.CompAndProcesseses)
         {
             if (temp.computer == client)
                 allProcList.Add(temp.processName);
         }
     }
     procList = new HashSet<string>(allProcList);
     lstbxProcesses.ItemsSource = procList;
 }
Exemple #5
0
 public KillProcessWindow(CustomRun parent)
 {
     InitializeComponent();
     this.parent = parent;
     foreach (var client in parent.getParent().getSelectedClients())
     {
         foreach (var temp in service.CompAndProcesseses)
         {
             if (temp.computer == client)
             {
                 allProcList.Add(temp.processName);
             }
         }
     }
     procList = new HashSet <string>(allProcList);
     lstbxProcesses.ItemsSource = procList;
 }
Exemple #6
0
        public KillProcessWindow(CustomRun parent)

        {
            InitializeComponent();
            this.parent = parent;
            List <string> allProcList = new List <string>();

            foreach (LabClient client in parent.getParent().getSelectedClients())
            {
                foreach (CompAndProcesses temp in parent.procList)
                {
                    if (temp.computer == client)
                    {
                        allProcList.AddRange(temp.processes);
                    }
                }
            }
            procList = new HashSet <string>(allProcList);
            lstbxProcesses.ItemsSource = procList;
        }
Exemple #7
0
        private void InitTabs()
        {
            var tC = new TabControl(this, new PsychoPy());
            tC.setTestLogo(@"\Images\Psychopy.png");
            tabPsy.Content = tC;
            tC.TabItem = tabPsy;
            tabControls.Add(tC);
            tabPsy.Header = new TextBlock
            {
                Text = tabPsy.Header.ToString()
            };

            var tC2 = new TabControl(this, new EPrime());
            tC2.setTestLogo(@"\Images\eprime.png");
            tabEPrime.Content = tC2;
            tC2.TabItem = tabEPrime;
            tabControls.Add(tC2);
            tabEPrime.Header = new TextBlock
            {
                Text = tabEPrime.Header.ToString()
            };

            var tC3 = new TabControl(this, new ZTree());
            tC3.setTestLogo(@"\Images\ztree.png");
            tabZTree.Content = tC3;
            tC3.TabItem = tabZTree;
            tabControls.Add(tC3);
            tabZTree.Header = new TextBlock
            {
                Text = tabZTree.Header.ToString()
            };

            ((Button) tC3.FindName("btnRun")).Content = "Run Leaves";
            ((Button) tC3.FindName("btnBrowse")).Visibility = Visibility.Hidden;
            ((TextBlock) tC3.FindName("txbBrowse")).Visibility = Visibility.Hidden;
            ((CheckBox) tC3.FindName("cbxCopyAll")).Visibility = Visibility.Hidden;

            var tC4 = new ChromeTab(this);
            tC4.setTestLogo(@"\Images\chrome-logo.png");
            tabChrome.Content = tC4;
            tC4.TabItem = tabChrome;
            tabControls.Add(tC4);
            tabChrome.Header = new TextBlock
            {
                Text = tabChrome.Header.ToString()
            };

            var tC5 = new CustomRun(this, clients);
            tabCustom.Content = tC5;
            tC5.TabItem = tabCustom;
            tabControls.Add(tC5);
            tabCustom.Header = new TextBlock
            {
                Text = tabCustom.Header.ToString()
            };
        }