Ejemplo n.º 1
0
 public void InitCompare(ComparableData inLeft, ComparableData inRight)
 {
     _left        = inLeft;
     leftTB.Text  = _left.Name == "" ? "NOTHING LOADED" : _left.Name;
     _right       = inRight;
     rightTB.Text = _right.Name == "" ? "NOTHING LOADED" : _right.Name;
     Compare();
 }
Ejemplo n.º 2
0
        public void CreateComparison(ComparableData inLeftData, ComparableData inRightData)
        {
            _leftData  = inLeftData;
            _rightData = inRightData;

            Compare();
            AssociateEntities();
        }
Ejemplo n.º 3
0
        public DataComparerUCtrl(ComparableData inLeft, ComparableData inRight)
        {
            InitializeComponent();
            InitColors();

            logUCtrl1.Bind(Logger.GetInstance());

            InitCompare(inLeft, inRight);
        }
Ejemplo n.º 4
0
        public List <DataEntity> GetPossibleAssociations(DataEntity inEntity)
        {
            List <DataEntity> rslt = new List <DataEntity>();

            if (!inEntity.DontAssociate)
            {
                ComparableData    otherData = inEntity.Comparable == _leftData ? _rightData : _leftData;
                List <DataEntity> confirmed = GetConfirmedAssociations(inEntity);

                foreach (DataEntity entity in otherData.Entities)
                {
                    if (!confirmed.Contains(entity))
                    {
                        rslt.Add(entity);
                    }
                }
            }

            return(rslt);
        }
Ejemplo n.º 5
0
 public virtual void Copy(ComparableData comparableData)
 {
 }