private void butoon_generate_field_Click(object sender, EventArgs e) { try { for (int i = 0; i < workspace_ob.field_ex.width; i++) { for (int j = 0; j < workspace_ob.field_ex.heigth; j++) { workspace_ob.field_ex.str_fild[i][j] = ""; } } GenerateStrings_of_Numbers(); this.AllowDrop = false; Pdf pdf = new Pdf(); Pdf.workspace_ob = workspace_ob; pdf.ShowDialog(); Refresh(); this.AllowDrop = true; } catch { MessageBox.Show("Generate PDF one more time."); } }
private void generatePDFToolStripMenuItem_Click(object sender, EventArgs e) { GenerateStrings_of_Numbers(); this.AllowDrop = false; Pdf pdf = new Pdf(); Pdf.workspace_ob = workspace_ob; pdf.ShowDialog(); Refresh(); this.AllowDrop = true; }
private void generatePDFToolStripMenuItem_Click(object sender, EventArgs e) { Pdf pdf = new Pdf(); Pdf.workspace_ob = workspace_ob; pdf.ShowDialog(); }