Ejemplo n.º 1
0
 public LogInScreen(UsersList users, Languajes languaje)
 {
     LogedUser  = new User();
     Login      = false;
     this.users = users;
     InitializeComponent();
     draw(languaje);
 }
Ejemplo n.º 2
0
 public ConfigurationClass()
 {
     Products = new ProductsList();
     Bills    = new BillList();
     Users    = new UsersList();
     LogIn    = false;
     Languaje = Languajes.English;
 }
Ejemplo n.º 3
0
 public AccountingManagmentScreen(BillList bills, Languajes languaje)
 {
     AccountingManagement = new AccountingManagementClass(bills);
     searchScreen         = new SearchScreen(languaje);
     InitializeComponent();
     Draw();
     this.languaje = languaje;
     drawTexts();
 }
Ejemplo n.º 4
0
 public ProductsManagmentScreen(ProductsList products, Languajes languaje)
 {
     ProductManagement = new ProductManagementClass(products);
     searchScreen      = new SearchScreen(languaje);
     InitializeComponent();
     Draw();
     this.languaje = languaje;
     drawTexts();
 }
Ejemplo n.º 5
0
 public UsersManagmentScreen(UsersList users, Languajes languaje)
 {
     UserManagement = new UserManagementClass(users);
     searchScreen   = new SearchScreen(languaje);
     InitializeComponent();
     Draw();
     this.languaje = languaje;
     drawTexts();
 }
Ejemplo n.º 6
0
 public TableScreen(ProductsList products, BillList bills,
     User employee, Languajes languaje)
 {
     Tables = new TablesClass(products, bills, employee);
     LoadTables();
     DrawTables();
     edit = false;
     this.languaje = languaje;
     drawTexts();
 }
Ejemplo n.º 7
0
        public AdminScreen()
        {
            this.Users    = new UsersList();
            this.Bills    = new BillList();
            this.Products = new ProductsList();

            LoadComponents();
            InitializeComponent();
            languaje = Languajes.English;
        }
Ejemplo n.º 8
0
        public PayScreen(ProductToSellList products, BillList bills,
                         User actualUser, int table, double total, Languajes languaje)
        {
            Pay = new PayClass(products, bills, actualUser, table, total);

            InitializeComponent();
            drawTexts(languaje);
            Draw();
            drawTexts(languaje);
        }
Ejemplo n.º 9
0
    private string GetFolderFromLanguaje(Languajes lang)
    {
        switch (lang)
        {
        case Languajes.Spanish:
            return("spanish/");

        default:
            return(null);
        }
    }
Ejemplo n.º 10
0
        public POSScreen(ProductsList products, TableList tables,
                         BillList bills, int index, User employee, Languajes languaje)
        {
            POS = new POSSClass(products, tables, bills, index, employee);
            InitializeComponent();

            DrawCategories();
            DrawTableProducts();
            DrawProductsToSell();
            Languaje = languaje;
            drawTexts();
        }
Ejemplo n.º 11
0
        private void drawTexts(Languajes languaje)
        {
            switch (languaje)
            {
            case Languajes.Castellano:
                lblText.Text   = "Texto de búsqueda";
                btnSearch.Text = "Buscar";
                break;

            case Languajes.English:
                lblText.Text   = "Text to search";
                btnSearch.Text = "Search";
                break;
            }
        }
Ejemplo n.º 12
0
        private void drawTexts(Languajes languaje)
        {
            switch (languaje)
            {
            case Languajes.Castellano:
                lblGivenText.Text     = "Recibido";
                lblMoneyBackText.Text = "Devolver";
                btnPay.Text           = "Cobrar";
                break;

            case Languajes.English:
                lblGivenText.Text     = "Given";
                lblMoneyBackText.Text = "Money Back";
                btnPay.Text           = "Pay";
                break;
            }
        }
Ejemplo n.º 13
0
        private void draw(Languajes languaje)
        {
            switch (languaje)
            {
            case Languajes.Castellano:
                lblUserCode.Text = "Codigo";
                lblUserPass.Text = "Contraseña";
                btnLogIn.Text    = "Acceder";
                break;

            case Languajes.English:
                lblUserCode.Text = "Code";
                lblUserPass.Text = "Password";
                btnLogIn.Text    = "LogIn";
                break;
            }
        }
Ejemplo n.º 14
0
 private void btnSpanish_Click(object sender, System.EventArgs e)
 {
     this.languaje = Languajes.Castellano;
     drawTexts();
 }
Ejemplo n.º 15
0
 private void btnEnglish_Click(object sender, System.EventArgs e)
 {
     this.languaje = Languajes.English;
     drawTexts();
 }
Ejemplo n.º 16
0
 public SearchScreen(Languajes languaje)
 {
     InitializeComponent();
     drawTexts(languaje);
 }