コード例 #1
0
		private void checkBox9_CheckedChanged(object sender, EventArgs e)
		{
#if true//2018.08.21
			Form21.check_fst(this.comboBox10, this.checkBox9.Checked);
			Form21.check_fst(this.comboBox8 , this.checkBox9.Checked);
			Form21.check_fst(this.comboBox12, this.checkBox9.Checked);
#else

			if (this.checkBox9.Checked) {
				if (this.comboBox8.FindString("深度合成") < 0) {
					this.comboBox8.Items.Insert(0, "深度合成");
					this.comboBox8.SelectedIndex = 0;
				}
			}
			else {
				if (this.comboBox8.FindString("深度合成") >= 0) {
					this.comboBox8.Items.Remove("深度合成");
					if (this.comboBox8.SelectedIndex < 0) {
						this.comboBox8.SelectedIndex = this.comboBox8.FindString("ZP00D");
					}
				}
			}
#endif
		}
コード例 #2
0
		private void check_z10(string path)
		{
			string[] files_10;
			string[] zpos = null;
#if true//2018.11.13(毛髪中心AF)
			m_zpos.Clear();
			m_kpos.Clear();
#endif
#if true//2019.04.01(表面赤外省略)
			m_ipos.Clear();
#endif
			//
#if true//2018.08.13
			files_10 = new string[] {};
			zpos = new string[] {};
			try {
#endif
#if true //2018.08.21
				this.comboBox8.Items.Clear();
				this.comboBox8.Enabled = false;
				this.comboBox10.Items.Clear();
				this.comboBox12.Items.Clear();
				this.comboBox10.Enabled = false;
				this.comboBox12.Enabled = false;
#endif
#if true//2019.04.01(表面赤外省略)
				if (!get_zpos(path, "CR", out zpos)) {
					if (!get_zpos(path, "CT", out zpos)) {
						return;
					}
				}
				string[] ipos = null;
				if (get_zpos(path, "IR", out ipos)) {
					for (int i = 0; i < ipos.Length; i++) {
						m_ipos.Add(ipos[i]);
					}
				}
#else
				if (true) {
					zpos = System.IO.Directory.GetFiles(path, "0CR_00_*.*");
					if (zpos.Length <= 0) {
					zpos = System.IO.Directory.GetFiles(path, "0CT_00_*.*");
					}
#if true//2018.10.10(毛髪径算出・改造)
					if (zpos.Length <= 0) {
						for (int i = 1; i <= 23; i++) {
							string NS = i.ToString();
							zpos = System.IO.Directory.GetFiles(path, NS + "CR_00_*.*");
							if (zpos.Length > 0) {
								break;
							}
							zpos = System.IO.Directory.GetFiles(path, NS + "CT_00_*.*");
							if (zpos.Length > 0) {
								break;
							}
						}
					}
#endif
					if (zpos.Length <= 0) {
						//古い形式のファイルもしくはフォルダが空
#if false//2018.08.21
						this.comboBox8.Items.Clear();
						this.comboBox8.Enabled = false;
#endif
						return;
					}
					for (int i = 0; i < zpos.Length; i++) {
						string tmp = System.IO.Path.GetFileNameWithoutExtension(zpos[i]);
						zpos[i] = tmp.Substring(7);
					}
				}
				//files_10 = System.IO.Directory.GetFiles(path, "*_Z10.*");
				files_10 = System.IO.Directory.GetFiles(path, "*_ZP00D.*");
				files_10 = Form21.cut_IZ(files_10);

				if (files_10.Length <= 0) {
					//古い形式のファイルもしくはフォルダが空
#if false//2018.08.21
					this.comboBox8.Items.Clear();
					this.comboBox8.Enabled = false;
#endif
					return;
				}
#endif
#if true//2018.08.13
			}
			catch (Exception ex) {
				G.mlog(ex.Message);
			}
#endif
			if (true) {
#if false//2018.08.21
				this.comboBox8.Items.Clear();
				this.comboBox8.Enabled = true;
#endif
#if true //2018.08.21
				this.comboBox8.Enabled = true;
				this.comboBox10.Enabled = true;
				this.comboBox12.Enabled = true;
#endif
#if true//2019.08.26(その他修正)
				if (zpos != null) {
#endif
#if true//2018.11.13(毛髪中心AF)
				for (int i = 0; i < zpos.Length; i++) {
					switch (zpos[i][0]) {
						case 'Z':
						case 'z':
							m_zpos.Add(zpos[i]);
							break;
						case 'K':
						case 'k':
							m_kpos.Add(zpos[i]);
							break;
					}
				}
#if true//2019.08.26(その他修正)
				}
#endif
				for (int i = 0; i < m_zpos.Count; i++) {
					//if (this.comboBox18.SelectedIndex == 0 || this.comboBox18.SelectedIndex == 2) {
						this.comboBox10.Items.Add(m_zpos[i]);
					//}
					//if (this.comboBox19.SelectedIndex == 0 || this.comboBox19.SelectedIndex == 2) {
						this.comboBox8.Items.Add(m_zpos[i]);
					//}
#if false//2019.04.01(表面赤外省略)
					//if (this.comboBox20.SelectedIndex == 0 || this.comboBox20.SelectedIndex == 2) {
						this.comboBox12.Items.Add(m_zpos[i]);
					//}
#endif
				}
				for (int i = 0; i < m_kpos.Count; i++) {
					//if (this.comboBox18.SelectedIndex == 1 || this.comboBox18.SelectedIndex == 2) {
						this.comboBox10.Items.Add(m_kpos[i]);
					//}
					//if (this.comboBox19.SelectedIndex == 1 || this.comboBox19.SelectedIndex == 2) {
						this.comboBox8.Items.Add(m_kpos[i]);
					//}
#if false//2019.04.01(表面赤外省略)
					//if (this.comboBox20.SelectedIndex == 1 || this.comboBox20.SelectedIndex == 2) {
						this.comboBox12.Items.Add(m_kpos[i]);
					//}
#endif
				}
#if true//2019.04.01(表面赤外省略)
				for (int i = 0; i < m_ipos.Count; i++) {
					this.comboBox12.Items.Add(m_ipos[i]);
				}
#endif
#else
				if (true) {
					for (int i = 0; i < zpos.Length; i++) {
						this.comboBox8.Items.Add(zpos[i]);
#if true //2018.08.21
						this.comboBox10.Items.Add(zpos[i]);
						this.comboBox12.Items.Add(zpos[i]);
#endif
					}
				}
#endif
				if (G.SS.MOZ_FST_CK00) {
					this.comboBox8.Items.Insert(0, "深度合成");
#if true //2018.08.21
					this.comboBox10.Items.Insert(0, "深度合成");
#if false//2019.04.01(表面赤外省略)
					this.comboBox12.Items.Insert(0, "深度合成");
#endif
#endif
				}
#if false//2018.08.21
				this.comboBox8.SelectedIndex = this.comboBox8.FindString(G.SS.MOZ_CND_ZPOS);

				int idx = this.comboBox8.FindString(G.SS.MOZ_CND_ZPOS);
				if (idx < 0) {
					this.comboBox8.SelectedIndex = this.comboBox8.FindString("ZP00D");
				}
				else {
					this.comboBox8.SelectedIndex = idx;
				}
#else
				Form21.select_default(this.comboBox10, G.SS.MOZ_CND_ZPCT);
				Form21.select_default(this.comboBox8 , G.SS.MOZ_CND_ZPHL);
				Form21.select_default(this.comboBox12, G.SS.MOZ_CND_ZPML);
#endif
			}
		}