コード例 #1
0
ファイル: OpenCustomForm.cs プロジェクト: ratzlaff/XCom-tools
 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
ファイル: BmpForm.cs プロジェクト: ratzlaff/XCom-tools
        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
ファイル: BmpForm.cs プロジェクト: pmprog/OpenXCOM.Tools
			public cbItem(XCom.Interfaces.IXCImageFile itm, string text)
			{
				this.itm = itm;
				this.text = text;
			}
コード例 #5
0
ファイル: BmpForm.cs プロジェクト: ratzlaff/XCom-tools
 public cbItem(XCom.Interfaces.IXCImageFile itm, string text)
 {
     this.itm  = itm;
     this.text = text;
 }