Esempio n. 1
0
        private int GetRealHeightRecordDetails(int id)
        {
            FileScanComparison recordDetailsControl = FindRecordDetailsControl(id);
            int height = recordDetailsControl.Size.Height;// + (int)recordDetailsControl.CurrentAutoScaleDimensions.Height;

            return(height);
        }
Esempio n. 2
0
        private void ReArrangeRecordDetailsNewLocationY(int id, int newLocationY)
        {
            for (int i = id + 1; i < ExpandedRecords.Count; i++)
            {
                bool expanded = ExpandedRecords[i];

                if (expanded)
                {
                    FileScanComparison recordDetails = FindRecordDetailsControl(i);

                    if (recordDetails != null)
                    {
                        recordDetails.Location = new Point(recordDetails.Location.X, recordDetails.Location.Y + newLocationY);
                    }
                }
            }
        }
Esempio n. 3
0
        private FileScanComparison ExpandIndividualDetailsRecord(Panel record, int id)
        {
            FileScanResult     fileScanResult = Results[id];
            FileScanComparison expandedRecord = new FileScanComparison();

            expandedRecord.Name = "ExpandedRecord_" + id;
            expandedRecord.SetFileScanResult(fileScanResult);
            expandedRecord.BackColor = Color.White;
            expandedRecord.ForeColor = Color.Black;
            int y = record.Location.Y + record.Height + 1;

            expandedRecord.Location = new Point(record.Location.X, y);
            //expandedRecord.AutoScaleMode = AutoScaleMode.Inherit;
            RecordDetails.Add(expandedRecord);

            FileScanComparisons.Controls.Add(expandedRecord);

            return(expandedRecord);
        }