//------------------------------------------------ public void Assign(TSFunctions f) { for (int i = 0; i < (int)funcCmd.Count; i++) { funcTable[i].Assign(f.funcTable[i]); } }
//-------------------------------------------------------------------------------- public KeySettings(TSFunctions f) { InitializeComponent(); tsfunc.Assign(f); tsfuncBak.Assign(f); this.SuspendLayout(); for (int i = 0; i < (int)funcCmd.Count; i++) { //インスタンス作成 this.kb[i] = new KeyBind(); //プロパティ設定 this.kb[i].Name = "kb" + i.ToString(); this.kb[i].Size = new Size(480, 24); this.kb[i].Location = new Point(20, 10 + i * 30); this.kb[i].Caption = tsfunc.funcName[i, 1]; this.kb[i].KeyDataChanged += new System.EventHandler(this.KeyDataChanged); } FromFunc(); //フォームにコントロールを追加 this.panel1.Controls.AddRange(this.kb); this.ResumeLayout(false); }