示例#1
0
 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;
 }
示例#2
0
        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;
                }
            }
        }
示例#3
0
		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;
		}
示例#4
0
			public cbItem(XCom.Interfaces.IXCImageFile itm, string text)
			{
				this.itm = itm;
				this.text = text;
			}
示例#5
0
 public cbItem(XCom.Interfaces.IXCImageFile itm, string text)
 {
     this.itm  = itm;
     this.text = text;
 }