Beispiel #1
0
        public DataSynOptions GetOptions()
        {
            var res = DataSynOptions.CreateDefault();

            res.Override(m_syndef.Options);
            res.Override(Options);
            return(res);
        }
Beispiel #2
0
 public DataSynDefItem(DataSynDef syndef)
 {
     ColMode        = ColumnMode.All;
     CompareColMode = ColumnMode.All;
     Options        = new DataSynOptions();
     IsChecked      = true;
     m_syndef       = syndef;
 }
Beispiel #3
0
        public SynItem(Synchronizer syn, DataSynDefItem item)
        {
            m_item     = item;
            m_options  = m_item.GetOptions();
            m_syn      = syn;
            m_srcCache = Path.GetTempFileName();
            m_dstCache = Path.GetTempFileName();
            m_srcSada  = m_syn.m_srcSada;
            m_dstSada  = m_syn.m_dstSada;
            var vals = Enum.GetValues(typeof(SynTableData));

            m_gridFills = new GridTable[vals.Length];
            m_grids     = new GridTable[vals.Length];
        }
Beispiel #4
0
 public void Override(DataSynOptions spec)
 {
     if (spec.Insert != null)
     {
         Insert = spec.Insert;
     }
     if (spec.Update != null)
     {
         Update = spec.Update;
     }
     if (spec.Delete != null)
     {
         Delete = spec.Delete;
     }
     if (spec.DisableConstraints != null)
     {
         DisableConstraints = spec.DisableConstraints;
     }
 }