public ProcessingWindow(SubjectiveSystem system, ObserverData observerData, ProcessingMethod processingMethod) { this.system = system; this.observerData = observerData; this.processingMethod = processingMethod; InitializeComponent(); }
public static void SaveState(SubjectiveSystem system, string fileName) { using (var stream = new FileStream(fileName, FileMode.Create, FileAccess.Write)) { var formatter = new BinaryFormatter(); formatter.Serialize(stream, system); } }
public void Setup(SubjectiveSystem system) { bindingSource.DataSource = system; algorithmsBindingSource.DataSource = system.Algorithms; observersBindingSource.DataSource = system.ObserversData; algorithmsBindingSource.CurrentItemChanged += OnCurrentAlgorithmChanged; SystemInstance = system; sourceAlgos.Items.AddRange(AlgorithmsNames.All.ToArray()); RefreshImages(); }
private void ShowSystem(SubjectiveSystem system) { var newTab = new TabPage(); newTab.Text = system.SystemName; var control = new SubjectiveSystemControl {Dock = DockStyle.Fill}; control.Setup(system); newTab.Controls.Add(control); tabContainer.TabPages.Add(newTab); tabContainer.SelectedTab = newTab; }