Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            // opens the placebo part (nothing acutally works here)
            MessageBox.Show("sksksksksksksksksksksksksksksk");
            var placebo = new Placebo();

            placebo.Show();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Are you sure?", "Warning", MessageBoxButtons.YesNo);

            // I have no clue what im doing
            // ReSharper disable once CommentTypo
            // vvvv if user clicked yes
            if (dialog == DialogResult.Yes)
            {
                this.Hide();
                // ReSharper disable once HeapView.ObjectAllocation.Evident
                var back = new Placebo();
                back.Show();
            }
            else if (DialogResult == DialogResult.No)
            {
            }
        }