Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public static void A(ToolTip toolTip)
 {
     K1.UserSettings userSettings = K1.A().A();
     toolTip.AutoPopDelay = userSettings.ToolTipAutoPopDelay;
     toolTip.InitialDelay = userSettings.ToolTipInitialDelay;
     toolTip.ReshowDelay  = userSettings.ToolTipReshowDelay;
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 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);
     }
 }
Ejemplo n.º 5
0
        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;
            }
        }
Ejemplo n.º 6
0
 public override void e()
 {
     if (K1.A().A().ToolCursorExitOnLeave)
     {
         H2 h = this.A.L().A();
         this.A(false);
         this.A.L().A(h);
     }
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 public string[] A(bool flag)
 {
     K1.A(this.A().WorkingFiles);
     string[] result = this.A().WorkingFiles.ToArray();
     if (flag)
     {
         this.a();
     }
     return(result);
 }
Ejemplo n.º 10
0
 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);
 }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
 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);
 }
Ejemplo n.º 13
0
 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;
     }
 }
Ejemplo n.º 14
0
 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);
 }
Ejemplo n.º 15
0
        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);
        }
Ejemplo n.º 16
0
        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);
        }
Ejemplo n.º 17
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;
     }
 }
Ejemplo n.º 18
0
        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);
        }
Ejemplo n.º 19
0
        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);
        }
Ejemplo n.º 20
0
        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);
        }
Ejemplo n.º 21
0
        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)
                {
                }
            }
        }
Ejemplo n.º 22
0
 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();
     }
 }
Ejemplo n.º 23
0
 private bool A()
 {
     K1.A().A().EnableDiagramCheck = false;
     return(false);
 }
Ejemplo n.º 24
0
 private void b(object obj, ControlEventArgs controlEventArgs)
 {
     K1.A().A().PapToolBarPlacement = G2.North;
 }
Ejemplo n.º 25
0
 private void B(object obj, ControlEventArgs controlEventArgs)
 {
     K1.A().A().PapToolBarPlacement = G2.West;
 }
Ejemplo n.º 26
0
 public string[] A()
 {
     K1.A(this.A().RecentFiles);
     return(this.A().RecentFiles.ToArray());
 }
Ejemplo n.º 27
0
 public static bool A(bool flag)
 {
     return(K1.A(".pap", flag, out K1.b) && K1.A(".pap-backup", flag, out K1.b));
 }
Ejemplo n.º 28
0
        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);
        }