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

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

            selectionSortForm.Show();
        }
Пример #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);
 }
Пример #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;
  }
Пример #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);
 }