Exemple #1
0
        private void DropMarkPanel(MarkArea mark)
        {
            try
            {
                MarkPanel panel = new MarkPanel(mark, pbImageView);
                panel.MouseClick += new MouseEventHandler(panel_MouseClick);
                areaIdPanelMap.Add(mark.Id, panel);

                UpdateMarkCellAreaId(mark.Id);
            }
            catch (Exception ex)
            {
                LogHelper.AppLoger.Error(ex);
            }
        }
Exemple #2
0
        private void UpdateImageMarkArea()
        {
            try
            {
                foreach (var item in areaIdPanelMap)
                {
                    item.Value.Hide();
                    item.Value.Dispose();
                }
                areaIdPanelMap.Clear();

                lstMarkArea = markAreaDao.GetSpecificList(txtSlideId.Text, txtCurSwath.Text, txtCurSequence.Text);
                foreach (var item in lstMarkArea)
                {
                    MarkPanel panel = new MarkPanel(item, pbImageView);
                    panel.MouseClick += new MouseEventHandler(panel_MouseClick);
                    areaIdPanelMap.Add(item.Id, panel);
                }
            }
            catch (Exception ex)
            {
                LogHelper.AppLoger.Error(ex);
            }
        }