コード例 #1
0
ファイル: libControls.cs プロジェクト: cmschueths/DVDScribe
            public override void LauchEditor(Control c)
            {
                pHide = true;
                if (this.FilePath == "")
                {
                    this.Editor = new ImageEdit();
                }
                else
                {
                    this.Editor = new ImageEdit(this.FilePath, new Size(this.Dimention.Width + 2, this.Dimention.Height + 2));
                }
                c.Controls.Add(Editor);
                Point NewLocation = new Point(this.Location.X - 1, this.Location.Y - 1);

                Editor.Location = NewLocation;
                editorVisible   = true;
            }
コード例 #2
0
 public override void LaunchEditor(Control c)
 {
     pHide = true;
     if (this.FilePath == "")
     {
         this.Editor = new ImageEdit();
     }
     else
     {
         this.Editor = new ImageEdit(this.FilePath,new Size(this.Dimention.Width + 2,this.Dimention.Height + 2));
     }
     c.Parent.Controls.Add(Editor);
     Point NewLocation = new Point(c.Location.X + this.Location.X - 1, c.Location.Y + this.Location.Y - 1);
     Editor.Location = NewLocation;
     Editor.BringToFront();
     editorVisible = true;
 }