private void BubbleSortRun(object sender, EventArgs e) { HideMainWindow(); var bubbleSortForm = new SortingForm(this, "Visualizer.BubbleSortFormSettings", IdentifiersSorts.BubbleSort); bubbleSortForm.Show(); }
public DataReceiverForm(SortingForm parentWindow, Application.IdentifiersSorts sortId) { this.parentWindow = parentWindow; this.sortId = sortId; DownloadConfigurationFile("Visualizer.DataReceiverFormSettings"); InitializeComponent(); }
private void HeapSortRun(object sender, EventArgs e) { HideMainWindow(); var selectionSortForm = new SortingForm(this, "Visualizer.HeapSortFormSettings", IdentifiersSorts.HeapSort); selectionSortForm.Show(); }
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); }
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; }
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); }