private void BtnStyle_Click(object sender, System.EventArgs e) { if (this.Headers.SelCount <= 0) { MessageBox.Show("Please select the cell in the table below"); return; } Webb.Utilities.PropertyForm proprtyForm = new Webb.Utilities.PropertyForm(); HeaderCellStyle headerstyle = new HeaderCellStyle(); this.Headers.SetInitStyle(headerstyle); proprtyForm.BindProperty(headerstyle); if (proprtyForm.ShowDialog() == DialogResult.OK) { this.Headers.UpdateCellStyle(headerstyle); this.paintAllCells(); } }
private void EditItem() { int selectIndex = this.C_LBSelFields.SelectedIndex; object value = this.C_LBSelFields.SelectedItem; if (selectIndex < 0 || value == null) { return; } GradingPostion EditValue = (value as GradingPostion).Copy(); Webb.Utilities.PropertyForm propertyForm = new Webb.Utilities.PropertyForm(); propertyForm.BindProperty("Jersey Editor", EditValue); if (DialogResult.OK == propertyForm.ShowDialog()) { this.C_LBSelFields.Items[selectIndex] = propertyForm.Object; } }