a08da0217d
- Implemented PrintQueueService with job counting and snapshot retrieval. - Created Form1 as the main entry point for the tray application. - Developed ConfigurationForm for managing printer configurations and document types. - Added models for printer configuration, queue status requests, and responses. - Established ConfigurationService for loading and saving printer configurations. - Introduced ServiceClient for IPC communication with the print service. - Built TrayApplicationContext for managing the system tray icon and status updates. - Added TODO.md for tracking remaining work and future enhancements.
30 lines
805 B
C#
30 lines
805 B
C#
namespace PrintServiceTray.Models;
|
|
|
|
/// <summary>
|
|
/// Configuration for all document types
|
|
/// </summary>
|
|
public class PrinterConfiguration
|
|
{
|
|
public Dictionary<string, DocumentTypeConfig> DocumentTypes { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Configuration for a single document type
|
|
/// </summary>
|
|
public class DocumentTypeConfig
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public List<PageConfig> Pages { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Configuration for a single page
|
|
/// </summary>
|
|
public class PageConfig
|
|
{
|
|
public int PageNumber { get; set; }
|
|
public string PrinterName { get; set; } = string.Empty;
|
|
public int TrayNumber { get; set; }
|
|
public string? TrayLabel { get; set; } // Optional: "Pink Paper", "Green Paper", etc.
|
|
}
|