Пример #1
0
        public virtual void PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (PropertyChangedEvent != null)
            {
                PropertyChangedEvent(sender, e);
                //For real time checklist columns saving

                Cell currentCell = ((Cell)sender);

                if (((Cell)sender).ExcelParams.Rows != null && ((Cell)sender).Row < ((Cell)sender).ExcelParams.Rows.Count)
                {
                    //Changing from SharePoint to 3 Tier
                    var titleData = ((Cell)sender).ExcelParams.Rows[((Cell)sender).Row].FindCell("TaskName").Data;
                    var id = ((Cell)sender).ExcelParams.Rows[((Cell)sender).Row].FindCell("ID").Data;
                    
                    bool mandatory = currentCell.Column.Mandatory;
                    var data = currentCell.data;
                    bool decideSave = ((data == null || data == "") && mandatory) ? false : true;

                    currentCell.rowHandler.ValidateRow();

                    if (titleData != null && titleData.ToString() != "" && id != null && id.ToString() != "" && decideSave && currentCell.rowHandler.RowStatus != RowHandler.RowStatuss.Invalid)
                    {
                        ((Cell)sender).Column.ExcelParams.RowChanged(((Cell)sender).rowHandler);
                    }
                }
            }
        }
Пример #2
0
 void idCell_PropertyChangedEvent(object sender, PropertyChangedEventArgs e)
 {
 }
Пример #3
0
 protected void CallPropertyChanged(object newVal)
 {
     if (PropertyChangedEvent != null)
     {
         PropertyChangedEventArgs args = new PropertyChangedEventArgs();
         args.propertyName = Column.PropertyBind;
         args.newVal = newVal;
         PropertyChanged(this, args);
     }
 }
 public void SelectedItemChanged_BusinessFunc(object sender, PropertyChangedEventArgs<bool> e)
 {
     if (e.NewValue == false) SearchBySubFunctionData();
 }
 public void SelectedItemChanged_GlobalFunc(object sender, PropertyChangedEventArgs<bool> e)
 {
     if (e.NewValue == false) SearchByBusinessAreaData();
 }
 public void SelectedItemChanged_GlobalHead(object sender, PropertyChangedEventArgs<bool> e)
 {
     if (e.NewValue == false) SearchByGlobalFunctionData();
 }
Пример #7
0
 protected virtual void editorText_PropertyChangedEvent(object sender, PropertyChangedEventArgs e)
 {
     UpdateData(e.newVal, true, true);
 }
Пример #8
0
        private void txtText_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
        {
            if(PropertyChangedEvent != null)
            {
                if (txtText.Text != CurrentText)
                {
                    PropertyChangedEventArgs args = new PropertyChangedEventArgs();
                    args.propertyName = PropertyBind;
                    args.newVal = txtText.Text;
                    PropertyChangedEvent(sender, args);

                    CurrentText = txtText.Text;
                }
            }
        }