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

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

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

            AfiseazaMetroGrid(cititori);
        }
 public FormaAdaugaCititor()
 {
     InitializeComponent();
     adminCititori  = StocareFactory.GetAdministratorStocare2();
     Cititor.NextID = adminCititori.NrCititori();
 }
Beispiel #10
0
 public CautaCarte()
 {
     InitializeComponent();
     adminCarti = StocareFactory.GetAdministratorStocare1();
 }
Beispiel #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);
        }
Beispiel #12
0
 public FormularAdaugaCarte()
 {
     InitializeComponent();
     adminCarti   = StocareFactory.GetAdministratorStocare1();
     Carte.NextID = adminCarti.NrCarti();
 }
 public FormaCautaCititor()
 {
     InitializeComponent();
     adminCititori = StocareFactory.GetAdministratorStocare2();
 }