예제 #1
0
        public Form_GestaoClientes()
        {
            InitializeComponent();

            MdGesStand = new Model_GesStandContainer();
            timer1.Start();

            //PASSAR O RATO SOBRE O BOTÃO
            #region BUTTON HOVER

            ToolTip toolTip1 = new ToolTip();

            toolTip1.AutoPopDelay = 5000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay  = 500;

            toolTip1.ShowAlways = true;

            toolTip1.SetToolTip(BT_filtrar, "Filtrar");
            #endregion

            (from Cliente in MdGesStand.Clientes
             orderby Cliente.Nome
             select Cliente).Load();

            clienteBindingSource.DataSource = MdGesStand.Clientes.Local.ToBindingList();// ??????
        }
예제 #2
0
        //PROCURAR CLIENTE
        private void BT_filtrar_Click(object sender, EventArgs e)
        {
            if (tb_filtrar.Text.Length > 0)
            {
                BT_novo_registo.Enabled = false;

                MdGesStand.Dispose();
                MdGesStand = new Model_GesStandContainer();

                (from cliente in MdGesStand.Clientes
                 where cliente.Nome.ToUpper().Contains(tb_filtrar.Text)
                 orderby cliente.Nome
                 select cliente).ToList();

                clienteBindingSource.DataSource = MdGesStand.Clientes.Local.ToBindingList();
            }
            else
            {
                BT_filtrar.Enabled = true;

                MdGesStand.Dispose();
                MdGesStand = new Model_GesStandContainer();

                (from cliente in MdGesStand.Clientes
                 orderby cliente.Nome
                 select cliente).ToList();

                clienteBindingSource.DataSource = MdGesStand.Clientes.Local.ToBindingList();
            }
        }
예제 #3
0
        private void Gestão_Vendas_Load(object sender, EventArgs e)
        {
            #region BOTÃO DETALHES
            // Create the ToolTip and associate with the Form container.
            ToolTip toolTip1 = new ToolTip();

            // Set up the delays for the ToolTip.
            toolTip1.AutoPopDelay = 5000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay  = 500;
            // Force the ToolTip text to be displayed whether or not the form is active.
            toolTip1.ShowAlways = true;

            // Set up the ToolTip text for the Button and Checkbox.
            toolTip1.SetToolTip(BT_inserirVenda, "Guardar");
            toolTip1.SetToolTip(BT_removerVenda, "Remover");
            toolTip1.SetToolTip(BT_exportar, "Exportar");
            #endregion

            MdGesStand = new Model_GesStandContainer();
            LerClientes();
        }
예제 #4
0
 private void Oficina_Load(object sender, EventArgs e)
 {
     MdGesStand = new Model_GesStandContainer();
     LerClientes();
 }