public F1(h2 h, s1 s, string text) : base(h, text) { this.A = s.A().A(); if (s is T1) { this.a = (this.A = new K((T1)s)); } }
public I1(h2 h, s1 s, p1 p, global::c.a a, string text) : base(h, p, text) { if (s != null && s.A() != p) { throw new l1(); } this.A = a.A(); this.A = a.c(); }
private void A(s1 s) { this.A(); if (s != null) { this.A.A(s.A()); } this.a(); }
public void A(s1 s) { if (this.A.Contains(s)) { throw new l1(); } if (this.A() != null && s.A() != this.A()) { throw new l1(); } this.A.Add(s); }
private void A(s1 s, bool flag) { if (s != null) { TabPage tabPage = null; if (this.A.TryGetValue(s.A(), out tabPage)) { int num = this.A.e() ? 2 : 0; tabPage.ImageIndex = (flag ? (1 + num) : -1); } } }
private void A(object obj, EventArgs eventArgs) { string text = obj.ToString().Split(new char[] { '.' })[0]; if (this.A.A(this.A).A(this.A, text)) { s1 s = b2.A().A(); if (s != null && s.A() == this.A) { s.C(); } } }
private void A(object obj, PrintPageEventArgs printPageEventArgs) { Graphics graphics = printPageEventArgs.Graphics; p1 p = this.A.E().B(this.A); s1 s = this.A[this.A]; s.f(graphics); graphics.DrawRectangle(new Pen(Color.Black), printPageEventArgs.MarginBounds); bool flag = p.E(); string str = flag ? "Project" : "Projekt"; string text = flag ? "File" : "Datei"; string text2 = flag ? "Author" : "Ersteller"; string text3 = flag ? "Diagram" : "Diagramm"; string text4 = flag ? "Created" : "Erstellt"; string text5 = flag ? "Modified" : "Geändert"; string text6 = str + ": " + this.A.b(); if (!string.IsNullOrEmpty(this.A.f())) { string text7 = text6; text6 = string.Concat(new string[] { text7, "\n", text, ": ", Path.GetFileName(this.A.f()) }); } if (!string.IsNullOrEmpty(this.A.E())) { string text8 = text6; text6 = string.Concat(new string[] { text8, "\n", text2, ": ", this.A.E() }); } string text9 = text6; text6 = string.Concat(new string[] { text9, "\n", text3, ": ", s.A().b() }); string text10 = p.J().ToString("dd.MM.yy"); if (!string.IsNullOrEmpty(text10)) { string text11 = text6; text6 = string.Concat(new string[] { text11, "\n", text4, ": ", text10 }); } string text12 = p.j().ToString("dd.MM.yy"); if (!string.IsNullOrEmpty(text12)) { string text13 = text6; text6 = string.Concat(new string[] { text13, " ", text5, ": ", text12 }); } Font font = global::c.C.A(); StringFormat stringFormat = new StringFormat(); SizeF sizeF = graphics.MeasureString(text6, font, new Point(0, 0), stringFormat); Rectangle rect = new Rectangle(printPageEventArgs.MarginBounds.Location, sizeF.ToSize()); int num = 3; rect.Width += num * 2; rect.Height += num * 2; rect.X += printPageEventArgs.MarginBounds.Width - rect.Width; rect.Y += printPageEventArgs.MarginBounds.Height - rect.Height; graphics.DrawRectangle(new Pen(Color.Black), rect); Point p2 = new Point(rect.X + num, rect.Y + num); graphics.DrawString(text6, font, global::c.C.A, p2); Rectangle marginBounds = printPageEventArgs.MarginBounds; marginBounds.Height -= rect.Height; if (this.A == 0f && !K1.A().A().SeparatePrintPageScaling) { this.A = 3.40282347E+38f; s1[] array = this.A; for (int i = 0; i < array.Length; i++) { s1 s2 = array[i]; float val = 0f; Point point; s2.g(marginBounds, ref val, out point, false); this.A = Math.Min(this.A, val); } } B1 b = p.G(s, graphics, a1.Paper, false); s.H(marginBounds, this.A, b); printPageEventArgs.HasMorePages = (++this.A <= this.a); }
private static void A(s1 s) { bool flag = true; Rectangle rectangle2; bool flag2; bool flag3; using (a2 a = new a2()) { Rectangle rectangle = s.G(flag); float num = 1.5f; a.A(new Size((int)((float)rectangle.Width * num), (int)((float)rectangle.Height * num))); a.A(false); if (a.ShowDialog() != DialogResult.OK) { return; } rectangle2 = new Rectangle(0, 0, a.A().Width, a.A().Height); flag2 = a.A(); flag3 = a.a(); } object[][] array = new object[][] { new object[] { ImageFormat.Png, "Portable Network Graphics (*.png)", "*.png" }, new object[] { ImageFormat.Bmp, "Bitmap (*.bmp)", "*.bmp" }, new object[] { ImageFormat.Tiff, "Tag Image File (*.tif)", "*.tif" }, new object[] { ImageFormat.Jpeg, "Joint Photographic Experts Group (*.jpg)", "*.jpg" } }; if (flag2) { array = new object[][] { array[0], array[2] }; } string text = ""; object[][] array2 = array; for (int i = 0; i < array2.Length; i++) { object[] array3 = array2[i]; if (text.Length > 0) { text += "|"; } object obj = text; text = string.Concat(new object[] { obj, "", array3[1], "|", array3[2] }); } int num2 = 0; string text2 = y1.A(s.A().b(), 64); using (SaveFileDialog saveFileDialog = new SaveFileDialog()) { saveFileDialog.Filter = text; saveFileDialog.FilterIndex = num2 + 1; saveFileDialog.RestoreDirectory = true; saveFileDialog.InitialDirectory = K1.A().A().RecentPicturePath; saveFileDialog.FileName = text2; if (saveFileDialog.ShowDialog() == DialogResult.OK) { num2 = saveFileDialog.FilterIndex - 1; text2 = saveFileDialog.FileName; K1.A().A().RecentPicturePath = Path.GetDirectoryName(saveFileDialog.FileName); } } Bitmap bitmap = new Bitmap(rectangle2.Width, rectangle2.Height); Color white = Color.White; Graphics graphics = Graphics.FromImage(bitmap); if (!flag2) { graphics.FillRectangle(new SolidBrush(white), graphics.ClipBounds); } B1 b = s.A().G(s, graphics, a1.Picture, flag2); s.H(rectangle2, 0f, b); bitmap.Save(text2, (ImageFormat)array[num2][0]); if (flag3) { try { Process.Start(text2); } catch (Exception) { } } }