Ejemplo n.º 1
0
        public DataGenForm()
        {
            InitializeComponent();

            Text = Application.ProductName;

            rowsCountControl1.BackColor       =
                columnsEditControl1.BackColor =
                    colorer[21];

            saveFileDialog1.Filter = "Text file (*.txt)|*.txt";

            rowsCountControl1.GenerateFile += (_, __) => GenerateBaseGenFile();
            menuFileGenerate.Click         += (_, __) => GenerateBaseGenFile();
            menuFileOpen.Click             += (_, __) => OpenScheme();
            menuFileSave.Click             += (_, __) => SaveScheme();
            menuAbout.Click += FormUtils.ShowAbout;
            menuExit.Click  += (_, __) => Close();

            menuRecolor.Click += (_, __) => rowsCountControl1.BackColor = columnsEditControl1.BackColor = colorer.GetRandom();
        }