private void baseButtonSelectSizeGroup_Click(object sender, EventArgs e) { SizeGroupSelectForm size = new SizeGroupSelectForm(selectSizeGroup, skinTextBox_ID.Text); size.ShowDialog(this); if (size.DialogResult == DialogResult.OK) { selectSizeGroup = size.Result; skinLabelSizeGroup.Text = selectSizeGroup.SelectedDisplaySizeNames; SetDataGridData(); /* if (selectSizeGroup.Items.Count > 0) * { * List<string> disNames = selectSizeGroup.DisplayItems; * List<string> Names = selectSizeGroup.Items; * List<CostumeStore> stores = new List<CostumeStore>(); * CostumeStore costumeStore = new CostumeStore(); * // stores.Add(); * * for (int j = 0; j < this.dataGridView2.Columns.Count; j++) * { * bool flag = true; * for (int k = 0; k < selectSizeGroup.Items.Count; k++) * { * if (this.dataGridView2.Columns[j].DataPropertyName == selectSizeGroup.Items[k]) * { * this.dataGridView2.Columns[j].HeaderText = disNames[k]; * this.dataGridView2.Columns[j].Visible = true; * flag = false; * } * } * if (flag) * { * this.dataGridView2.Columns[j].Visible = false; * } * * } * * //dataGridView2.DataSource = addValue * }*/ } /* addValue.Clear(); * addValue.Add(new CostumeStore()); * dataGridView2.DataSource = null; * dataGridView2.DataSource = addValue;*/ }
private void baseButton2_Click(object sender, EventArgs e) { SizeGroupSelectForm size = new SizeGroupSelectForm(selectSizeGroup, string.Empty); size.ShowDialog(this); if (size.DialogResult == DialogResult.OK) { selectSizeGroup = size.Result; if (String.IsNullOrEmpty(selectSizeGroup.SelectedDisplaySizeNames)) { } else { skinLabelSizeGroup.Text = selectSizeGroup.SelectedDisplaySizeNames; } } }