Пример #1
0
 private void showTareRows(ShownModes mode)
 {
     if (mode == ShownModes.All)
     {
         nomenclatureView.Columns[Document.IsTare.ColumnName].FilterInfo = new ColumnFilterInfo();
     }
     else
     {
         string filterExpression = string.Format("[{0}]={1}", Document.IsTare.ColumnName, mode == ShownModes.Tare);
         nomenclatureView.Columns[Document.IsTare.ColumnName].FilterInfo = new ColumnFilterInfo(filterExpression);
     }
 }
Пример #2
0
 private void showTareRows(ShownModes mode)
 {
     if (mode == ShownModes.All)
         {
         nomenclatureView.Columns[Document.IsTare.ColumnName].FilterInfo = new ColumnFilterInfo();
         }
     else
         {
         string filterExpression = string.Format("[{0}]={1}", Document.IsTare.ColumnName, mode == ShownModes.Tare);
         nomenclatureView.Columns[Document.IsTare.ColumnName].FilterInfo = new ColumnFilterInfo(filterExpression);
         }
 }