コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            this.FormBorderStyle = FormBorderStyle.FixedSingle;

            masN = 20;

            sort = new VisualiseSort(PictureBox, masN, delay);
            sort.DrawMas();
            thread          = new Thread(new ThreadStart(Start));
            timer1.Tick    += new EventHandler(Update);
            timer1.Interval = delay;
            timer1.Start();
        }
コード例 #2
0
 private void newMasToolStripMenuItem_Click(object sender, EventArgs e)
 {
     sort.GenerateMas();
     sort.DrawMas();
     PictureBox.Image = sort.bmp;
 }