MetroFramework POS Source Code

metroframework pos source code

You may also like...

  • Mauro Rog

    Great Job.
    What kind of control you used to receipt totals ?

  • Bilgehan Zeki Özaytaç

    I have idea. U can donate goal for open source.

  • Dominik Cologne

    Can you make a NumericUpDown in Metro Design? I need it for a project.

    • Yes I think it is possible, if I find some time I will include that.

  • I setup a PayPal donate link. This is only available for 3 days. You can get it now via PayPal donation

  • Giancarlo Solano

    Scroll grid error?
    MetroGrid.cs
    ——————————————————————-

    public void UpdateScrollbar()
    {
    try
    {
    BeginIgnoreScrollbarChangeEvents();

    if (_ishorizontal)
    {
    int visibleCols = VisibleFlexGridCols();
    _scrollbar.Maximum = hScrollbar.Maximum;
    _scrollbar.Minimum = hScrollbar.Minimum;
    _scrollbar.SmallChange = hScrollbar.SmallChange;
    _scrollbar.LargeChange = hScrollbar.LargeChange;
    _scrollbar.Location = new Point(0, _grid.Height – _scrollbar.ScrollbarSize);
    _scrollbar.Width = _grid.Width – (vScrollbar.Visible ? _scrollbar.ScrollbarSize : 0);
    _scrollbar.BringToFront();
    _scrollbar.Visible = hScrollbar.Visible;
    _scrollbar.Value = hScrollbar.Value == 0 ? 1 : hScrollbar.Value;
    }
    else
    {
    int visibleRows = VisibleFlexGridRows();
    _scrollbar.Maximum = _grid.RowCount -2;//2 its for me
    _scrollbar.Minimum = 1;
    _scrollbar.SmallChange = 1;
    _scrollbar.LargeChange = Math.Max(1, visibleRows – 1);
    _scrollbar.Value = _grid.FirstDisplayedScrollingRowIndex;
    if (_grid.RowCount > 0 && _grid.Rows[_grid.RowCount – 1].Cells[0].Displayed)
    {
    //_scrollbar.Value = _grid.RowCount ;//its for me
    }
    _scrollbar.Location = new Point(_grid.Width – _scrollbar.ScrollbarSize, 0);
    _scrollbar.Height = _grid.Height – (hScrollbar.Visible ? _scrollbar.ScrollbarSize : 0);
    _scrollbar.BringToFront();
    _scrollbar.Visible = vScrollbar.Visible;
    }
    }
    finally
    {
    EndIgnoreScrollbarChangeEvents();
    }
    }


    private int VisibleFlexGridRows()
    {
    int respuesta = _grid.DisplayedRowCount(true);
    if (_grid.Rows.Count > 0)
    {
    int cabecera = _grid.Rows[0].HeaderCell.Size.Height;
    int altura = _grid.Height;
    int fila = _grid.Rows[0].Height;
    respuesta = (altura – cabecera) / fila;
    }
    return respuesta;
    }