mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
First code analysis changes, this "should" make Greenshot more stable and implement things as is supposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2481 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3f4d93f2b6
commit
a394904aa3
64 changed files with 514 additions and 343 deletions
|
@ -46,7 +46,28 @@ namespace Greenshot.Drawing {
|
|||
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(DrawableContainer));
|
||||
protected static readonly EditorConfiguration editorConfig = IniConfig.GetIniSection<EditorConfiguration>();
|
||||
private bool isMadeUndoable = false;
|
||||
|
||||
|
||||
public virtual void Dispose() {
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing) {
|
||||
for (int i = 0; i < grippers.Length; i++) {
|
||||
grippers[i].Dispose();
|
||||
grippers[i] = null;
|
||||
}
|
||||
|
||||
FieldAggregator aggProps = parent.FieldAggregator;
|
||||
aggProps.UnbindElement(this);
|
||||
}
|
||||
}
|
||||
|
||||
~DrawableContainer() {
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
[NonSerialized]
|
||||
private PropertyChangedEventHandler propertyChanged;
|
||||
public event PropertyChangedEventHandler PropertyChanged {
|
||||
|
@ -335,15 +356,6 @@ namespace Greenshot.Drawing {
|
|||
}
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
for(int i=0; i<grippers.Length; i++) {
|
||||
grippers[i].Dispose();
|
||||
}
|
||||
|
||||
FieldAggregator aggProps = parent.FieldAggregator;
|
||||
aggProps.UnbindElement(this);
|
||||
}
|
||||
|
||||
int mx;
|
||||
int my;
|
||||
private void gripperMouseDown(object sender, MouseEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue