Example #1
0
        /// <summary>
        /// Method for copying unit information of one column to columns of the other tables.
        /// </summary>
        void onCopyUnitInfoOnColumn(object sender, SetUnitView.CopyUnitInfoEventArgs e)
        {
            var importDataControl = sender as ImportDataTableControl;

            if (importDataControl == null)
            {
                return;
            }

            foreach (XtraTabPage page in _tabControl.TabPages)
            {
                foreach (ImportDataTableControl importDataTableControl in page.Controls)
                {
                    if (importDataTableControl == null)
                    {
                        continue;
                    }
                    if (importDataTableControl != importDataControl)
                    {
                        importDataTableControl.SetUnitInformationForColumn(e.Dimension, e.Unit, e.ColumnName);
                    }
                }
            }
        }
 /// <summary>
 /// Method reacting on Copy (Apply to others) button click in SetUnitView.
 /// </summary>
 void onCopyUnitInfo(object sender, SetUnitView.CopyUnitInfoEventArgs e)
 {
     OnCopyUnitInfoOnColumn?.Invoke(this, e);
 }