Exemplo n.º 1
0
        private void btnExamples_Click(object sender, EventArgs e)
        {
            Callback waitForResponse = GotResponse;
            Form     exampleForm     = new Examples(waitForResponse);

            HandleGameStateChange(false);
            exampleForm.Show();
        }
Exemplo n.º 2
0
        private void btnSaveState_Click(object sender, EventArgs e)
        {
            string title = txtbxTitle.Text;

            string[] fileNames = Directory.GetFiles(basePath + @"Data\");
            if (title == "")
            {
                MessageBox.Show("Empty Title");
                return;
            }
            if (fileNames.Contains(title + FILE_TYPE))
            {
                MessageBox.Show("This title is already token");
                return;
            }
            bool     isRandom        = hash == points.GetHashCode();
            Callback waitForResponse = GotResponse;
            Examples exampleForm     = new Examples(new SpecialObject(bmp, txtbxPoints.Text, numberOfPoints, title, isRandom), waitForResponse);

            HandleGameStateChange(false);
            exampleForm.Show();
            txtbxTitle.Text = "";
        }