コード例 #1
0
ファイル: DUIGraphics.cs プロジェクト: scjjcs/DirectUI
        public override bool Equals(object obj)
        {
            DUIGraphics dUIGraphics = obj as DUIGraphics;

            if (dUIGraphics == null)
            {
                return(false);
            }
            else
            {
                return(this.iDUIGraphics.Equals(dUIGraphics.iDUIGraphics));
            }
        }
コード例 #2
0
 // 摘要:
 //     用指定的图形和剪辑矩形框来初始化 System.Windows.Forms.PaintEventArgs 类的新实例。
 //
 // 参数:
 //   graphics:
 //     用于绘制该项的 D2DGraphics。
 //
 //   clipRect:
 //     表示绘画所在的矩形的 System.Drawing.Rectangle。
 public DUIPaintEventArgs(DUIGraphics graphics, RectangleF clipRect)
 {
     this.graphics = graphics;
     this.clipRect = clipRect;
 }