internal void SendPDF(ListView m) //создание правой клавишей мышки окошка для дублирования полосы внутри выпусков одного дня { if (Startup.issueNum == -1) { IssueNum iWin = new IssueNum(); DialogResult dr = iWin.ShowDialog(); iWin.Dispose(); if (dr == System.Windows.Forms.DialogResult.Cancel) { MessageBox.Show("Невозможно продолжить работу!", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } } if (m.SelectedItems.Count != 0) { for (int f = 0; f < m.SelectedItems.Count; f++) { ListViewItem tempPnum = m.SelectedItems[f]; DrawPlane.SendPageInfo sendClass = new DrawPlane.SendPageInfo((int)m.Tag, Convert.ToInt32(tempPnum.Text)); SendPage wSend = new SendPage(ref sendClass); string result; wSend.Location = Startup.Location(wSend); wSend.Text = "Отправить полосу " + tempPnum.Text.Trim(); string inFolder = CheckSourceFile(sendClass.initialFileName); string archPDF = CheckOldFolder(); if (String.IsNullOrEmpty(archPDF) || String.IsNullOrEmpty(inFolder)) { break; } sendClass.inFolder = System.IO.Path.GetDirectoryName(inFolder); if (wSend.ShowDialog() == DialogResult.OK) { result = Scatter_Files(sendClass); } } } }
internal SendPage(ref DrawPlane.SendPageInfo sendPageInfo) { InitializeComponent(); this.sendPageInfo = sendPageInfo; }