protected virtual void OnWindowSize(SetSizeEventArgs e) { if (this.WindowSize != null) // nothing subscribed to this event { this.WindowSize(this, e); } }
protected virtual void OnWindowSize(SetSizeEventArgs e) { if(this.WindowSize != null) { this.WindowSize(this, e); } }
private void HandleSize(object sender, SetSizeEventArgs e) // called by: SetWindowSize { int w = e.nWidth; int h = e.nHeight; int ex = e.exifType; this.Width = w; this.Height = h; bnExif.Image = imageList1.Images[ex]; //Debug.WriteLine("set size W / H: {0}/{1}", w, h); }