Пример #1
0
 private void ProductList_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     DGV.AutoGenerateColumns  = false;
     DGV2.AutoGenerateColumns = false;
     DGV.DataSource           = controller.GetProductBindingList();
 }
Пример #2
0
 private void AddProduct_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     cmbCategory.DataSource    = categoryController.GetCategoryListForComboBox();
     cmbCategory.ValueMember   = "Id";
     cmbCategory.DisplayMember = "Name";
 }
Пример #3
0
 private void EditCustomer_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     try
     {
         if (PermissionController.CheckPermission(PermissionType.CUSTOMER_EDIT))
         {
             cust                = controller.GetCustomer(CustId);
             txtName.Text        = cust.Name;
             txtAddress.Text     = cust.Address;
             txtNic.Text         = cust.Nic;
             txtLandLine.Text    = cust.LandLine;
             txtMobile.Text      = cust.Mobile;
             txtDueAmount.Text   = cust.DueAmount.ToString();
             txtLoyalPoints.Text = cust.LoyalPoints.ToString();
         }
         else
         {
             throw new Exception("Access Denied.!");
         }
     }
     catch (Exception exception)
     {
         Helper.MessageHelper.AlertError(exception.Message);
     }
 }
Пример #4
0
 private void EditBatch_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     batch          = controller.GetBatchById(batchid);
     txtCost.Text   = CostCodeController.CostToCode(batch.Cost);
     txtCash.Text   = batch.Cash.ToString();
     txtCredit.Text = batch.Credit.ToString();
     txtMarkup.Text = batch.Markup.ToString();
     txtStock.Text  = batch.Stock.ToString();
 }
Пример #5
0
 private void PrintLabel_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
 }
Пример #6
0
 private void Dashboard_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
 }
Пример #7
0
 private void CustomerMenu_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
 }
Пример #8
0
 private void ProductCategory_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     DGV.AutoGenerateColumns = false;
     DGV.DataSource          = controller.GetCategoryListForDataGrid();
 }
Пример #9
0
 private void Pos_Load(object sender, EventArgs e)
 {
     ThemeHelper.ChangeFormBackgroundColor(this);
     reset();
 }