private void button8_Click(object sender, EventArgs e) { this.Hide(); Form anasayfadön = new frmanasayfa(); anasayfadön.Show(); }
private void button1_Click(object sender, EventArgs e) { string[] idler; idler = comboBox1.SelectedItem.ToString().Split('|'); frmgiris.subeid = idler[0]; this.Hide(); Form anasayfa = new frmanasayfa(); anasayfa.Show(); }
private void button1_Click(object sender, EventArgs e) { email = textBox1.Text; sifre = textBox2.Text; var client = new RestClient("http://loc.deepram.com/api/SubeLoginRegister/Giris?email=" + email + "&sifre=" + sifre + "&token=" + baslangıc.token); var request = new RestRequest(Method.POST); request.AddHeader("cache-control", "no-cache"); IRestResponse response = client.Execute(request); login = JsonConvert.DeserializeObject <SubeGirisYap>(response.Content); token = login.token; onay = login.onay; yetkimasa = login.menu; subeid = login.sube_id; isletme_id = login.isletme_id; yöneticiid = login.yonetici_id; if (login.onay == true) { if (login.isletme_id != null) { this.Hide(); Form admingirs = new frmadmingiris(); admingirs.Show(); } else { this.Hide(); Form anasayfa = new frmanasayfa(); anasayfa.Show(); } } else { MessageBox.Show("GEÇERSİZ KULLANICI GİRİŞİ....", "BİLGİLENDİRME PENCERESİ...."); } }
private void button1_Click(object sender, EventArgs e) { email = textBox1.Text; sifre = textBox2.Text; var client = new RestClient("http://loc.deepram.com/api/SubeLoginRegister/Giris?email=" + email + "&sifre=" + sifre + "&token=" + baslangıc.token); var request = new RestRequest(Method.POST); request.AddHeader("cache-control", "no-cache"); IRestResponse response = client.Execute(request); girisveri = JsonConvert.DeserializeObject <gelenkullanıcıgırıs>(response.Content); token = girisveri.token; onay = girisveri.onay; yetkimasa = girisveri.menu; if (onay.Equals("true")) { this.Hide(); Form anasayfa = new frmanasayfa(); anasayfa.Show(); } }