示例#1
0
 public Payment(Cashier cashier, smk.OrderRow orderRow)
 {
     referrer      = cashier;
     this.orderRow = orderRow;
     InitializeComponent();
     header.Text   += orderRow.MemberRow.name;
     payTotal.Text += $@"Rp. {referrer.total:0,0}";
 }
示例#2
0
        public NewOrder(Cashier cashier, smk.EmployeeRow currentEmployee)
        {
            referrer             = cashier;
            this.currentEmployee = currentEmployee;
            InitializeComponent();
            AutoCompleteStringCollection emails = new AutoCompleteStringCollection();

            foreach (smk.MemberRow rows in Database.Data.Member.Rows)
            {
                emails.Add(rows.email);
            }
            member.AutoCompleteMode         = AutoCompleteMode.Suggest;
            member.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            member.AutoCompleteCustomSource = emails;
        }