Exemple #1
0
 private void SekilSil_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < sekilSayisi; i++)
     {
         if (sekilSec)
         {
             if (sekiller[i].IcindeMi(X, Y))
             {
                 sekiller.Remove(sekiller[i]);
                 sekilSayisi--;
                 CizimEkrani.Refresh();
                 break;
             }
         }
     }
 }
Exemple #2
0
        private void Beyaz_Click(object sender, EventArgs e)
        {
            dolguRengi = Color.White;

            for (int i = 0; i < sekilSayisi; i++)
            {
                if (sekilSec)
                {
                    if (sekiller[i].IcindeMi(X, Y))
                    {
                        sekiller[i].DolguRengi = dolguRengi;
                        CizimEkrani.Refresh();
                    }
                }
            }
        }