public static void A(ToolTip toolTip) { K1.UserSettings userSettings = K1.A().A(); toolTip.AutoPopDelay = userSettings.ToolTipAutoPopDelay; toolTip.InitialDelay = userSettings.ToolTipInitialDelay; toolTip.ReshowDelay = userSettings.ToolTipReshowDelay; }
public b2(K1 a, W1 <h2> w, I2 i, A2 a2) { b2.A = this; this.A = a; this.A = w; this.A = i; this.A = a2; this.A = a2.A(); if (w.B() > 0) { throw new l1(); } this.A = (b2.A)Delegate.Combine(this.A, new b2.A(this.b)); this.A = (b2.a)Delegate.Combine(this.A, new b2.a(this.a)); w.C(new W1 <h2> .a(this.a)); w.F(new W1 <h2> .a(this.a)); w.B(new W1 <h2> .a(this.A)); w.D(new W1 <h2> .a(this.A)); w.B(new W1 <h2> .B(this.A)); w.E(new W1 <h2> .a(this.B)); i.A(w); i.A(new I2.A(this.A)); this.A.A(w); this.A.A(new V1.A(this.A)); }
private new void A(global::c.a a, bool flag) { if (this.a != flag) { return; } if (a is d.a) { d.a a2 = (d.a)a; if (a2 is d.B && K1.A().A().FollowModuleLinkOnClick&& this.A.l(a2)) { return; } if (!this.A && this.A.L(a2)) { this.A.L().A(this.A, a2); return; } } if (!this.A && a is D.A) { D.A a3 = (D.A)a; this.A.L().A(this.A, a3); } }
private void C() { if (this.A.ConfigFileReadOnly) { return; } string text = K1.b(); try { FileInfo fileInfo = new FileInfo(text); fileInfo.Directory.Create(); using (TextWriter textWriter = new StreamWriter(text)) { if (!this.A.StoreUserConfigData || this.A.UserSettings.SuppressConfigStorageOnce) { this.A.UserSettings = new K1.UserSettings(); } XmlSerializer xmlSerializer = new XmlSerializer(typeof(K1.ConfigSettings)); xmlSerializer.Serialize(textWriter, this.A); } } catch (Exception) { } }
private void D(object obj, EventArgs eventArgs) { if (this.A(true)) { string text = o1.b(this.A.Text); string text2 = o1.b(this.a.Text); bool flag = false; if (this.A.b() != text) { this.A.b(text); flag = true; } if (this.A.E() != text2) { K1.A().A().DefaultAuthorName = text2; this.A.E(text2); flag = true; } if (V.B(this.A.E(), this.A)) { this.A.E(V.B(this.A, null)); this.A.E(this.A); flag = true; } base.DialogResult = (flag ? DialogResult.OK : DialogResult.Cancel); } }
public void A(ToolStripItemCollection toolStripItemCollection) { ToolStripMenuItem toolStripMenuItem = null; foreach (ToolStripItem toolStripItem in toolStripItemCollection) { ToolStripMenuItem toolStripMenuItem2 = toolStripItem as ToolStripMenuItem; if (toolStripMenuItem2 != null && toolStripMenuItem2.Tag == this.B) { toolStripMenuItem = toolStripMenuItem2; break; } } if (toolStripMenuItem != null) { toolStripMenuItem.DropDownItems.Clear(); string[] array = K1.A().A(); for (int i = 0; i < array.Length; i++) { string text = array[i]; toolStripMenuItem.DropDownItems.Add(text, null, new EventHandler(this.B)); } } this.D(); if (toolStripMenuItem != null) { toolStripMenuItem.Enabled = toolStripMenuItem.HasDropDownItems; } }
private void b() { string text = K1.b(); try { FileInfo fileInfo = new FileInfo(text); using (TextReader textReader = new StreamReader(text)) { XmlSerializer xmlSerializer = new XmlSerializer(typeof(K1.ConfigSettings)); K1.ConfigSettings configSettings = (K1.ConfigSettings)xmlSerializer.Deserialize(textReader); if (configSettings.AppKey != j1.A()) { throw new l1(); } if (!configSettings.LoadUserConfigData) { this.A.UserSettings = new K1.UserSettings(); } textReader.Close(); this.A = configSettings; } if (fileInfo.IsReadOnly) { this.A.ConfigFileReadOnly = true; } } catch (Exception) { this.A = new K1.ConfigSettings(); this.A.AppKey = j1.A(); } }
private void F(object obj, EventArgs eventArgs) { base.AcceptButton = (this.A.Checked ? null : this.A); this.A.AcceptsReturn = this.A.Checked; this.A.Focus(); K1.A().A().TextEditDialogLineBreakSwitch = this.A.Checked; }
public A1(e2 e, bool flag) : base(e) { this.A = flag; if (e.A().J() != this.A) { throw new l1(); } this.a = !K1.A().A().DoubleClickAction; }
public w() { this.B(); this.Font = d2.a().Font; H.A(this.A); this.A = K1.A(); this.A(); base.Layout += new LayoutEventHandler(this.A); }
public override void e() { if (K1.A().A().ToolCursorExitOnLeave) { H2 h = this.A.L().A(); this.A(false); this.A.L().A(h); } }
private string A(int num) { return(Path.Combine(K1.B(), string.Concat(new object[] { j1.a(), "-", num, ".log" }))); }
public string[] A(bool flag) { K1.A(this.A().WorkingFiles); string[] result = this.A().WorkingFiles.ToArray(); if (flag) { this.a(); } return(result); }
public void A(string text) { K1.b(text); this.a(text); this.A().RecentFiles.Insert(0, text); while (this.A().RecentFiles.Count > 3) { this.A().RecentFiles.RemoveAt(this.A().RecentFiles.Count - 1); } }
public bool G() { using (IEnumerator <p1> enumerator = this.E().GetEnumerator()) { if (enumerator.MoveNext()) { p1 current = enumerator.Current; return(current.E()); } } return(K1.A().A().PreferredSymbolLanguageEnglish); }
public static void a(l l, string text) { x1 x = new x1(text); string outputFileName = x.a(); XmlWriterSettings settings = j2.A(true); using (XmlWriter xmlWriter = XmlWriter.Create(outputFileName, settings)) { l.B(xmlWriter, new X1()); } x.A(K1.A().A().KeepBackupFiles); }
public static string A() { if (K1.a == null) { K1.a = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName; if (!K1.A().ToLower().EndsWith(".exe")) { throw new l1(); } } return(K1.a); }
private c2(s1 s, Rectangle rectangle) : this() { this.D(); this.Font = d2.a().Font; H.A(this.A); this.A = s; this.A = rectangle; this.D(K1.A().A().TextEditDialogLineBreakSwitch); if (c2.A.HasValue) { base.Size = c2.A.Value; } }
public void A(e2 e, D.A a) { D.A a2 = a; if (K1.A().A().SmartConnectionDClick) { a2 = Q1.A(a); if (a2 != null && a2 != a) { e.L().A(a2); } } this.a(e, a2); }
public static bool A(string text, bool flag, out string ptr) { ptr = null; if (!text.StartsWith(".")) { text = "." + text; } string text2 = text.Substring(1) + "_auto_file"; RegistryKey classesRoot = Registry.ClassesRoot; if (flag) { bool result = true; try { classesRoot.DeleteSubKeyTree(text); } catch (Exception) { result = false; } try { classesRoot.DeleteSubKeyTree(text2); } catch (Exception) { result = false; } K1.a = false; return(result); } string text3 = text2; if (!K1.A(classesRoot, text, "", ref text3)) { return(false); } string text4 = " \"%1\""; string text5 = K1.A() + text4; if (!K1.A(classesRoot, text2 + "\\shell\\open\\command", "", ref text5)) { ptr = text5.Replace(text4, ""); return(false); } K1.a = true; return(true); }
private static int A(string[] array) { char c = global::a.A.A(array); bool flag = j1.A(); try { if (c == 'u') { K1.A(true); string path = K1.B(); n1.A(); Directory.Delete(path, true); int result = 0; return(result); } n1.A(""); K1.A(false); global::a.A.A = array; if (!flag) { throw new ApplicationException(); } n1.a("" + DateTime.Now); if (c == 's') { new d2().a(); } else { new a <r1>().Run(array); } } catch (Exception ex) { if (flag) { n1.A(ex); } int result = 3; return(result); } return(0); }
public i2(string text, h2 h, v1 v) { this.A(); this.Font = d2.a().Font; this.A = h; this.A = v; this.A.MaxLength = 64; this.a.MaxLength = 64; this.A = this.A.BackColor; this.A = this.a.Text; this.A = new Control[] { this.A, this.a }; if (!string.IsNullOrEmpty(text)) { this.Text = text; } this.A.Text = h.b(); this.a.Text = h.E(); this.c.Text = h.f(); this.D.Text = h.E().ToString("dd.MM.yy HH:mm"); this.E.Text = h.e().ToString("dd.MM.yy HH:mm"); this.A = h.E(); this.A.Checked = V.B(this.A, null); this.A.Enabled = !h.e(); this.A.Visible = !K1.A().A().SuppressProjectProtectionSwitch; if (h.E()) { this.A.Text = ""; if (string.IsNullOrEmpty(this.a.Text)) { this.a.Text = K1.A().A().DefaultAuthorName; } this.A.Enabled = false; } }
protected override void OnPaint(PaintEventArgs paintEventArgs) { if (base.DesignMode) { base.OnPaint(paintEventArgs); return; } Graphics graphics = paintEventArgs.Graphics; if (this.B != K1.A().A().UseNarrowTextFont) { this.B = K1.A().A().UseNarrowTextFont; this.f(graphics); base.Invalidate(); return; } if (this.L()) { this.L().A().A(graphics); this.L(false); } if (this.A) { this.A = false; this.k(); } if (this.A != base.AutoScrollPosition) { this.A = base.AutoScrollPosition; this.m(); } this.A = graphics.Transform; graphics.Transform = this.a; B1 b = this.A().G(this, graphics, a1.Screen, false); this.L(b); }
public static bool A(string text, string text2) { if (text == null && text2 == null) { return(true); } if (text == null) { return(false); } if (text2 == null) { return(false); } if (K1.A()) { text = text.ToLower(); text2 = text2.ToLower(); } string fullPath = Path.GetFullPath(text); string fullPath2 = Path.GetFullPath(text2); return(fullPath == fullPath2); }
public A2() { this.b(); ProfessionalColorTable professionalColorTable = new ProfessionalColorTable(); this.A.BackColor = A2.A(professionalColorTable.ToolStripGradientBegin, professionalColorTable.ToolStripGradientEnd); ToolStripPanel toolStripPanel = this.A.RightToolStripPanel; switch (K1.A().A().PapToolBarPlacement) { case G2.South: toolStripPanel = this.A.BottomToolStripPanel; break; case G2.West: toolStripPanel = this.A.LeftToolStripPanel; break; case G2.North: toolStripPanel = this.A.TopToolStripPanel; break; } toolStripPanel.Controls.Add(this.A); }
public virtual void b(XmlReader xmlReader, w1 w) { if (w == null) { throw new l1(); } this.A = new Z1("0.0.0.0"); this.B = null; this.b = null; this.A = false; if (xmlReader["GUID"] != "2FB25471-B62C-4EE6-BD43-F819C095ACF8") { throw new M1(); } if (xmlReader["FORMAT"] != "0000") { throw new M1(); } if (xmlReader["APP_VERSION"] != null) { this.A = new Z1(xmlReader["APP_VERSION"]); } w.A = this.A; if (Z1.c(this.A(), new Z1("2.1.0.2"))) { this.A = true; this.B = xmlReader["CHECKSUM"]; if (Z1.a(this.A(), new Z1("2.1.0.2"))) { this.B = o.A(ulong.Parse(this.B)); } } xmlReader.ReadStartElement("FRAME"); this.A = new h2(xmlReader, w); if (this.A) { X1 x = new X1(); byte[] array = j2.A(this.A, x); this.b = new o(array).ToString(); if (this.b != this.B) { if (Z1.b(this.A, j1.A())) { throw new N1(this.A, j1.A()); } if (K1.A().A().DefaultAuthorName != "PAPREPAIR") { throw new m1(); } } } using (IEnumerator <p1> enumerator = this.A().E().GetEnumerator()) { while (enumerator.MoveNext()) { Q1 q = (Q1)enumerator.Current; q.A(this.A); } } xmlReader.ReadEndElement(); if (!xmlReader.EOF) { throw new M1(); } }
private void b(object obj, ControlEventArgs controlEventArgs) { K1.A().A().PapToolBarPlacement = G2.North; }
private void B(object obj, ControlEventArgs controlEventArgs) { K1.A().A().PapToolBarPlacement = G2.West; }
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 void B() { this.A = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(w)); this.A = new CheckBox(); this.a = new CheckBox(); this.A = new Button(); this.a = new Button(); this.B = new CheckBox(); this.b = new CheckBox(); this.C = new CheckBox(); this.c = new CheckBox(); this.A = new ToolTip(this.A); this.D = new CheckBox(); this.d = new CheckBox(); base.SuspendLayout(); this.A.AutoSize = true; this.A.Location = new Point(12, 12); this.A.Name = "cbMultipleProjects"; this.A.Size = new Size(234, 17); this.A.TabIndex = 1; this.A.Text = "Mehrere Projekte gleichzeitig öffnen möglich"; this.A.SetToolTip(this.A, "Beim Öffnen oder Anlegen eines Projektes bleibt das vorher aktuelle Projekt weiterhin geöffnet"); this.A.UseVisualStyleBackColor = true; this.A.Click += new EventHandler(this.A); this.a.AutoSize = true; this.a.Location = new Point(12, 68); this.a.Name = "cbKeepBackupFiles"; this.a.Size = new Size(300, 17); this.a.TabIndex = 3; this.a.Text = "Sicherungsdatein beim Speichern von Projekten erzeugen"; this.A.SetToolTip(this.a, "Beim Speichern eines Dokumentes bleibt die ursprüngliche Version als Sicherungsdatei erhalten"); this.a.UseVisualStyleBackColor = true; this.a.Click += new EventHandler(this.A); this.A.DialogResult = DialogResult.Cancel; this.A.Location = new Point(277, 240); this.A.Name = "btnClose"; this.A.Size = new Size(75, 23); this.A.TabIndex = 0; this.A.Text = "Schließen"; this.A.UseVisualStyleBackColor = true; this.A.Click += new EventHandler(this.B); this.a.Location = new Point(12, 240); this.a.Name = "btnResetUserSettings"; this.a.Size = new Size(202, 23); this.a.TabIndex = 9; this.a.Text = "Benutzereinstellungen zurücksetzen"; this.A.SetToolTip(this.a, "Alle perönlichen Einstellungen werden auf Standardwerte zurückgesetzt"); this.a.UseVisualStyleBackColor = true; this.a.Click += new EventHandler(this.a); this.B.AutoSize = true; this.B.Location = new Point(12, 35); this.B.Name = "cbMultipleTutorials"; this.B.Size = new Size(235, 17); this.B.TabIndex = 2; this.B.Text = "Mehrere Tutorials gleichzeitig öffnen möglich"; this.A.SetToolTip(this.B, "Beim Öffnen eines Tutorials bleibt das vorher aktuelle Tutorial weiterhin geöffnet"); this.B.UseVisualStyleBackColor = true; this.B.Click += new EventHandler(this.A); this.b.AutoSize = true; this.b.Location = new Point(12, 203); this.b.Name = "cbSmartConnDClick"; this.b.Size = new Size(330, 17); this.b.TabIndex = 8; this.b.Text = "Links-Klick auf Verbindungsabschnitt sucht Abschnitt am Symbol"; this.A.SetToolTip(this.b, "Verfolgt eine Verbindungslinie bis zum Quellsymbol und selektiert dort den betreffenden Verbindungsabschnitt"); this.b.UseVisualStyleBackColor = true; this.b.Click += new EventHandler(this.A); this.C.AutoSize = true; this.C.Location = new Point(12, 101); this.C.Name = "cbPrefSymlLangEnglish"; this.C.Size = new Size(215, 17); this.C.TabIndex = 4; this.C.Text = "Bevorzugte Symboltextsprache Englisch"; this.A.SetToolTip(this.C, "Sieht Englisch als Standardeinstellung für die festen Symboltexte von neu erstellten Diagrammen vor"); this.C.UseVisualStyleBackColor = true; this.C.Click += new EventHandler(this.A); this.c.AutoSize = true; this.c.Location = new Point(12, 180); this.c.Name = "cbToolCursorExitOnLeave"; this.c.Size = new Size(313, 17); this.c.TabIndex = 7; this.c.Text = "Einfügemodus beenden wenn Mauszeiger Diagramm verlässt"; this.A.SetToolTip(this.c, "Der Einfügemodus beim Einfügen von Symbolen oder aus der Zwischenablage wird verlassen, wenn der Mauszeiger das Diagramm verlässt"); this.c.UseVisualStyleBackColor = true; this.c.Click += new EventHandler(this.A); this.D.AutoSize = true; this.D.Location = new Point(12, 124); this.D.Name = "cbSeparatePrintPageScaling"; this.D.Size = new Size(177, 17); this.D.TabIndex = 5; this.D.Text = "Druckseiten individuell skalieren"; this.A.SetToolTip(this.D, "Führt zu unterschiedlichen Maßstäben der einzelnen Druckseiten"); this.D.UseVisualStyleBackColor = true; this.D.Click += new EventHandler(this.A); this.D.CheckedChanged += new EventHandler(this.A); this.d.AutoSize = true; this.d.Location = new Point(12, 147); this.d.Name = "cbUseNarrowTextFont"; this.d.Size = new Size(213, 17); this.d.TabIndex = 6; this.d.Text = "Schmale Diagrammschriftart verwenden"; this.A.SetToolTip(this.d, "Verwendet eine schmale Schriftart für die Diagrammsymbole"); this.d.UseVisualStyleBackColor = true; this.d.Click += new EventHandler(this.A); base.AcceptButton = this.A; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.A; base.ClientSize = new Size(364, 275); base.ControlBox = false; base.Controls.Add(this.D); base.Controls.Add(this.C); base.Controls.Add(this.A); base.Controls.Add(this.a); base.Controls.Add(this.c); base.Controls.Add(this.d); base.Controls.Add(this.b); base.Controls.Add(this.a); base.Controls.Add(this.B); base.Controls.Add(this.A); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "SettingsDialog"; base.ShowInTaskbar = false; this.Text = "Einstellungen"; base.FormClosed += new FormClosedEventHandler(this.A); base.ResumeLayout(false); base.PerformLayout(); }