Beispiel #1
0
        }                            // rysuje siatke

        private void color(ref Dzialanie dzialanie)
        {
            active = dzialanie.GetColor();
            change_f_color(active);
            if (dzialanie.GetNarysowane() == true)
            {
                label6.Text = dzialanie.GetLuzdzkie();
            }
            else
            {
                label6.Text = "";
            }
        }            // zmiana koloru, button red,blue, green... onlick
Beispiel #2
0
        }            // zmiana koloru, button red,blue, green... onlick

        private void submit(Dzialanie d)
        {
            if (d.GetNarysowane() == false)
            {
                rysuj_uklad();
                d.SetCenter();
                d.SetEquotion(dzialanie_tekst, dzialanie);
                if (d.EquotionValid())
                {
                    d.SetPrecyzja(precyzja);
                    d.SetONP();
                    d.Draw2();
                    label6.Text = d.GetLuzdzkie();
                }
                else
                {
                    label3.Text = "Error";
                }
            }
        }                       // submit onclick
Beispiel #3
0
        }                             // ustawia skale

        private void Redraw()         // maluje jeszcze raz funkcje
        {
            red.graphics.Clear(SystemColors.Control);
            CreateGraph();
            rysuj_uklad();
            if (red.GetNarysowane())
            {
                red.SetCenter();
                red.Draw2();
            }
            if (blue.GetNarysowane())
            {
                blue.SetCenter();
                blue.Draw2();
            }
            if (green.GetNarysowane())
            {
                green.SetCenter();
                green.Draw2();
            }
            if (pink.GetNarysowane())
            {
                pink.SetCenter();
                pink.Draw2();
            }
            if (yellow.GetNarysowane())
            {
                yellow.SetCenter();
                yellow.Draw2();
            }
            if (brown.GetNarysowane())
            {
                brown.SetCenter();
                brown.Draw2();
            }
        }