public SinglePlay(LatHinh _mainform) { this.IsMdiContainer = false; this.BackgroundImage = Properties.Resources.backgroundThresh; this.BackgroundImageLayout = ImageLayout.Stretch; mainform = _mainform; InitializeComponent(); btnHelp.Hide(); lsgmlv.setListGameLevel(); lbTimeCooldown.Text = ((lsgmlv.listgl[lv].time) / 10).ToString(); this.FormBorderStyle = FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.Cursor = CreateCursor.cur; }
public SinglePlay(LatHinh _mainform, int _level = 0, int _score = 0) { this.IsMdiContainer = false; this.BackgroundImage = Properties.Resources.backgroundThresh; this.BackgroundImageLayout = ImageLayout.Stretch; mainform = _mainform; InitializeComponent(); lv = _level; score = _score; lbScore.Text = _score.ToString(); lbLv.Text = _level.ToString(); btnHelp.Hide(); lsgmlv.setListGameLevel(); lbTimeCooldown.Text = lsgmlv.listgl[lv].time.ToString(); this.FormBorderStyle = FormBorderStyle.FixedSingle; this.MaximizeBox = false; }