コード例 #1
0
ファイル: BancaTest.cs プロジェクト: uaandrei/G35T1UN3
        public void BancaGetAllTest()
        {
            var list = Banca.GetAll();

            if (list == null)
            {
                Assert.Fail();
            }
        }
コード例 #2
0
 private void SearchItems()
 {
     if (filterTbox.Text.Trim() == string.Empty)
     {
         RefreshBanciList();
         return;
     }
     bancaBindingSource.DataSource = null;
     bancaBindingSource.DataSource = Banca.GetAll().Where(p => p.Contains(filterTbox.Text) == true).ToList();
 }
コード例 #3
0
ファイル: LoadingForm.cs プロジェクト: uaandrei/G35T1UN3
 private void LoadData()
 {
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca bancile...";
     Banca.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca delegatii...";
     Delegat.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca drepturile...";
     Drept.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca facturile...";
     FacturaIntrare.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca facturile...";
     FacturaIesire.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca firmele...";
     Firma.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca platile...";
     Plata.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca platile...";
     PlataFactura.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca platile...";
     PozitieFacturaIesire.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca platile...";
     PozitieFacturaIntrare.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca produsele...";
     Produs.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca rolurile...";
     Rol.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca platile...";
     RolDrept.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca stocurile...";
     Stoc.GetAll();
     progressBar.Invoke(new UpdateDelegate(UpdateProgressBar));
     runningOperationLbl.Text = "Se incarca utilizatorii...";
     Utilizator.GetAll();
 }
コード例 #4
0
 private void RefreshBanciList()
 {
     filterTbox.Text = string.Empty;
     bancaBindingSource.DataSource = null;
     bancaBindingSource.DataSource = Banca.GetAll();
 }
コード例 #5
0
ファイル: AddEditFirmaForm.cs プロジェクト: uaandrei/G35T1UN3
 public AddEditFirmaForm()
 {
     InitializeComponent();
     bancaCmb.DataSource   = Banca.GetAll();
     delegatCmb.DataSource = Delegat.GetAll();
 }