private void button1_Click(object sender, EventArgs e) { Myservice.Service1 myserver = new Myservice.Service1(); myserver.resetpassword(textBox1.Text, textBox2.Text); MessageBox.Show("Your password has been reset"); textBox1.Text = ""; textBox2.Text = ""; }
private void button3_Click(object sender, EventArgs e) { BindingSource source = new BindingSource(); Myservice.Service1 server = new Myservice.Service1(); server.ShowAllReq(); source.DataSource = server.ShowAllReq(); dataGridView1.DataSource = source; }
private void button2_Click(object sender, EventArgs e) { Myservice.Service1 server = new Myservice.Service1(); server.AddBookToLib(textBox1.Text, textBox2.Text, textBox3.Text); MessageBox.Show("Book has been Added"); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; }
private void button3_Click(object sender, EventArgs e) { BindingSource source = new BindingSource(); Myservice.Service1 server = new Myservice.Service1(); server.ShowAllBooksLib(); source.DataSource = server.ShowAllBooksLib(); dataGridView1.DataSource = source; dataGridView1.Columns[2].Visible = false; }
private void button1_Click(object sender, EventArgs e) { BindingSource source = new BindingSource(); Myservice.Service1 server = new Myservice.Service1(); server.SearchBookFromLib(textBox1.Text); source.DataSource = server.SearchBookFromLib(textBox1.Text); dataGridView1.DataSource = source; dataGridView1.Columns[2].Visible = false; }
private void button1_Click(object sender, EventArgs e) { Myservice.Service1 myserver = new Myservice.Service1(); myserver.registration(textBox1.Text, textBox2.Text, comboBox1.Text, textBox3.Text); MessageBox.Show("user registered"); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; comboBox1.Text = ""; }
private void button1_Click(object sender, EventArgs e) { bool isvalidadmin; bool isvalidadminpassed; Myservice.Service1 myserver = new Myservice.Service1(); myserver.isvalidAdmin(textBox1.Text, textBox2.Text, out isvalidadmin, out isvalidadminpassed); if (isvalidadmin == true) { MessageBox.Show("valid Admin"); } else { MessageBox.Show("Not valid"); } }
private void button1_Click(object sender, EventArgs e) { bool isvaliduser; bool isvaliduserpassed; Myservice.Service1 myserver = new Myservice.Service1(); myserver.isvaliduser(textBox1.Text, textBox2.Text, out isvaliduser, out isvaliduserpassed); if (isvaliduser == true) { MessageBox.Show("validuser"); } else { MessageBox.Show("invaliduser"); } }
private void button2_Click(object sender, EventArgs e) { bool isf = false; bool isd; Myservice.Service1 server = new Myservice.Service1(); server.SendReq(textBox1.Text, textBox2.Text, out isf, out isd); if (isf == true) { MessageBox.Show("Request Sent"); } else { MessageBox.Show("Request cannot be send"); } textBox1.Text = ""; textBox2.Text = ""; }
private void button1_Click(object sender, EventArgs e) { bool isvalid; bool isvalidpassed; Myservice.Service1 myserver = new Myservice.Service1(); myserver.forgetpassword(textBox1.Text, comboBox1.Text, textBox2.Text, out isvalid, out isvalidpassed); if (isvalid == false) { MessageBox.Show("invalid answer"); } else { Reset_Password frm = new Reset_Password(); this.Hide(); frm.Show(); } }
private void button1_Click(object sender, EventArgs e) { bool isf = false; bool isd; Myservice.Service1 server = new Myservice.Service1(); server.DeleteBookFromMar(textBox1.Text, textBox2.Text, out isf, out isd); if (isf == true) { MessageBox.Show("Book Deleted"); } else { MessageBox.Show("No Book Found with this name"); } textBox1.Text = ""; textBox2.Text = ""; }
private void button1_Click(object sender, EventArgs e) { bool isF = false; bool isDeleted; Myservice.Service1 server = new Myservice.Service1(); server.DeleteBookFromLib(textBox1.Text, textBox2.Text, out isF, out isDeleted); if (isF == true) { MessageBox.Show("Done"); } else { MessageBox.Show("No book with this name"); } textBox1.Text = ""; textBox2.Text = ""; }
private void button2_Click(object sender, EventArgs e) { bool isQ = false; bool isT; Myservice.Service1 server = new Myservice.Service1(); server.UpdateQuantity(textBox1.Text, textBox2.Text, textBox3.Text, out isQ, out isT); if (isQ == true) { MessageBox.Show("Quantity Updated"); } else { MessageBox.Show("No book with this name"); } textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; }