public frmBackUpSetting() { InitializeComponent(); var a = BackUpSettingBussines.GetAll(); cls = a.Count > 0 ? a[0] : new BackUpSettingBussines(); TelegramBot.SubmitEvent -= TelegramBotOnSubmitEvent; TelegramBot.SubmitEvent += TelegramBotOnSubmitEvent; }
private void SetBackUpLables() { try { var a = BackUpSettingBussines.GetAll(); var cls = a.Count > 0 ? a[0] : new BackUpSettingBussines(); lblLastBackUp.Text = cls.LastBackUpTime + " " + cls.LastBackUpDate; } catch (Exception e) { WebErrorLog.ErrorInstence.StartErrorLog(e); } }