Exemplo n.º 1
0
 private void login1_Click(object sender, RoutedEventArgs e)
 {
     akun.Username = username.Text;
     akun.Password = password.Password;
     try
     {
         bool status = repo.login(akun);
         if (status)
         {
             if (akun.Username == "admin")
             {
                 menuadmin menu = new menuadmin();
                 menu.Show();
                 this.Close();
             }
             else
             {
                 menukasir menuk = new menukasir(akun);
                 menuk.Show();
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show("Password atau username salah");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 2
0
        private void closep_Click(object sender, RoutedEventArgs e)
        {
            menukasir update = new menukasir(a);

            update.Show();
            this.Close();
        }
Exemplo n.º 3
0
        private void okep_Click(object sender, RoutedEventArgs e)
        {
            b = repob.Find(detp.IdBarang);
            detp.HargaBarang = b.HargaBarang;
            detp.NamaBarang  = b.NamaBarang;
            bool stat = repop.Add(detp);

            if (stat)
            {
                menukasir update = new menukasir(a);
                update.Show();
                this.Close();
            }
        }
Exemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menukasir1 = ((test.menukasir)(target));
                return;

            case 2:
                this.txt_op = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.txt_trans = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.txt_tanggal = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.label_bayar = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.bayar_box = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.label_total = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.savetrans = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\menukasir.xaml"
                this.savetrans.Click += new System.Windows.RoutedEventHandler(this.savetrans_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.GridTransaksi = ((System.Windows.Controls.DataGrid)(target));

            #line 26 "..\..\menukasir.xaml"
                this.GridTransaksi.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.DataGrid_LoadingRow);

            #line default
            #line hidden
                return;

            case 10:
                this.mainlabel3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.side = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.tanggaltrans = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.@operator = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.op = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.AkunSaya = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\menukasir.xaml"
                this.AkunSaya.Click += new System.Windows.RoutedEventHandler(this.lakun_click);

            #line default
            #line hidden
                return;

            case 16:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 17:
                this.logout_kasir = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\menukasir.xaml"
                this.logout_kasir.Click += new System.Windows.RoutedEventHandler(this.logoutkasir_click);

            #line default
            #line hidden
                return;

            case 18:
                this.tambah_trans = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\menukasir.xaml"
                this.tambah_trans.Click += new System.Windows.RoutedEventHandler(this.TAM_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.nomOp = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.total = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.opr = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.label_kembali = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.kmbl = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.kembali = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\menukasir.xaml"
                this.kembali.Click += new System.Windows.RoutedEventHandler(this.kembali_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }