Exemple #1
0
        public void RenkDegistir(object sender, GroupBox gb)
        {
            SecilenRenk = Renk.RenkGetir(sender, gb);
            if (CizilenSekil == null)
            {
                CizilenSekil = SekilGetirici.SekilGetir(SecilenRenk);
            }
            if (Islem == 0)
            {
                if (CizilenSekil != null)
                {
                    CizilenSekil.RenkDegistir(SecilenRenk);
                }
            }
            else if (Islem == 1)
            {
                if (_mouseSecilenSekil != null)
                {
                    _mouseSecilenSekil.RenkDegistir(SecilenRenk);

                    /*
                     * Yenile();*/
                    //panel.Paint += new PaintEventHandler(genelCizim);
                    //panel.Refresh();
                    panel.Invalidate();
                }
            }
        }
Exemple #2
0
 public void FareBas(MouseEventArgs e)
 {
     if (Islem == 0)
     {
         mousedown    = true;
         CizilenSekil = SekilGetirici.SekilGetir(SecilenRenk);
         bas          = e.Location;
     }
     else if (Islem == 1)
     {
         foreach (var sekil in tumSekiller)
         {
             if (sekil.icindeMi(new Point(e.X, e.Y)))
             {
                 if (secimHandler != null)
                 {
                     panel.Paint -= secimHandler;
                 }
                 secimHandler       = sekil.Sec(panel);
                 _mouseSecilenSekil = sekil;
             }
             else
             {
                 continue;
             }
         }
     }
 }
Exemple #3
0
 private void sekil_Click(object sender, EventArgs e)
 {
     grafikIslemci.CizilenSekil = SekilGetirici.SekilGetir(sender, gbSekil, grafikIslemci.SecilenRenk);
     grafikIslemci.IslemDegistir(0);
 }