Exemplo n.º 1
0
 /// <summary>
 /// Fired after a column receive the focus
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnFocusColumnEntered(ColumnEventArgs e)
 {
     if (FocusColumnEntered != null)
     {
         FocusColumnEntered(this, e);
     }
 }
Exemplo n.º 2
0
    protected override void OnCheckedChanged(EventArgs e)
    {
        base.OnCheckedChanged(e);
        ColumnEventArgs ce = new ColumnEventArgs();

        ce.ColumnIndex = ColumnIndex;
        ColumnCheckedChanged(this, ce);
    }
Exemplo n.º 3
0
        private void HandleColumnClick(object sender, ColumnEventArgs e)
        {
            ResourcePropsColumn col = e.Column as ResourcePropsColumn;

            if (col != null && _listView != null)
            {
                HandeColumnClick(col);
            }
        }
 /// <summary>
 /// hat sich der Wert der Spalte geändert, wird UpdatePathVII auf TRUE gesetzt
 /// </summary>
 private void UpdatePathVII_ValueSet(object sender, ColumnEventArgs e)
 {
     using (NoRightsCheck())
     {
         if (DbVal.Compare(e.OldValue, e.NewValue, e.Column.ColDef.Type) != 0)
         {
             SetValue("UpdatePathVII", true);
         }
     }
 }
 private void Ident_DomainRD_ValueSet(object sender, ColumnEventArgs e)
 {
     using (NoRightsCheck())
     {
         if ((DbObject["Ident_DomainRD"].New.String.Length > 0) && (DbObject["Ident_DomainRDOwner"].New.String.Length == 0))
         {
             SetValue("Ident_DomainRDOwner", DbObject["Ident_DomainRD"].New.String);
         }
     }
 }
 private void UID_Application_ValueSet(object sender, ColumnEventArgs e)
 {
     using (NoRightsCheck())
     {
         if (DbObject["UID_Application"].Old.String != e.New.String)
         {
             SetValue("UpdateProfileVII", true);
             SetValue("UpdatePathVII", true);
         }
     }
 }
Exemplo n.º 7
0
 protected virtual void OnColumnAdded(ColumnEventArgs e)
 {
     if (this.ColumnAdded != null)
     {
         this.ColumnAdded(this, e);
     }
     if (this.Parent != null)
     {
         this.Parent.OnColumnAdded(e);
     }
 }
        private void SubPath_ValueChecking(object sender, ColumnEventArgs e)
        {
            using (NoRightsCheck())
            {
                string wert = e.New.String.TrimEnd('\\');

                if (e.New.String != wert)
                {
                    e.NewValue = wert;
                }
            }
        }
        /// <summary>
        /// Ist die OrderNumber kleiner als 10000 wird der Wert abgewiesen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OrderNumber_ValueChecking(object sender, ColumnEventArgs e)
        {
            using (NoRightsCheck())
            {
                if (e.New.Double < 10000)
                {
                    throw new ViException(881134, ExceptionRelevance.EndUser);
                }

                if (e.New.Double > 100000000)
                {
                    throw new ViException(881126, ExceptionRelevance.EndUser, e.Column.ColDef.Display, "100000000");
                }
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// Raises the ColumnPropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        internal void OnColumnPropertyChanged(ColumnEventArgs e)
        {
            if (e.EventType == ColumnEventType.WidthChanged || e.EventType == ColumnEventType.VisibleChanged)
            {
                this.Columns.RecalcWidthCache();
            }

            if (this.CanRaiseEvents)
            {
                if (this.Table != null)
                {
                    this.Table.OnColumnPropertyChanged(e);
                }
            }
        }
Exemplo n.º 11
0
        private void CurrentGridView_ColumnWidthChanged(object sender, ColumnEventArgs e)
        {
            if (!this._saveColumnWidths)
            {
                return;
            }
            string str = "";

            foreach (GridColumn gridColumn in (CollectionBase)this.CurrentGridView.Columns)
            {
                str = str + gridColumn.Width.ToString() + ",";
            }
            if ((uint)str.Length > 0U)
            {
                str = str.TrimEnd(',');
            }
            ConfigurationManager.LocalSettingsProfile.SetValue("ColumnWidths", this.GridName, (object)str);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Select the picked column.
        /// </summary>
        /// <param name="ASender">sender</param>
        /// <param name="AEventArgs">event</param>
        protected void GrdColumns_FocusColumnEntered(System.Object ASender, ColumnEventArgs AEventArgs)
        {
            System.Int32 column;

            if (FDuringApplyOrCancel == true)
            {
                grdColumns.Selection.ResetSelection(false);
                return;
            }

            column = AEventArgs.Column;

            if ((column != -1) && (column != FSelectedColumn))
            {
                /* select the picked column */
                SelectColumn(column);
            }
        }
Exemplo n.º 13
0
        /// <summary>
        /// Raises the PropertyChanged event
        /// </summary>
        /// <param name="e">A ColumnEventArgs that contains the event data</param>
        protected virtual void OnPropertyChanged(ColumnEventArgs e)
        {
            if (this.ColumnModel != null)
            {
                e.SetIndex(this.ColumnModel.Columns.IndexOf(this));
            }

            if (this.CanRaiseEvents)
            {
                if (this.ColumnModel != null)
                {
                    this.ColumnModel.OnColumnPropertyChanged(e);
                }

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, e);
                }
            }
        }
 private void OnGridViewColumnWidthChanged(object sender, ColumnEventArgs e)
 {
     UpdateGridSize();
 }
Exemplo n.º 15
0
 private void visibleColumns_ColumnAdded(object sender, ColumnEventArgs e)
 {
     this.OnColumnAdded(e);
 }
Exemplo n.º 16
0
 private void DnfColumnSelected(object sender, ColumnEventArgs args)
 {
     _selectedTable     = args.Column.ParentTable;
     _pf.SelectedObject = args.Column;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Handler for a Column's PropertyChanged event
 /// </summary>
 /// <param name="sender">The object that raised the event</param>
 /// <param name="e">A ColumnEventArgs that contains the event data</param>
 private void column_PropertyChanged(object sender, ColumnEventArgs e)
 {
     this.columnCollection.ColumnModel.OnColumnPropertyChanged(e);
 }
Exemplo n.º 18
0
 private void navigatorControl_ColumnSelect(object sender, ColumnEventArgs args)
 {
     OnColumnSelected(args);
 }
Exemplo n.º 19
0
 protected virtual void OnColumnSelected(ColumnEventArgs args)
 {
     ColumnSelected?.Invoke(this, args);
 }
Exemplo n.º 20
0
 protected void dgByUser_UnGroupColumn(object sender, ColumnEventArgs e)
 {
     Display30Days();
     dgByDay.Visible = dgByUser.Visible = true;
     lbByDay.Visible = lbByUser.Visible = true;
 }
Exemplo n.º 21
0
        /// <summary>
        /// hat sich der Wert der Spalte geändert, wird UpdateProfileVII auf TRUE gesetzt
        /// </summary>
        private void UpdateProfileVII_ValueSet(object sender, ColumnEventArgs e)
        {
            if (String.IsNullOrEmpty(e.Column.Columnname))
            {
                return;
            }

            using (NoRightsCheck())
            {
                switch (e.Column.ColDef.Type)
                {
                case ValType.Binary:

                    if (DbObject[e.Column.Columnname].Old.Binary != e.New.Binary)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Bool:

                    if (DbObject[e.Column.Columnname].Old.Bool != e.New.Bool)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Date:

                    if (DbObject[e.Column.Columnname].Old.Date != e.New.Date)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Decimal:

                    if (DbObject[e.Column.Columnname].Old.Decimal != e.New.Decimal)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Double:

                    if (DbObject[e.Column.Columnname].Old.Double != e.New.Double)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Int:

                    if (DbObject[e.Column.Columnname].Old.Int != e.New.Int)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                case ValType.Long:

                    if (DbObject[e.Column.Columnname].Old.Long != e.New.Long)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;

                default:                         //ValType.String

                    if (DbObject[e.Column.Columnname].Old.String != e.New.String)
                    {
                        SetValue("UpdateProfileVII", true);
                    }

                    break;
                }
            }
        }
Exemplo n.º 22
0
 private void GridView1_ColumnWidthChanged(object sender, ColumnEventArgs e)
 {
     layoutControlItemNo.Size = new Size(No.Width + 1, layoutControlItemNo.Size.Height);
     layoutControlItemCode.Size = new Size(Document.Width, layoutControlItemCode.Size.Height);
     layoutControlItemType.Size = new Size(Type.Width, layoutControlItemType.Size.Height);
     layoutControlItemYear.Size = new Size(Year.Width, layoutControlItemYear.Size.Height);
 }
Exemplo n.º 23
0
 private void Table_ColumnWidthChanged(object sender, ColumnEventArgs e)
 {
     _tableViewSave = true;
 }
Exemplo n.º 24
0
 private void gridView1_ColumnWidthChanged(object sender, ColumnEventArgs e)
 {
     this.pmRecalColWidth();
 }
		private void gridViewPublications_ColumnWidthChanged(object sender, ColumnEventArgs e)
		{
			if (!AllowToSave) return;
			WidthCost = gridColumnADRate.Width;
			WidthColor = gridColumnColorPricing.Width;
			WidthSquare = gridColumnColumnInches.Width;
			WidthDate = gridColumnDate.Width;
			WidthDeadline = gridColumnDeadline.Width;
			WidthDelivery = gridColumnDelivery.Width;
			WidthDimensions = gridColumnDimensions.Width;
			WidthDiscount = gridColumnDiscountRate.Width;
			WidthFinalCost = gridColumnFinalRate.Width;
			WidthID = gridColumnID.Width;
			WidthIndex = gridColumnIndex.Width;
			WidthMechanicals = gridColumnMechanicals.Width;
			WidthPageSize = gridColumnPageSize.Width;
			WidthPercentOfPage = gridColumnPercentOfPage.Width;
			WidthPCI = gridColumnPCIRate.Width;
			WidthPublication = gridColumnPublication.Width;
			WidthReadership = gridColumnReadership.Width;
			WidthSection = gridColumnSection.Width;
			SaveView();
		}
Exemplo n.º 26
0
 /// <summary>
 /// Fired after a column receive the focus
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnFocusColumnEntered(ColumnEventArgs e)
 {
     if (FocusColumnEntered != null)
         FocusColumnEntered(this, e);
 }
Exemplo n.º 27
0
 private void OnColumnWidthChanged(object sender, ColumnEventArgs e)
 {
     SetColumnPanelHeight();
 }