Тема: як створити рандомайзер щоб він сприймав checkbox
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
private void COPY_Click(object sender, EventArgs e)
{
Clipboard.SetText(textBox1.Text);
}
private void Slider_Scroll(object sender, EventArgs e)
{
label2.Text = "Password Length: " + Slider.Value.ToString();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
const string UPPER_CASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
const string LOWER_CASE = "abcdefghijklmnopqrstuvwxyz";
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
const string NUMERIC = "0123456789";
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
const string SPECIAL_CHARACTERS = @"~!@#$%^&*()+=-";
}
}
}