Ejemplo n.º 1
0
 private void BubbleSortRun(object sender, EventArgs e)
 {
     HideMainWindow();
     
     var bubbleSortForm = new SortingForm(this, "Visualizer.BubbleSortFormSettings", IdentifiersSorts.BubbleSort);
     bubbleSortForm.Show();
 }
Ejemplo n.º 2
0
 public DataReceiverForm(SortingForm parentWindow, Application.IdentifiersSorts sortId)
 {
     this.parentWindow = parentWindow;
     this.sortId = sortId;
     
     DownloadConfigurationFile("Visualizer.DataReceiverFormSettings");
     InitializeComponent();
 }
Ejemplo n.º 3
0
        private void HeapSortRun(object sender, EventArgs e)
        {
            HideMainWindow();

            var selectionSortForm = new SortingForm(this, "Visualizer.HeapSortFormSettings", IdentifiersSorts.HeapSort);

            selectionSortForm.Show();
        }
Ejemplo n.º 4
0
 public SelectionSortVisualizer(SortingForm parentWindow, int [] array)
 {
     this.parentWindow = parentWindow;
     this.sortId = Application.IdentifiersSorts.SelectionSort;
     this.inputArray = (int []) array.Clone();
     
     this.visualizationArray = new VisualizationArray();
     this.automatonSort = new AutomatonSelectionSort(array);
 }
Ejemplo n.º 5
0
 public BubbleSortVisualizer(SortingForm parentWindow, int[] array)
 {
     this.parentWindow = parentWindow;
     this.inputArray = array;
     this.sortId = Application.IdentifiersSorts.BubbleSort;
     this.visualizationArray = new VisualizationArray();
     this.automatonSort = new AutomatonBubbleSort(array);
     elementsPen.StartCap = LineCap.ArrowAnchor;
     elementsPen.EndCap = LineCap.ArrowAnchor;
  }
Ejemplo n.º 6
0
 public HeapSortVisualizer(SortingForm parentWindow, int [] array)
 {
     this.WindowState = FormWindowState.Maximized;
     this.parentWindow = parentWindow;
     this.inputArray = array;
     this.sortId = Application.IdentifiersSorts.HeapSort;
     this.visualizationArray = new VisualizationArray();
     this.visualizationHeap = new VisualizationHeap();
     this.automatonSort = new AutomatonHeapSort(array);
 }