public override void AddOperation(object sender, RoutedEventArgs e)
        {
            //also give a few default empty string values so that UI copy operation is possible
            FPTemplateRow FPTemplateRow = new FPTemplateRow()
                                            {
                                                FixedPatternTemplate = this.FixedPatternTemplate,
                                                //auto increment sl no for each additional row
                                                SlNo = FPTemplateRows.Max(p => p.SlNo) + 1,
                                                Density = " ",
                                                Designation = " ",
                                                Location = " ",
                                                Segment = " ",
                                                Sensitivity = " ",
                                                FilmSizeString = " ",
                                                FilmCount = 1,
                                            };

            FPTemplateRows.Add(FPTemplateRow);
            OnPropertyChanged("FPTemplateRows");
        }
 private void DetachFPTemplateRows(FPTemplateRow entity)
 {
     entity.FixedPatternTemplate = null;
 }
 private bool FilterFPTemplateRows(FPTemplateRow entity)
 {
     return (entity.FixedPatternTemplateID == this.ID);
 }
 private void AttachFPTemplateRows(FPTemplateRow entity)
 {
     entity.FixedPatternTemplate = this;
 }