Exemplo n.º 1
0
		public SaveProfileForm()
		{
			InitializeComponent();
			profileInfo = new ImgProfile();
			DialogResult = DialogResult.Cancel;
			DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);

			if (!Directory.Exists(XCom.SharedSpace.Instance["CustomDir"].ToString()))
				Directory.CreateDirectory(XCom.SharedSpace.Instance["CustomDir"].ToString());

			saveFile.InitialDirectory = XCom.SharedSpace.Instance["CustomDir"].ToString();
			saveFile.FileName = "profile.pvp";

			txtOutDir.Text = saveFile.InitialDirectory + "\\" + saveFile.FileName;

			saveFile.Filter = "Image Profiles|*" + xcProfile.PROFILE_EXT;			

			foreach (string key in ((Dictionary<string, Palette>)SharedSpace.Instance["Palettes"]).Keys)
				cbPalette.Items.Add(key);

			if (cbPalette.Items.Count > 0)
				cbPalette.SelectedIndex = 0;

			restring();

			DialogResult = DialogResult.Cancel;
		}
Exemplo n.º 2
0
        public SaveProfileForm()
        {
            InitializeComponent();
            profileInfo  = new ImgProfile();
            DialogResult = DialogResult.Cancel;
            DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);

            if (!Directory.Exists(XCom.SharedSpace.Instance["CustomDir"].ToString()))
            {
                Directory.CreateDirectory(XCom.SharedSpace.Instance["CustomDir"].ToString());
            }

            saveFile.InitialDirectory = XCom.SharedSpace.Instance["CustomDir"].ToString();
            saveFile.FileName         = "profile.pvp";

            txtOutDir.Text = saveFile.InitialDirectory + "/" + saveFile.FileName;

            saveFile.Filter = "Image Profiles|*" + xcProfile.PROFILE_EXT;

            foreach (string key in ((Dictionary <string, Palette>)SharedSpace.Instance["Palettes"]).Keys)
            {
                cbPalette.Items.Add(key);
            }

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

            restring();

            DialogResult = DialogResult.Cancel;
        }
Exemplo n.º 3
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.º 4
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.º 5
0
        public ModForm()
        {
            InitializeComponent();

            DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);
        }
Exemplo n.º 6
0
		public ModForm()
		{
			InitializeComponent();

			DSShared.Windows.RegistryInfo ri = new DSShared.Windows.RegistryInfo(this);
		}