Example #1
0
        private void bt_afslattur_loka_glugga_Click(object sender, EventArgs e)
        {
            AdalGuggi adalgluggi = new AdalGuggi();

            adalgluggi.Show();
            this.Close();
        }
Example #2
0
        private void bt_voruleit_LokaGlugga_Click(object sender, EventArgs e)
        {
            AdalGuggi adalgluggi = new AdalGuggi();

            adalgluggi.Show();
            this.Close();
        }
Example #3
0
        private void bt_voruleit_veljaVoru_Click(object sender, EventArgs e)
        {
            string art = getart;

            string[] row = { "1", ";", gagnagrunnur.GetVaraFromArt(art), ";", gagnagrunnur.GetVaraVerdFromArt(art) };

            //
            samtals       = samtals + Convert.ToInt32(row[4]);
            heildarverdid = samtals;
            //
            var listViewItem = new ListViewItem(row);

            Setja_I_Skra(row);
            AdalGuggi adalgluggi = new AdalGuggi();//getart er artnumerið sem er sott i linu sem er valið

            adalgluggi.Show();
            this.Close();
        }
Example #4
0
 private void bt_login_Click(object sender, EventArgs e)
 {
     label_login.Text = "";
     if (tb_password.Text == passw)
     {
         AdalGuggi adalgluggi;
         adalgluggi = new AdalGuggi();
         this.Hide();
         StreamWriter skrifari = File.CreateText("karfa.txt");
         skrifari.Close();
         adalgluggi.Show();
         label_login.Text = "";
         // Environment.Exit(-1);lokar öllu
     }
     else
     {
         label_login.Text = "Rangt Lykilorð";
     }
 }