Ejemplo n.º 1
0
 public DashboardForm(TopographForm topographForm)
 {
     InitializeComponent();
     TopographForm = topographForm;
     Icon = Properties.Resources.TopographIcon;
     var frames = new List<Control>();
     foreach (var step in new DashboardStep[]
                              {
                                 new CreateWorkspaceStep(),
                                 new AddSearchResultsStep(),
                                 new SettingsStep(),
                                 new RawFilesStep(),
                                 new AnalyzePeptidesStep(),
                                 new WaitForResultsStep(),
                                 new ViewResultsStep(),
                              })
     {
         var frame = new DashboardStepFrame
                         {
                             DashboardStep = step,
                             StepOrdinal = frames.Count,
                             Dock = DockStyle.Top,
                         };
         frames.Add(frame);
     }
     frames.Reverse();
     panelSteps.Controls.AddRange(frames.ToArray());
 }
Ejemplo n.º 2
0
        public DashboardForm(TopographForm topographForm)
        {
            InitializeComponent();
            TopographForm = topographForm;
            Icon          = Properties.Resources.TopographIcon;
            var frames = new List <Control>();

            foreach (var step in new DashboardStep[]
            {
                new CreateWorkspaceStep(),
                new AddSearchResultsStep(),
                new SettingsStep(),
                new RawFilesStep(),
                new AnalyzePeptidesStep(),
                new WaitForResultsStep(),
                new ViewResultsStep(),
            })
            {
                var frame = new DashboardStepFrame
                {
                    DashboardStep = step,
                    StepOrdinal   = frames.Count,
                    Dock          = DockStyle.Top,
                };
                frames.Add(frame);
            }
            frames.Reverse();
            panelSteps.Controls.AddRange(frames.ToArray());
        }