Esempio n. 1
0
 public GenericSearch(SearchDto searchDto, MainForm1 called)
 {
     InitializeComponent();
     Called                   = called;
     BaseListSearch           = searchDto.SearchItems;
     SearchDtoBase            = searchDto;
     SearchDtoBase.SelectItem = new ValueDto();
     SetLabelsName(searchDto);
     BindingGrid(searchDto);
 }
Esempio n. 2
0
 private void OK_Click(object sender, EventArgs e)
 {
     tesLogin(TxtUsername.Text, TxtPassword.Text, orgCode);
     if (sukses)
     {
         MainForm1 menu = new MainForm1();
         menu.ShowDialog();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Username atau Password salah", "Barcode Printing System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         TxtUsername.Text = "";
         TxtPassword.Text = "";
         TxtUsername.Focus();
     }
 }