Code: Select all
Plugins.HookAddCode(this, "ContrChart.gridProg_CellDoubleClick_begin", proc, FormP);
FormP.ShowDialog();
Plugins.HookAddCode(this, "ContrChart.gridProg_CellDoubleClick_begin2", proc, FormP);
Code: Select all
FormP.ShowDialog();
So, I'm wondering: could you make the following change to line 5048 on ContrChart
Code: Select all
if (!FormP.IsDisposed) { //might be disposed by above hook <-----
FormP.ShowDialog();
} <-----
So, it would look like:
Code: Select all
FormProcEdit FormP=new FormProcEdit(proc,PatCur,FamCur);
Plugins.HookAddCode(this, "ContrChart.gridProg_CellDoubleClick_begin", proc, FormP); <-----
if (!FormP.IsDisposed) { //might be disposed by above hook <-----
FormP.ShowDialog();
} <-----
Plugins.HookAddCode(this, "ContrChart.gridProg_CellDoubleClick_begin2", proc, FormP); <-----
if(FormP.DialogResult!=DialogResult.OK) {
return;
}
What this hook does is prevent a second user from editing a note when another user has it open, thus losing all his/her changes when the first user saves his/her edit.
The third hook for this is on FormProcEdit, method butOK_Click, after line 4420:
Code: Select all
SaveAndClose();
Plugins.HookAddCode(this, "FormProcEdit.butOK_Click_end", ProcCur); <-----
