Exemplo n.º 1
0
 //Show all buttons and draws cube
 public void strt_btn_Click(object sender, EventArgs e)
 {
     strt_btn.Hide();
     top_btn.Show();
     antiTop_btn.Show();
     bottom_btn.Show();
     antiBottom_btn.Show();
     front_btn.Show();
     antiFront_btn.Show();
     vRotate_btn.Show();
     vRotate2_btn.Show();
     lRotate_btn.Show();
     Rrotate_btn.Show();
     Back_btn.Show();
     antiBack_btn.Show();
     right_btn.Show();
     antiRight_btn.Show();
     Draw(cube.cubeArr);
     left_btn.Show();
     antiLeft_btn.Show();
     reset_btn.Show();
     timeStart_btn.Show();
     time_lbl.Show();
 }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            g = main_pnl.CreateGraphics();
            front_btn.Hide();
            top_btn.Hide();
            bottom_btn.Hide();
            antiBottom_btn.Hide();
            right_btn.Hide();
            antiRight_btn.Hide();
            antiTop_btn.Hide();
            antiFront_btn.Hide();
            vRotate_btn.Hide();
            vRotate2_btn.Hide();
            lRotate_btn.Hide();
            Rrotate_btn.Hide();
            Back_btn.Hide();
            antiBack_btn.Hide();
            left_btn.Hide();
            antiLeft_btn.Hide();
            reset_btn.Hide();
            time_lbl.Hide();
            timeStart_btn.Hide();

            //Vertical Rotate
            vRotate_btn.Text = "\u2193";
            vRotate_btn.Font = new Font(vRotate_btn.Font.FontFamily, 24);
            //Vertical Rotate
            vRotate2_btn.Text = "\u2191";
            vRotate2_btn.Font = new Font(vRotate2_btn.Font.FontFamily, 24);
            //Horizontal Rotate
            lRotate_btn.Text = "\u2190";
            lRotate_btn.Font = new Font(lRotate_btn.Font.FontFamily, 18);
            //Horizontal Rotate
            Rrotate_btn.Text = "\u2192";
            Rrotate_btn.Font = new Font(Rrotate_btn.Font.FontFamily, 18);
            //top
            top_btn.Text = "\u2190";
            top_btn.Font = new Font(top_btn.Font.FontFamily, 7);
            //top
            antiTop_btn.Text = "\u2192";
            antiTop_btn.Font = new Font(antiTop_btn.Font.FontFamily, 7);
            //Bottom
            bottom_btn.Text = "\u2192";
            bottom_btn.Font = new Font(bottom_btn.Font.FontFamily, 7);
            //Bottom
            antiBottom_btn.Text = "\u2190";
            antiBottom_btn.Font = new Font(antiBottom_btn.Font.FontFamily, 7);
            //front
            front_btn.Text = "Front \u27F3";
            front_btn.Font = new Font(front_btn.Font.FontFamily, 14);
            //antifront
            antiFront_btn.Text = "Front \u27F2";
            antiFront_btn.Font = new Font(antiFront_btn.Font.FontFamily, 14);
            //Back
            Back_btn.Text = "Back \u27F3";
            Back_btn.Font = new Font(Back_btn.Font.FontFamily, 14);
            //Back
            antiBack_btn.Text = "Back \u27F2";
            antiBack_btn.Font = new Font(antiBack_btn.Font.FontFamily, 14);
            //Back
            right_btn.Text = "\u2191";
            right_btn.Font = new Font(right_btn.Font.FontFamily, 14);
            //Back
            antiRight_btn.Text = "\u2193";
            antiRight_btn.Font = new Font(antiRight_btn.Font.FontFamily, 14);
            //Left
            left_btn.Text = "\u2193";
            left_btn.Font = new Font(left_btn.Font.FontFamily, 14);
            //Left
            antiLeft_btn.Text = "\u2191";
            antiLeft_btn.Font = new Font(antiLeft_btn.Font.FontFamily, 14);
        }