Example #1
0
        private void BTN_NewProvider_Click(object sender, EventArgs e)
        {
            Page_Providers_Edit_And_Add page_Providers_Edit_And_Add = new Page_Providers_Edit_And_Add(true, 0, userIdioma);

            page_Providers_Edit_And_Add.ShowDialog();

            Providers = obterProviders.GetProviders(0, null, null);
            GRID_View_Providers.DataSource = Providers;
        }
        private void BTN_NewProvider_Click(object sender, EventArgs e)
        {
            Page_Providers_Edit_And_Add providers_Edit_And_Add = new Page_Providers_Edit_And_Add(true, 0, userIdioma);

            providers_Edit_And_Add.ShowDialog();

            return_Providers    = fornecedores.GetProviders(0, null, providerCNPJ);
            listCNPJ.DataSource = return_Providers;
        }
Example #3
0
        private void BTN_Edit1_Click(object sender, EventArgs e)
        {
            if (ContLinhasGrid() < 1)
            {
                return;
            }

            selectProviderID = Convert.ToInt32(GRID_View_Providers.CurrentRow.Cells[0].Value.ToString());

            Page_Providers_Edit_And_Add page_Providers_Edit_And_Add = new Page_Providers_Edit_And_Add(false, selectProviderID, userIdioma);

            page_Providers_Edit_And_Add.ShowDialog();

            Providers = obterProviders.GetProviders(0, null, null);
            GRID_View_Providers.DataSource = Providers;
        }