コード例 #1
0
        public void AddItm(string nm)
        {
            myItem temp = new myItem();

            temp.name = nm;
            dt.itms.Add(temp);
        }
コード例 #2
0
ファイル: ItmEd.cs プロジェクト: devapromix-ifiction/DzQ
 public ItmEd(myItem itm, Storage store)
 {
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     this.itm      = itm;
     this.store    = store;
     textBox1.Text = itm.name;
     textBox2.Text = itm.Onclick;
     //comboBox1.Text = itm.Onclick;
     //store.RefreshGBlocks(comboBox1);
     //for(int i=0;i<comboBox1.Items.Count;i++)
     //	comboBox1.Items[i] = "run "+comboBox1.Items[i];
     //
     // TODO: Add constructor code after the InitializeComponent() call.
     //
 }