public override object OpenTable(AbsM.ITableBaseM table, object id = null, bool isSelected = false, WindowViewModelBase_VM ownerMV = null)
        {
            //(new layerInfo(_mv, table.Name)).Show();
            //return null;

            if (table != null)
            {
                var tableViewVM = new CosmeticTableViewVM(table as CosM.CosmeticTableBaseM);
                var tableViewV  = new CosV.CosmeticTableViewV();
                if (isSelected)
                {
                    return(OpenWindowDialog(
                               tableViewV,
                               tableViewVM,
                               767, 570,
                               500, 300,
                               ownerMV
                               ));
                }
                else
                {
                    OpenWindow(
                        tableViewV,
                        tableViewVM,
                        767, 570,
                        500, 300,
                        ownerMV
                        );
                }
            }
            return(null);
        }
Пример #2
0
 public CosmeticTableViewFilterVM(CosmeticTableViewVM source, FilterRelationModel fixedFilterPattern)
 {
     _source = source;
     GetFilterField();
     GetFilterOperation();
     GetFilterRelation();
     _dynamicFilter = new CosTableViewFiltersM(this);
     _filters       = new ObservableCollection <ITableViewFiltersM>(new[] { _dynamicFilter });
 }