示例#1
0
        private void form_craft_Shown(object sender, EventArgs e)
        {
            form_item f = (form_item)this.Owner;

            this.Location = new Point(f.Location.X + f.Size.Width, f.Location.Y);
            DataSet ds = lite.get_dataset(@"select item_name from tbl_item");

            item_name = new string[ds.Tables[0].Rows.Count];
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                item_name[i] = ds.Tables[0].Rows[i].ItemArray[0].ToString();
            }
            //btn_add();
        }
示例#2
0
        private void form_craft_LocationChanged(object sender, EventArgs e)
        {
            form_item f = (form_item)this.Owner;

            f.Location = new Point(this.Location.X - f.Size.Width, this.Location.Y);
        }