internal void AddMasterBar(MasterBar masterBar) { if (Openings.Count == 0) { Openings.Add(masterBar); } MasterBars.Add(masterBar); masterBar.RepeatGroup = this; if (masterBar.IsRepeatEnd) { Closings.Add(masterBar); IsClosed = true; if (!IsOpened) { MasterBars[0].IsRepeatStart = true; IsOpened = true; } } // a new item after the header was closed? -> repeat alternative reopens the group else if (IsClosed) { IsClosed = false; Openings.Add(masterBar); } }
public void AddClosing(DeliveryClosing closing) { if (Closings == null) { Closings = new List <DeliveryClosing>(); } Closings.Add(closing); ClosingsCount = Closings?.Count ?? 0; }
private void ЗакрытиеToolStripMenuItem_Click(object sender, EventArgs e) { var bm = new Bitmap(pictureBox1.Image); old_image = image; image = bm; Closings filter = new Closings(mWidth, mHeight, mMatrix); backgroundWorker1.RunWorkerAsync(filter); }
public void RemoveClosing(Guid id) { var closing = Closings.SingleOrDefault(r => r.Id == id); if (closing == null) { throw SheaftException.NotFound("La plage de fermeture pour ce mode de livraison est introuvable."); } Closings.Remove(closing); ClosingsCount = Closings?.Count ?? 0; }