Facebook
From Trivial Bee, 5 Years ago, written in Plain Text.
This paste is a reply to Untitled from Speedy Wolf - view diff
Embed
Download Paste or View Raw
Hits: 449
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace WindowsFormsApp2
  11. {
  12.         public partial class Form1 : Form
  13.         {
  14.         public Form1()
  15.         {
  16.                 InitializeComponent();
  17.         }
  18.         private void button1_Click(object sender, EventArgs e)
  19.         {
  20.                 this.Close();
  21.         }
  22.         private void btnLogin_Click(object sender, EventArgs e)
  23.         {
  24.                 Employee employee = new Employee(tbUsername.Text, tbPassword.Text);
  25.                 if (employee.Login(employee.LoginName, employee.Password))
  26.                 {
  27.                 MessageBox.Show("Login berhasil, ID anda adalah:" + employee.EmployeeID.ToString());
  28.                 }
  29.                 else
  30.                 {
  31.                 MessageBox.Show("Gagal Login");
  32.                 }
  33.         }
  34.         }
  35. }
  36.  
  37.  

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Flying Hummingbird text 5 Years ago.