private void Print_PrintChanged_(PrintedEventArgs a) { if (InvokeRequired) { SetLabelTextFeedBack_ d = new SetLabelTextFeedBack_(Print_PrintChanged_); Invoke(d, new object[] { a }); } else { progressBar1.Maximum = (int)a.CountTotal; progressBar1.Value = (int)a.CountDone; label_complete_percentage.Text = string.Format("??????????????????: {0:0.##}%", ((float)a.CountDone / (float)a.CountTotal * 100)); label_complete_number.Text = "????????????????: " + a.CountDone + '\\' + a.CountTotal; pictureBox2.Image = print.ProcessBmp; } }
private static void Manager_Printed(object sender, PrintedEventArgs args) { System.Console.WriteLine(args.Text); }
private void Print_PrintChanged(object sender, PrintedEventArgs e) { Print_PrintChanged_(e); }
private void PrintVM_PrintFinished(object sender, PrintedEventArgs e) { PrintResult = e.PrintResult; }