Added id-based constructor to PrintItemWrapper
This commit is contained in:
parent
f555aea0e0
commit
5e7fb2e59e
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
//}
|
||||
}
|
||||
|
||||
public PrintItemWrapper(int printItemId)
|
||||
{
|
||||
this.PrintItem = DataStorage.Datastore.Instance.dbSQLite.Table<DataStorage.PrintItem>().Where(v => v.Id == printItemId).Take(1).FirstOrDefault();
|
||||
this.fileType = System.IO.Path.GetExtension(this.PrintItem.FileLocation).ToUpper();
|
||||
}
|
||||
|
||||
public void Delete()
|
||||
{
|
||||
PrintItem.Delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue