示例#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();
 }
示例#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;
 }
示例#3
0
 public EvnetEC(ISchemaTables schemaTables)
 {
     InitializeComponent();
     SchemaTables = schemaTables;
     if (TableListBinding == null)
     {
         TableListBinding  = new BindingList <string>();
         SourceListBinding = new BindingSource()
         {
             DataSource = TableListBinding
         };
         ListBTableName.DataSource = TableListBinding;
     }
     ChargeControlsAsync();
 }
示例#4
0
        public ItemCondition(ISchemaTables schemaTables, String identifier, INotifyCondition notifyCondition)
        {
            InitializeComponent();
            SchemaTables   = schemaTables;
            Identifier     = identifier;
            NotifyConditon = notifyCondition;
            TxtParameterDinamico.Enabled = false;
            if (SourceListBinding == null)
            {
                SourceListBinding = new BindingSource()
                {
                    DataSource = ConditionEC.TablesNamesListBinding
                };
                SourceListBinding2 = new BindingSource()
                {
                    DataSource = ConditionEC.TablesNamesListBinding
                };
                CmbXTables.DataSource = SourceListBinding;
                CmBTables2.DataSource = SourceListBinding2;

                //ColumsOneBinding = new BindingList<string>();
                //(SchemaTables.GetAllColumFromTable(Constants.CONECTION_STRING, Constants.DB_NAME, CmbXTables?.SelectedValue?.ToString())).ForEach(x => ColumsOneBinding.Add(x));

                //ColomsOneSource = new BindingSource()
                //{
                //    DataSource = ColumsOneBinding
                //};

                //ColumsTwoBinding = new BindingList<string>();
                //(SchemaTables.GetAllColumFromTable(Constants.CONECTION_STRING, Constants.DB_NAME, CmBTables2?.SelectedValue?.ToString())).ForEach(x => ColumsTwoBinding.Add(x));

                //ColomsTwoSource = new BindingSource()
                //{
                //    DataSource = ColumsTwoBinding
                //};

                CmbCondition.DataSource = Constants.ConditionList;
            }
            //CmbXColumns.DataSource = ColomsOneSource;
            //CmbColums2.DataSource = ColomsTwoSource;

            //SourceListBinding.ListChanged += ListTableOneChange;
        }
示例#5
0
 public NotificationManager(ISchemaTables notificationSql)
 {
     NotificationSql = notificationSql;
 }
示例#6
0
 public TestQueryCondition(String query, ISchemaTables schemaTables)
 {
     InitializeComponent();
     SchemaTables = schemaTables;
     GridResultTest.DataSource = schemaTables.ExeucteQuery(Constants.CONECTION_STRING, query, this);
 }