Example #1
0
        public void HandleHotItemChanged(object sender, HotItemChangedEventArgs e)
        {
            if (sender == null)
            {
                this.Form.toolStripStatusLabel3.Text = "";
                return;
            }

            switch (e.HotCellHitLocation)
            {
            case HitTestLocation.Nothing:
                this.Form.toolStripStatusLabel3.Text = @"Over nothing";
                break;

            case HitTestLocation.Header:
            case HitTestLocation.HeaderCheckBox:
            case HitTestLocation.HeaderDivider:
                this.Form.toolStripStatusLabel3.Text = String.Format("Over {0} of column #{1}", e.HotCellHitLocation, e.HotColumnIndex);
                break;

            case HitTestLocation.Group:
                this.Form.toolStripStatusLabel3.Text = String.Format("Over group '{0}', {1}", e.HotGroup.Header, e.HotCellHitLocationEx);
                break;

            case HitTestLocation.GroupExpander:
                this.Form.toolStripStatusLabel3.Text = String.Format("Over group expander of '{0}'", e.HotGroup.Header);
                break;

            default:
                this.Form.toolStripStatusLabel3.Text = String.Format("Over {0} of ({1}, {2})", e.HotCellHitLocation, e.HotRowIndex, e.HotColumnIndex);
                break;
            }
        }
/*
 *      private void dataGridViewImport_Sorted(object sender, EventArgs e)
 *      {
 *          UpdateGrid(_bDisplayAll);
 *      }
 */

        private void dataListViewImport_HotItemChanged(object sender, HotItemChangedEventArgs e)
        {
            foreach (ListViewItem lvi in dataListViewImport.Items)
            {
                string strCase = lvi.SubItems[0].Text;
                {
                    if (strCase.Equals(ResStrings.str_Ok))
                    {
                        lvi.ForeColor = Color.Green;
                    }
                    else if (strCase.Equals(ResStrings.CompareInventoryForm_ProcessData_Missing))
                    {
                        lvi.ForeColor = Color.Red;
                    }
                    else if (strCase.Equals(ResStrings.CompareInventoryForm_UpdateGrid_Not_Expected))
                    {
                        lvi.ForeColor = Color.Blue;
                    }
                    else
                    {
                        lvi.ForeColor = Color.Black;
                    }
                }
            }
        }
Example #3
0
        public void HandleHotItemChanged(object sender, HotItemChangedEventArgs e)
        {
            if (sender == null)
            {
                toolStripStatusLabel1.Text = "Nothing";
                return;
            }

            if (e.HotGroup != null)
            {
                DynamicHeader DynHead = new DynamicHeader();
                var           array   = DynHead.DynHeader(e.HotGroup.Header.ToString());
                this.ResultListView.Columns[0].Text = array[0];
                this.ResultListView.Columns[1].Text = array[1];
                this.ResultListView.Columns[2].Text = array[2];
                this.ResultListView.Columns[3].Text = array[3];
                this.ResultListView.Columns[4].Text = array[4];

                //  toolStripStatusLabel1.Text = String.Format("Over group '{0}', {1}", e.HotGroup.Header, e.HotCellHitLocationEx);
            }
        }
 protected override void OnHotItemChanged(HotItemChangedEventArgs e)
 {
     base.OnHotItemChanged(e);
     // HACK: Prevent Hyperlink handling from flickering first colum
     e.Handled = e.HotColumnIndex == 0;
 }
Example #5
0
 public void HandleHotItemChanged(object sender, HotItemChangedEventArgs e)
 {
 }