Esempio n. 1
0
        void ShowCompanyDeleteModal(long itemId)
        {
            _currentCompanyByMagazine  = _magazineCompanies.FirstOrDefault(n => n.Id == itemId);
            _deletingCompanyByMagazine = true;
            _deleteTitle = L["Delete company from this magazine"];

            _deleteText =
                string.Format(L["Are you sure you want to delete the company {0} with role {1} from this magazine?"],
                              _currentCompanyByMagazine?.Company, _currentCompanyByMagazine?.Role);

            _frmDelete.Show();
        }
Esempio n. 2
0
 void ModalClosing(ModalClosingEventArgs obj)
 {
     _deleteInProgress          = false;
     _deletingCompanyByMagazine = false;
     _currentCompanyByMagazine  = null;
 }