public TryDecodeEventArgs(int width, int height, string directory, string file, XCom.Interfaces.IXCImageFile itm) { this.itm = itm; this.file = file; this.width = width; this.height = height; this.directory = directory; }
private void guess() { if (bmp != null && cbTypes.Items.Count > 0) { cbItem cbSel = null; foreach (cbItem cb in cbTypes.Items) { XCom.Interfaces.IXCImageFile xcf = cb.itm; if ((bmp.Width + 1) % (xcf.ImageSize.Width + 1) == 0 && (bmp.Height + 1) % (xcf.ImageSize.Height + 1) == 0) { cbSel = cb; break; } } if (cbSel != null) { cbTypes.SelectedItem = cbSel; } } }
public TryDecodeEventArgs(int width, int height, string directory, string file, XCom.Interfaces.IXCImageFile itm) { this.itm=itm; this.file=file; this.width=width; this.height=height; this.directory=directory; }
public cbItem(XCom.Interfaces.IXCImageFile itm, string text) { this.itm = itm; this.text = text; }