Ejemplo n.º 1
0
 private void Start_Click(object sender, EventArgs e)
 {
     if (!int.TryParse(textBox1.Text, out N))
     {
         MessageBox.Show("Введено некорректное значение", "Ошибка!");
         textBox1.Clear();
         return;
     }
     if (N <= 0)
     {
         MessageBox.Show("Введено некорректное значение", "Ошибка!");
         textBox1.Clear();
         return;
     }
     BigArray = new Big(BlockSize, CreateFile(N, 512 / sizeof(int)));
 }
Ejemplo n.º 2
0
        private void Open_Click(object sender, EventArgs e)
        {
            string Path;

            using (OpenFileDialog OFD = new OpenFileDialog())
            {
                if (OFD.ShowDialog() == DialogResult.OK)
                {
                    Path = OFD.FileName;
                }
                else
                {
                    return;
                }
            }
            BigArray = new Big(BlockSize, Path);
        }