Exemplo n.º 1
0
 private void ButtonBannerDelItem_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridViewStandardBanners.SelectedRows)
     {
         UIDataSet.StandardBannerListRow item = (UIDataSet.StandardBannerListRow)((DataRowView)row.DataBoundItem).Row;
         uIDataSet.StandardBannerList.Rows.Remove(item);
     }
 }
Exemplo n.º 2
0
 private void ButtonBannerEditItem_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridViewStandardBanners.SelectedRows)
     {
         UIDataSet.StandardBannerListRow item = (UIDataSet.StandardBannerListRow)((DataRowView)row.DataBoundItem).Row;
         new EditBannerWindow(item).ShowDialog();
     }
 }
Exemplo n.º 3
0
 public EditBannerWindow(UIDataSet.StandardBannerListRow item)
 {
     InitializeComponent();
     this.item         = item;
     richTextBox1.Text = item.BannerText;
 }
Exemplo n.º 4
0
 private void DataGridViewStandardBanners_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     UIDataSet.StandardBannerListRow item = (UIDataSet.StandardBannerListRow)(((DataRowView)(dataGridViewStandardBanners[e.ColumnIndex, e.RowIndex].OwningRow).DataBoundItem)).Row;
     new EditBannerWindow(item).ShowDialog();
 }