Пример #1
0
 public FormaDataActualizarii()
 {
     InitializeComponent();
     adminCarti   = StocareFactory.GetAdministratorStocare1();
     Carte.NextID = adminCarti.NrCarti();
     incadrate    = new List <Carte>();
 }
Пример #2
0
 public FormaImprumuta(int codCititor)
 {
     InitializeComponent();
     adminCarti    = StocareFactory.GetAdministratorStocare1();
     adminCititori = StocareFactory.GetAdministratorStocare2();
     lblID.Text    = codCititor.ToString();
 }
Пример #3
0
 public FormaModificaCititor(int codCititor)
 {
     InitializeComponent();
     adminCititori  = StocareFactory.GetAdministratorStocare2();
     lblID.Text     = codCititor.ToString();
     Cititor.NextID = adminCititori.NrCititori();
     SetareControale();
 }
Пример #4
0
 public FormularModificaCarte(int codCarte)
 {
     InitializeComponent();
     lblID.Text   = codCarte.ToString();
     adminCarti   = StocareFactory.GetAdministratorStocare1();
     Carte.NextID = adminCarti.NrCarti();
     SetareControale();
 }
Пример #5
0
 public FormaReturnare(int codCititor)
 {
     InitializeComponent();
     lblID.Text    = codCititor.ToString();
     adminCarti    = StocareFactory.GetAdministratorStocare1();
     adminCititori = StocareFactory.GetAdministratorStocare2();
     AfiseazaLista();
 }
Пример #6
0
        public FormaCartiDisponibile(int CodCarte)
        {
            InitializeComponent();
            adminCarti = StocareFactory.GetAdministratorStocare1();
            Carte c = adminCarti.GetCarteByIndex(CodCarte);

            mlblCartiDisponible.Text = c.CartiDisponibile.ToString();
        }
Пример #7
0
        public Form1()
        {
            InitializeComponent();
            adminCarti   = StocareFactory.GetAdministratorStocare1();
            Carte.NextID = adminCarti.NrCarti();
            List <Carte> carti = adminCarti.GetCarti();

            AfiseazaMetroGrid(carti);
        }
Пример #8
0
        public FormaCititori()
        {
            InitializeComponent();
            adminCititori  = StocareFactory.GetAdministratorStocare2();
            Cititor.NextID = adminCititori.NrCititori();
            List <Cititor> cititori = adminCititori.GetCititori();

            AfiseazaMetroGrid(cititori);
        }
Пример #9
0
 public FormaAdaugaCititor()
 {
     InitializeComponent();
     adminCititori  = StocareFactory.GetAdministratorStocare2();
     Cititor.NextID = adminCititori.NrCititori();
 }
Пример #10
0
 public CautaCarte()
 {
     InitializeComponent();
     adminCarti = StocareFactory.GetAdministratorStocare1();
 }
Пример #11
0
        public Formular()
        {
            adminCarti    = StocareFactory.GetAdministratorStocare1();
            adminCititori = StocareFactory.GetAdministratorStocare2();

            //proprietatile ferestrei aplicatiei
            this.Size          = new System.Drawing.Size(1000, 500);
            this.StartPosition = FormStartPosition.Manual;
            this.Location      = new System.Drawing.Point(100, 100);
            this.Font          = new Font("Arial", 9, FontStyle.Bold);
            this.Text          = "Administrare Biblioteca";
            this.BackColor     = Color.Firebrick;

            //Proprietatile label titlu
            lblTitlu           = new Label();
            lblTitlu.Width     = LATIME_CONTROL;
            lblTitlu.Text      = "Titlu: ";
            lblTitlu.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(lblTitlu);

            //Proprietatile label autor
            lblAutor           = new Label();
            lblAutor.Width     = LATIME_CONTROL;
            lblAutor.Top       = DIMENSIUNE_PAS_Y;
            lblAutor.Text      = "Autor: ";
            lblAutor.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(lblAutor);

            //Proprietatile label editura
            lblEditura           = new Label();
            lblEditura.Width     = LATIME_CONTROL;
            lblEditura.Top       = 2 * DIMENSIUNE_PAS_Y;
            lblEditura.Text      = "Editura: ";
            lblEditura.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(lblEditura);

            //Proprietatile label Nr exemplare
            lblNrExemplare           = new Label();
            lblNrExemplare.Width     = LATIME_CONTROL;
            lblNrExemplare.Top       = 3 * DIMENSIUNE_PAS_Y;
            lblNrExemplare.Text      = "Numarul de exemplare: ";
            lblNrExemplare.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(lblNrExemplare);

            //Proprietatile textbox titlu
            txtTitlu          = new TextBox();
            txtTitlu.Width    = LATIME_CONTROL;
            txtTitlu.Location = new System.Drawing.Point(DIMENSIUNE_PAS_X, 0);
            this.Controls.Add(txtTitlu);

            //Proprietatile textbox autor
            txtAutor          = new TextBox();
            txtAutor.Width    = LATIME_CONTROL;
            txtAutor.Location = new Point(DIMENSIUNE_PAS_X, DIMENSIUNE_PAS_Y);
            this.Controls.Add(txtAutor);

            //Proprietatile textbox editura
            txtEditura          = new TextBox();
            txtEditura.Width    = LATIME_CONTROL;
            txtEditura.Location = new Point(DIMENSIUNE_PAS_X, 2 * DIMENSIUNE_PAS_Y);
            this.Controls.Add(txtEditura);

            //Proprietatile textbox nr exemplare
            txtNrExemplare          = new TextBox();
            txtNrExemplare.Width    = LATIME_CONTROL;
            txtNrExemplare.Location = new Point(DIMENSIUNE_PAS_X, 3 * DIMENSIUNE_PAS_Y);
            this.Controls.Add(txtNrExemplare);

            //Proprietatile buton adauga
            btnAdauga           = new Button();
            btnAdauga.Width     = LATIME_CONTROL;
            btnAdauga.Location  = new Point(DIMENSIUNE_PAS_X, 4 * DIMENSIUNE_PAS_Y);
            btnAdauga.Text      = "Adauga";
            btnAdauga.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(btnAdauga);

            btnAdauga.Click += OnButtonAdaugaClicked;
            this.Controls.Add(btnAdauga);

            //Proprietati label info
            lblInfo           = new Label();
            lblInfo.Width     = LATIME_CONTROL * 2;
            lblInfo.Height    = INALTIME_CONTROL * 4;
            lblInfo.Location  = new Point(0, 5 * DIMENSIUNE_PAS_Y);
            lblInfo.BackColor = Color.PaleGoldenrod;
            this.Controls.Add(lblInfo);
        }
Пример #12
0
 public FormularAdaugaCarte()
 {
     InitializeComponent();
     adminCarti   = StocareFactory.GetAdministratorStocare1();
     Carte.NextID = adminCarti.NrCarti();
 }
Пример #13
0
 public FormaCautaCititor()
 {
     InitializeComponent();
     adminCititori = StocareFactory.GetAdministratorStocare2();
 }