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()); }
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()); }