Exemplo n.º 1
0
        public OpenCustomForm(string directory, string file)
        {
            this.directory = directory;
            this.file      = file;
            InitializeComponent();

            //Console.WriteLine("File: "+file);

            DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);
            ri.AddProperty("WidVal");
            ri.AddProperty("HeiVal");

            space = XCom.SharedSpace.Instance;

            foreach (XCom.Interfaces.IXCImageFile xcf in space.GetImageModList())
            {
                if (xcf.FileOptions[XCom.Interfaces.IXCImageFile.Filter.Custom])
                {
                    cbTypes.Items.Add(new BmpForm.cbItem(xcf, xcf.ExplorerDescription));
                }
            }

            if (cbTypes.Items.Count > 0)
            {
                cbTypes.SelectedIndex = 0;
            }
        }
Exemplo n.º 2
0
		public OpenCustomForm(string directory,string file)
		{
			this.directory=directory;
			this.file=file;
			InitializeComponent();

			//Console.WriteLine("File: "+file);

			DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);
			ri.AddProperty("WidVal");
			ri.AddProperty("HeiVal");

			space = XCom.SharedSpace.Instance;

			foreach (XCom.Interfaces.IXCImageFile xcf in space.GetImageModList())
				if (xcf.FileOptions[XCom.Interfaces.IXCImageFile.Filter.Custom])
					cbTypes.Items.Add(new BmpForm.cbItem(xcf, xcf.ExplorerDescription));

			if (cbTypes.Items.Count > 0)
				cbTypes.SelectedIndex = 0;
		}