예제 #1
0
 public ProcessingWindow(SubjectiveSystem system, ObserverData observerData, ProcessingMethod processingMethod)
 {
     this.system = system;
     this.observerData = observerData;
     this.processingMethod = processingMethod;
     InitializeComponent();
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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();
 }
예제 #5
0
 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;
 }