protected override void AddNewRow(IBllEntity entity) { DataGridViewRow row = new DataGridViewRow(); row.CreateCells(dataGridView1); dataGridView1.Rows.Add(FillRow((BllGroup)entity, row)); }
protected override void UpdateRow(IBllEntity entity, int row) { BllGroup data = (BllGroup)entity; Groups[row] = data; FillRow(data, dataGridView1.Rows[row]); }
protected override DataGridViewRow FillRow(IBllEntity entity, DataGridViewRow row) { BllGroup data = (BllGroup)entity; row.Cells[0].Value = data.Name; return(row); }
protected override void UpdateRow(IBllEntity entity, int row) { BllEventType data = (BllEventType)entity; EventTypes[row] = data; FillRow(data, dataGridView1.Rows[row]); }
protected override void UpdateRow(IBllEntity entity, int row) { BllUser data = (BllUser)entity; Users[row] = data; FillRow(data, dataGridView1.Rows[row]); }
public UserDataForm(DirectoryForm parent, IBusinessService server, IBllEntity entity) : base(parent, server, entity) { InitializeComponent(); Groups = server.GetAllGroups(); foreach (var item in Groups) { comboBox1.Items.Add(item.Name); } if (Groups.Count > 0) { comboBox1.SelectedIndex = 0; } Statuses = server.GetAllStatusesExceptDeletedAndClosed(); foreach (var item in Statuses) { checkedListBox3.Items.Add(item.Name); } EventTypes = server.GetAllEventTypes(); foreach (var item in EventTypes) { checkedListBox2.Items.Add(item.Name); } }
protected override void UpdateRow(IBllEntity entity, int row) { BllStatus data = (BllStatus)entity; Statuses[row] = data; FillRow(data, dataGridView1.Rows[row]); }
protected override void UpdateRow(IBllEntity entity, int row) { BllAttribute data = (BllAttribute)entity; Attributes[row] = data; FillRow(data, dataGridView1.Rows[row]); }
public EntityDataForm(DirectoryForm parent, IBusinessService server, IBllEntity Entity) : base() { InitializeComponent(); CenterToParent(); this.parent = parent; this.server = server; this.Entity = Entity; }
public static IDalEntity ToDal(IBllEntity entity) { if (entity == null) { throw new ArgumentNullException(nameof(entity)); } return(ToDal((dynamic)entity)); }
protected override DataGridViewRow FillRow(IBllEntity entity, DataGridViewRow row) { BllUser data = (BllUser)entity; row.Cells[0].Value = data.Fullname; row.Cells[1].Value = data.Login; row.Cells[2].Value = data.Group.Name; return(row); }
public static int GetItemIndex(IBllEntity item, List <IBllEntity> array) // returns index { for (int i = 0; i < array.Count; i++) { if (array[i].Id == item.Id) { return(i); } } return(-1); }
public AttributeDataForm(DirectoryForm parent, IBusinessService server, IBllEntity entity) : base(parent, server, entity) { InitializeComponent(); }
protected virtual DataGridViewRow FillRow(IBllEntity entity, DataGridViewRow row) { throw new NotImplementedException(); }
protected virtual void UpdateRow(IBllEntity entity, int row) { throw new NotImplementedException(); }
protected virtual void AddNewRow(IBllEntity entity) { throw new NotImplementedException(); }