Added a Library Document Usage report
added methods to create a library document usage report
This commit is contained in:
@@ -62,6 +62,13 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
#endregion
|
||||
#region Events
|
||||
public event DisplayLibDocEvent PrintRequest;
|
||||
private void OnPrintRequest(DisplayLibDocEventArgs args)
|
||||
{
|
||||
if (PrintRequest != null)
|
||||
PrintRequest(this, args);
|
||||
}
|
||||
|
||||
private void listBoxLibDocs_Click(object sender, EventArgs e)
|
||||
{
|
||||
UpdateUsageList();
|
||||
@@ -268,5 +275,50 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
private void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnPrintRequest(new DisplayLibDocEventArgs("Library Document Usage",LibDocList));
|
||||
}
|
||||
}
|
||||
public class DisplayLibDocEventArgs
|
||||
{
|
||||
private string _ReportTitle;
|
||||
public string ReportTitle
|
||||
{
|
||||
get { return _ReportTitle; }
|
||||
set { _ReportTitle = value; }
|
||||
}
|
||||
private DocumentInfoList _libDocList;
|
||||
|
||||
public DocumentInfoList LibDocList
|
||||
{
|
||||
get { return _libDocList; }
|
||||
set { _libDocList = value; }
|
||||
}
|
||||
//private string _SearchString = null;
|
||||
//public string SearchString
|
||||
//{
|
||||
// get { return _SearchString; }
|
||||
// set { _SearchString = value; }
|
||||
//}
|
||||
//private string _TypesSelected;
|
||||
//public string TypesSelected
|
||||
//{
|
||||
// get { return _TypesSelected; }
|
||||
// set { _TypesSelected = value; }
|
||||
//}
|
||||
//private ICollection<ItemInfo> _MyItemInfoList;
|
||||
//public ICollection<ItemInfo> MyItemInfoList
|
||||
//{
|
||||
// get { return _MyItemInfoList; }
|
||||
// set { _MyItemInfoList = value; }
|
||||
//}
|
||||
public DisplayLibDocEventArgs(string reportTitle, DocumentInfoList libDocList)
|
||||
{
|
||||
_ReportTitle = reportTitle;
|
||||
_libDocList = libDocList;
|
||||
}
|
||||
}
|
||||
public delegate void DisplayLibDocEvent(object sender, DisplayLibDocEventArgs args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user