Exemple #1
0
        public ABCPitalicaForm()
        {
            InitializeComponent();

            System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
            gp.AddEllipse(0, 0, pictureBox1.Width - 3, pictureBox1.Height - 3);
            Region rg = new Region(gp);

            pictureBox1.Region = rg;
            pictureBox2.Region = rg;

            svaPitanja = ABCPitalicaAccess.getAll();

            postaviPitanje();
        }
Exemple #2
0
 private void spremi_Click(object sender, EventArgs e)
 {
     if (pitanje.Text.Length > 0 && tocan.Text.Length > 0 && drugi.Text.Length > 0 && treci.Text.Length > 0)
     {
         ABCPitalica nova = new ABCPitalica(pitanje.Text, tocan.Text, drugi.Text, treci.Text);
         ABCPitalicaAccess.AddABCPitalica(nova);
         pitanje.Text = "";
         tocan.Text   = "";
         drugi.Text   = "";
         treci.Text   = "";
     }
     else
     {
         MessageBox.Show("Popunite sva polja");
     }
 }