Exemplo n.º 1
0
 private void GetFormReady()
 {
     BsCommon.ClearControls(this);
     bsStandartToolStrip1.DisableUpdateDelete();
     FillCompanyList();
     FillStatusCombo();
 }
Exemplo n.º 2
0
        private void GetFormReady()
        {
            BsCommon.ClearControls(this);
            bsStandartToolStrip1.DisableUpdateDelete();
            bsStandartToolStrip1.DisableSave();
            FillMagazineList();
            FillYearList();

            if (selectedMagazine != null)
            {
                lvwMagazine.Items[selectedMagazineIndex].Selected = true;
                lvwYear.Items[selectedYearIndex].Selected         = true;
            }
        }
Exemplo n.º 3
0
        private void BsStandartToolStrip1_OkUpdateButtonClicked(object sender, EventArgs e)
        {
            BsNewResult result = BsCommon.Validate(txtCoName);

            if (result.OpType != OpType.Successful)
            {
                BsMessageBox.Show(result);
                return;
            }

            Company        obj    = FillObject();
            OCompanyUpdate update = new OCompanyUpdate(obj);

            result = update.Execute();
            BsMessageBox.Show(result);
            GetFormReady();
        }
Exemplo n.º 4
0
        private void BsStandartToolStrip1_OkSaveButtonClicked(object sender, EventArgs e)
        {
            string      magazineName = txtMaName.Text.Trim();
            BsNewResult result       = BsCommon.Validate(txtMaName);

            txtMaName.Clear();
            if (result.OpType != OpType.Successful)
            {
                BsMessageBox.Show(result);
                return;
            }

            OMagazineSave magazineSave = new OMagazineSave(magazineName);

            result = magazineSave.Execute();
            BsMessageBox.Show(result);
            GetFormReady();
        }
Exemplo n.º 5
0
        private void BsStandartToolStrip1_OkUpdateButtonClicked(object sender, EventArgs e)
        {
            string      magazineName = txtMaName.Text.Trim();
            BsNewResult result       = BsCommon.Validate(txtMaName);

            if (result.OpType != OpType.Successful)
            {
                BsMessageBox.Show(result);
                return;
            }

            Magazine magazine = new Magazine
            {
                MagazineId   = selectedMagazine.MagazineId,
                MagazineName = magazineName
            };

            OMagazineUpdate magazineUpdate = new OMagazineUpdate(magazine);

            result = magazineUpdate.Execute();
            BsMessageBox.Show(result);
            GetFormReady();
        }
Exemplo n.º 6
0
 private void GetFormReady()
 {
     BsCommon.ClearControls(this);
     bsStandartToolStrip1.DisableUpdateDelete();
     FillMagazineList();
 }
Exemplo n.º 7
0
 private void GetFormReady()
 {
     BsCommon.ClearControls(this);
     FillStatusList();
     GetCompanyList();
 }