Пример #1
0
        private void winExplorerView1_ItemDoubleClick(object sender, DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewItemDoubleClickEventArgs e)
        {
            var           v       = (DataRowView)winExplorerView1.GetRow(e.ItemInfo.Row.RowHandle);
            var           history = User.CurrentPatient.Historys.FirstOrDefault(f => f.HistoryNo == v["HistoryNo"].ToString());
            var           img     = history.imgInfos.FirstOrDefault(f => f.ID == Convert.ToInt32(v["Index"]));
            FormImageEdit form    = new FormImageEdit(img, history);

            form.ShowDialog();
            User.ReadCurrentPatientHistorys();
            BindImg();
        }
Пример #2
0
        private void btnImgEdit_Click(object sender, EventArgs e)
        {
            var rows = winExplorerView1.GetSelectedRows();

            if (rows.Count() == 0)
            {
                CommHelp.ShowWarning("请选择要编辑的图片");
                return;
            }
            var           v    = (DataRowView)winExplorerView1.GetRow(rows[0]);
            var           img  = currentHistory.imgInfos.FirstOrDefault(f => f.ID == Convert.ToInt32(v["Index"]));
            FormImageEdit form = new FormImageEdit(img, currentHistory);

            form.ShowDialog();
            User.ReadCurrentPatientHistorys();
            BindImg();
        }