protected virtual void OnImageFormatClick(object sender, ImageFormatEventArgs e) { if (ImageFormatClick != null) { ImageFormatClick(sender, e); } }
private void menuItem_Click(object sender, EventArgs e) { ImageFormatEventArgs args1 = new ImageFormatEventArgs(); args1.ClickedMenuItem = (MenuItem)sender; args1.ImageOutputFormat = this; this.ImageFormatClick.Invoke(sender, args1); }
protected virtual void MenuClick(object sender, EventArgs e) { ImageFormatEventArgs formatEvents = new ImageFormatEventArgs(); formatEvents.ClickedMenuItem = (MenuItem)sender; formatEvents.ImageOutputFormat = this; OnImageFormatClick(sender, formatEvents); }
private void ImageQualityMenuHandler(object sender, EventArgs e) { MenuItem item = (MenuItem) sender; imageQuality = long.Parse(item.Text, CultureInfo.InvariantCulture); ImageFormatEventArgs formatEvents = new ImageFormatEventArgs(); formatEvents.ClickedMenuItem = item; formatEvents.ImageOutputFormat = this; OnImageFormatClick(sender, formatEvents); }
private void HandleImageFormatClick(object sender, ImageFormatEventArgs e) { ClearImageFormatChecks(outputMenuItem); e.ClickedMenuItem.Checked = true; imageCapture.ImageFormat = e.ImageOutputFormat; outputDescription = e.ImageOutputFormat.Description; notifyIcon.Text = "Cropper\nOutput: " + outputDescription; PaintLayeredWindow(); }
protected virtual void OnImageFormatClick(object sender, ImageFormatEventArgs e) { ImageFormatClickEventHandler handler = ImageFormatClick; handler?.Invoke(sender, e); }
protected override void OnImageFormatClick(object sender, ImageFormatEventArgs e) { Tracing.Trace("TwitPic::MenuClick"); base.OnImageFormatClick(sender, e); }
protected virtual void OnImageFormatClick(object sender, ImageFormatEventArgs e) { if (ImageFormatClick != null) ImageFormatClick(sender, e); }