Esempio n. 1
0
 public void Restart(byte kol_n, byte kol_m, int k_min)
 {
     supMatrix.RemoveMatrixSapperButtonOnForm();
     supMatrix = new MatrixSapperButton(this, kol_n, kol_m, k_min);
     supMatrix.AddMatrixSapperButtonOnForm();
     startGame = false;
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            try {
                Stream          file     = File.OpenRead("settimgs.txt");
                BinaryFormatter fileRead = new BinaryFormatter();

                SaveSetAndRez saveS_R = (SaveSetAndRez)fileRead.Deserialize(file);
                file.Close();

                statistiks = new StatisticsData();
                statistiks.massAllTimeData = saveS_R.Statistics;
                selectedBatton             = saveS_R.selectedBatton;
                supMatrix = saveS_R.createMatrixSapperButton(this);
            }
            catch {
                supMatrix      = new MatrixSapperButton(this, 16, 16, 40);            // соответствует Medium
                selectedBatton = radioButtonOption.Medium;
                statistiks     = new StatisticsData();
            }

            supMatrix.AddMatrixSapperButtonOnForm();
        }