Beispiel #1
0
        private void ChangePrinter()
        {
            CourentPrinter.BorderThickness = new Thickness(1, 1, 1, 1);
            CourentPrinter.BorderBrush     = new SolidColorBrush(Color.FromRgb(0x11, 0x11, 0x11));
            queue.Enqueue(CourentPrinter);


            CourentPrinter = queue.Dequeue();
            CourentPrinter.BorderThickness = new Thickness(4, 4, 4, 4);
            CourentPrinter.BorderBrush     = new SolidColorBrush(Color.FromRgb(0x00, 0xCE, 0x01));
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            queue = new Queue <MyUserControl>();
            foreach (Control item in printersGrid.Children)
            {
                if (item is MyUserControl)
                {
                    MyUserControl printer = item as MyUserControl;
                    printer.InkEmpty    += new EventHandler <PrinterEventArgs>(UseDoInkEmpty);
                    printer.PageMissing += new EventHandler <PrinterEventArgs>(UseDoPageMissing);
                    queue.Enqueue(printer);
                }
            }
            CourentPrinter = queue.Dequeue();
            CourentPrinter.BorderThickness = new Thickness(4, 4, 4, 4);
            CourentPrinter.BorderBrush     = new SolidColorBrush(Color.FromRgb(0x00, 0xCE, 0x01));
            return;
        }