Exemplo n.º 1
0
 private void _excelApplication_SheetChange(object Sh, Range Target)
 {
     if (SelectedItem != null)
     {
         SelectedItem.Column = Target.Column;
         var nextSelected = EditData.Items.IndexOf(SelectedItem) + 1;
         if (nextSelected < EditData.Items.Count)
         {
             SelectedItem = EditData.Items[nextSelected];
         }
         else
         {
             IsAutoCommandBegin = false;
             Auto();
         }
     }
     else
     {
         SelectedItem = EditData.Items.FirstOrDefault();
         _excelApplication_SheetChange(Sh, Target);
     }
 }
Exemplo n.º 2
0
 private void ResetProfileItem(WorkSheetProfileItem item)
 {
     item.Column = 0;
 }