Code quality changes [skip ci]

This commit is contained in:
Robin 2016-08-16 10:37:55 +02:00
commit 798ca503a5
108 changed files with 1981 additions and 2258 deletions

View file

@ -20,8 +20,6 @@
*/
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Greenshot.Plugin;
namespace GreenshotOfficePlugin {
@ -30,15 +28,14 @@ namespace GreenshotOfficePlugin {
/// </summary>
public class OfficePlugin : IGreenshotPlugin {
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(OfficePlugin));
public static PluginAttribute Attributes;
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
//if (disposing) {}
protected void Dispose(bool disposing) {
// Do nothing
}
public IEnumerable<IDestination> Destinations() {
@ -100,7 +97,6 @@ namespace GreenshotOfficePlugin {
/// <param name="myAttributes">My own attributes</param>
/// <returns>true if plugin is initialized, false if not (doesn't show)</returns>
public virtual bool Initialize(IGreenshotHost pluginHost, PluginAttribute myAttributes) {
Attributes = myAttributes;
return true;
}
@ -113,15 +109,5 @@ namespace GreenshotOfficePlugin {
/// </summary>
public virtual void Configure() {
}
/// <summary>
/// This will be called when Greenshot is shutting down
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void Closing(object sender, FormClosingEventArgs e) {
LOG.Debug("Application closing, de-registering Office Plugin!");
Shutdown();
}
}
}