Esempio n. 1
0
        private void BsStandartToolStrip1_OkDeleteButtonClicked(object sender, EventArgs e)
        {
            OMagazineDelete magazineDelete = new OMagazineDelete(selectedMagazine.MagazineId);
            BsNewResult     result         = magazineDelete.Execute();

            BsMessageBox.Show(result);
            GetFormReady();
        }
Esempio n. 2
0
        private void BsStandartToolStrip1_OkDeleteButtonClicked(object sender, EventArgs e)
        {
            OCompanyDelete delete = new OCompanyDelete(_selectedItem.CompanyId);
            BsNewResult    result = delete.Execute();

            BsMessageBox.Show(result);
            GetFormReady();
        }
Esempio n. 3
0
        private void BsStandartToolStrip1_OkDeleteButtonClicked(object sender, EventArgs e)
        {
            MagazineDate obj = new MagazineDate
            {
                MagazineId = selectedMagazine.MagazineId,
                Date       = new DateTime(selectedYear, deletedMonth, 1)
            };
            OMagazineDateDelete delete = new OMagazineDateDelete(obj);
            BsNewResult         result = delete.Execute();

            BsMessageBox.Show(result);
            GetFormReady();
        }
Esempio n. 4
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();
        }
Esempio n. 5
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();
        }
Esempio n. 6
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();
        }
Esempio n. 7
0
        private void BsStandartToolStrip1_OkSaveButtonClicked(object sender, EventArgs e)
        {
            if (advertisementList.Count(a => a.PageId == 1) != 1)
            {
                BsMessageBox.ShowError("Bir kapak reklamı girin");
                return;
            }
            if (advertisementList.Count(a => a.PageId == 2) != 1)
            {
                BsMessageBox.ShowError("Bir kapak içi reklamı girin");
                return;
            }
            if (advertisementList.Count(a => a.PageId == 3) != 1)
            {
                BsMessageBox.ShowError("Bir arka kapak reklamı girin");
                return;
            }

            OAdvertisementSave save   = new OAdvertisementSave(advertisementList, selectedDateId);
            BsNewResult        result = save.Execute();

            BsMessageBox.Show(result);
            GetFormReady();
        }