Ejemplo n.º 1
0
 internal AddMessage(ISchemaTables schemaTables, INotifyMessage notifyMessage, INotificationSql notificationSql, String table)
 {
     NotifyMessage   = notifyMessage;
     SchemaTables    = schemaTables;
     NotificationSql = notificationSql;
     ColumsTable     = SchemaTables.GetAllColumFromTable(CONECTION_STRING, DB_NAME, table);
     InitializeComponent();
     NofiticationMessageBase = NotificationSql.GetAllNotificationMessage(CONECTION_STRING);
     CmbMessage.DataSource   = (from N in NofiticationMessageBase select N.Title).ToList();
 }
Ejemplo n.º 2
0
 public AddDestinatarios(INotificationSql notificationSql, ISchemaTables schemaTables)
 {
     InitializeComponent();
     NotificationSql           = notificationSql;
     SchemaTables              = schemaTables;
     CmbDestination.DataSource = NotificationSql?.GetAllTableNotification(Constants.CONECTION_STRING) ?? null;
     LisNotification           = NotificationSql.GetProvaiderNotification(Constants.CONECTION_STRING);
     PnlNortificationType.VerticalScroll.Enabled = true;
     PnlNortificationType.VerticalScroll.Visible = true;
     BtnAddMessage.Visible = false;
 }