パラメータ設定用ダイアログ。
Inheritance: System.Windows.Forms.Form
Exemple #1
0
        }        //LineArtForm_Closed

        /// <summary>
        /// コンテキストメニューの「設定」が押されたときのイベントハンドラ。
        /// 設定用ダイアログを表示し、設定値の更新を行う。
        /// </summary>
        private void ParameterSetting(object sender, System.EventArgs e)
        {
            SettingForm form = new SettingForm();

            form.Vertex   = this.p[0].Length;
            form.Lines    = this.p.Length;
            form.WaitTime = this.wait_time;
            DialogResult res = form.ShowDialog();

            if (res == DialogResult.OK)
            {
                lock (this)
                {
                    this.lines     = form.Lines;
                    this.vertex    = form.Vertex;
                    this.wait_time = form.WaitTime;
                    InitializeLineObject();
                }
            }
        }        //ParameterSetting
Exemple #2
0
		}//LineArtForm_Closed

		/// <summary>
		/// コンテキストメニューの「設定」が押されたときのイベントハンドラ。
		/// 設定用ダイアログを表示し、設定値の更新を行う。
		/// </summary>
		private void ParameterSetting(object sender, System.EventArgs e)
		{
			SettingForm form = new SettingForm();
			form.Vertex   = this.p[0].Length;
			form.Lines    = this.p.Length;
			form.WaitTime = this.wait_time;
			DialogResult res = form.ShowDialog();
			if(res == DialogResult.OK)
			{
				lock(this)
				{
					this.lines     = form.Lines;
					this.vertex    = form.Vertex;
					this.wait_time = form.WaitTime;
					InitializeLineObject();
				}
			}
		}//ParameterSetting