mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Made it work again
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@710 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
8cc84eaf1b
commit
02bd63be60
7 changed files with 237 additions and 217 deletions
|
@ -28,6 +28,7 @@ using System.Runtime.Serialization.Formatters.Binary;
|
|||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using FlickrNet;
|
||||
using Greenshot.Capturing;
|
||||
using Greenshot.Forms;
|
||||
using Greenshot.Plugin;
|
||||
|
@ -41,11 +42,14 @@ namespace GreenshotFlickrPlugin {
|
|||
public class FlickrPlugin : IGreenshotPlugin {
|
||||
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(FlickrPlugin));
|
||||
private const string CONFIG_FILENAME = "flickr-config.properties";
|
||||
private const string AUTHENTICATION_TOKEN_PROPERTY = "authentication.token";
|
||||
private const string ApiKey = "f967e5148945cb3c4e149cc5be97796a";
|
||||
private const string SharedSecret = "4180a21a1d2f8666";
|
||||
private ILanguage lang = Language.GetInstance();
|
||||
private IGreenshotPluginHost host;
|
||||
private ICaptureHost captureHost = null;
|
||||
private PluginAttribute myAttributes;
|
||||
private Properties config = new Properties();
|
||||
private Properties config = null;
|
||||
|
||||
public FlickrPlugin() { }
|
||||
|
||||
|
@ -110,7 +114,7 @@ namespace GreenshotFlickrPlugin {
|
|||
string dllPath = Path.GetDirectoryName(myAttributes.DllFile);
|
||||
string dllFilename = args.Name.Substring(0, args.Name.IndexOf(",")) + ".dll";
|
||||
LOG.Debug("Resolving: " + dllFilename);
|
||||
if (dllFilename.StartsWith("Flickr")) {
|
||||
if (dllFilename.ToLower().StartsWith("flickr")) {
|
||||
return Assembly.LoadFile(Path.Combine(dllPath, dllFilename));
|
||||
}
|
||||
return null;
|
||||
|
@ -119,18 +123,13 @@ namespace GreenshotFlickrPlugin {
|
|||
private void LoadConfig() {
|
||||
string filename = Path.Combine(host.ConfigurationPath, CONFIG_FILENAME);
|
||||
if (File.Exists(filename)) {
|
||||
LOG.Debug("Loading configuration from: " + filename);
|
||||
config = Properties.read(filename);
|
||||
} else {
|
||||
LOG.Debug("No flickr configuration found at: " + filename);
|
||||
}
|
||||
bool changed = false;
|
||||
if (config == null) {
|
||||
config = new Properties();
|
||||
changed = true;
|
||||
}
|
||||
if (changed) {
|
||||
SaveConfig();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void SaveConfig() {
|
||||
|
@ -145,14 +144,74 @@ namespace GreenshotFlickrPlugin {
|
|||
public void EditMenuClick(object sender, EventArgs eventArgs) {
|
||||
ToolStripMenuItem item = (ToolStripMenuItem)sender;
|
||||
IImageEditor imageEditor = (IImageEditor)item.Tag;
|
||||
bool authentication = false;
|
||||
|
||||
Flickr flickr = new Flickr(ApiKey, SharedSecret);
|
||||
if(config.GetProperty(AUTHENTICATION_TOKEN_PROPERTY) == null) {
|
||||
string frob = flickr.AuthGetFrob();
|
||||
// Calculate the URL at Flickr to redirect the user to
|
||||
string flickrUrl = flickr.AuthCalcUrl(frob, AuthLevel.Write);
|
||||
FlickrAuthenticationForm authForm = new FlickrAuthenticationForm(flickrUrl);
|
||||
DialogResult authFormResult = authForm.ShowDialog();
|
||||
if (authFormResult == DialogResult.OK) {
|
||||
try {
|
||||
// use the temporary Frob to get the authentication
|
||||
Auth auth = flickr.AuthGetToken(frob);
|
||||
// Store this Token for later usage,
|
||||
// or set your Flickr instance to use it.
|
||||
LOG.Debug("User authenticated successfully");
|
||||
LOG.Debug("Authentication token is " + auth.Token);
|
||||
LOG.Debug("User id is " + auth.User.UserId);
|
||||
LOG.Debug("User name is " + auth.User.UserName);
|
||||
LOG.Debug("User fullname is " + auth.User.FullName);
|
||||
config.AddProperty(AUTHENTICATION_TOKEN_PROPERTY, auth.Token);
|
||||
SaveConfig();
|
||||
authentication = true;
|
||||
} catch (FlickrException ex) {
|
||||
// If user did not authenticat your application
|
||||
// then a FlickrException will be thrown.
|
||||
LOG.Debug("User did not authenticate you", ex);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Token is there
|
||||
authentication = true;
|
||||
}
|
||||
if (!authentication) {
|
||||
MessageBox.Show("No Authentication made!");
|
||||
return;
|
||||
}
|
||||
flickr.AuthToken = config.GetProperty(AUTHENTICATION_TOKEN_PROPERTY);
|
||||
FlickrUploadForm uploader = new FlickrUploadForm();
|
||||
DialogResult result = uploader.ShowDialog();
|
||||
if (result == DialogResult.OK) {
|
||||
DialogResult uploaderResult = uploader.ShowDialog();
|
||||
if (uploaderResult == DialogResult.OK) {
|
||||
using (MemoryStream stream = new MemoryStream()) {
|
||||
imageEditor.SaveToStream(stream, "PNG", 100);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
try {
|
||||
uploader.upload(stream);
|
||||
string file = "test.png";
|
||||
string title = "Test Photo";
|
||||
string description = "This is the description of the photo";
|
||||
string tags = "greenshot,screenshot";
|
||||
string photoId = flickr.UploadPicture(stream, file, title, description, tags, false, false, false, ContentType.Screenshot, SafetyLevel.Restricted, HiddenFromSearch.Hidden);
|
||||
|
||||
flickr.PhotosSetMeta(photoId, "Greenshot screenshot", "This is a greenshot screenshot!");
|
||||
// // Get list of users sets
|
||||
// PhotosetCollection sets = flickr.PhotosetsGetList();
|
||||
// string photosetId = null;
|
||||
// if (sets.Count == 0) {
|
||||
// LOG.Debug("Not photosets found, creating");
|
||||
// Photoset photoset = flickr.PhotosetsCreate("Greenshot", "Greenshot screenshots", photoId);
|
||||
// LOG.Debug("Created photoset with description: " + photoset.Description);
|
||||
// LOG.Debug("Created photoset with id: " + photoset.PhotosetId);
|
||||
// photosetId = photoset.PhotosetId;
|
||||
// } else {
|
||||
// // Get the first set in the collection
|
||||
// photosetId = sets[0].PhotosetId;
|
||||
// }
|
||||
//
|
||||
// // Add the photo to that set
|
||||
// flickr.PhotosetsAddPhoto(photosetId, photoId);
|
||||
MessageBox.Show(lang.GetString(LangKey.upload_success));
|
||||
} catch(Exception e) {
|
||||
LOG.Error("Problem uploading", e);
|
||||
|
|
110
GreenshotFlickrPlugin/Forms/FlickrAuthenticationForm.Designer.cs
generated
Normal file
110
GreenshotFlickrPlugin/Forms/FlickrAuthenticationForm.Designer.cs
generated
Normal file
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
* Greenshot - a free and open source screenshot tool
|
||||
* Copyright (C) 2007-2010 Thomas Braun, Jens Klingen, Robin Krom
|
||||
*
|
||||
* For more information see: http://getgreenshot.org/
|
||||
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
namespace GreenshotFlickrPlugin {
|
||||
partial class FlickrAuthenticationForm {
|
||||
/// <summary>
|
||||
/// Designer variable used to keep track of non-visual components.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Disposes resources used by the form.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if (disposing) {
|
||||
if (components != null) {
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is required for Windows Forms designer support.
|
||||
/// Do not change the method contents inside the source code editor. The Forms designer might
|
||||
/// not be able to load this method if it was changed manually.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.Location = new System.Drawing.Point(116, 229);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.okButton.TabIndex = 6;
|
||||
this.okButton.Text = "OK";
|
||||
this.okButton.UseVisualStyleBackColor = true;
|
||||
this.okButton.Click += new System.EventHandler(this.OkButtonClick);
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Location = new System.Drawing.Point(197, 229);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 23);
|
||||
this.cancelButton.TabIndex = 5;
|
||||
this.cancelButton.Text = "Cancel";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.CancelButtonClick);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(102, 89);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(89, 23);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Authentication";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.AuthenticationButtonClick);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(13, 35);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(259, 51);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "Please press the authentication button, this will open a browser. Login to Flickr" +
|
||||
" and allow Greenshot access";
|
||||
//
|
||||
// FlickrAuthenticationForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(284, 264);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.okButton);
|
||||
this.Controls.Add(this.cancelButton);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Name = "FlickrAuthenticationForm";
|
||||
this.Text = "FlickrAuthenticationForm";
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Button okButton;
|
||||
}
|
||||
}
|
52
GreenshotFlickrPlugin/Forms/FlickrAuthenticationForm.cs
Normal file
52
GreenshotFlickrPlugin/Forms/FlickrAuthenticationForm.cs
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Greenshot - a free and open source screenshot tool
|
||||
* Copyright (C) 2007-2010 Thomas Braun, Jens Klingen, Robin Krom
|
||||
*
|
||||
* For more information see: http://getgreenshot.org/
|
||||
* The Greenshot project is hosted on Sourceforge: http://sourceforge.net/projects/greenshot/
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace GreenshotFlickrPlugin {
|
||||
/// <summary>
|
||||
/// Description of FlickrAuthenticationForm.
|
||||
/// </summary>
|
||||
public partial class FlickrAuthenticationForm : Form {
|
||||
private string authenticationUrl = null;
|
||||
public FlickrAuthenticationForm(string authenticationUrl) {
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
this.authenticationUrl = authenticationUrl;
|
||||
}
|
||||
|
||||
void AuthenticationButtonClick(object sender, EventArgs e) {
|
||||
// The following line will load the URL in the users default browser.
|
||||
System.Diagnostics.Process.Start(authenticationUrl);
|
||||
}
|
||||
|
||||
void OkButtonClick(object sender, EventArgs e) {
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
void CancelButtonClick(object sender, EventArgs e) {
|
||||
DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,32 +44,10 @@ namespace GreenshotFlickrPlugin {
|
|||
/// not be able to load this method if it was changed manually.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.cancelButton = new System.Windows.Forms.Button();
|
||||
this.okButton = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(13, 13);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Auth";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.AuthMeButton_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(13, 43);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "Complete Auth";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.CompleteAuthButton_Click);
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.Location = new System.Drawing.Point(197, 229);
|
||||
|
@ -97,15 +75,11 @@ namespace GreenshotFlickrPlugin {
|
|||
this.ClientSize = new System.Drawing.Size(284, 264);
|
||||
this.Controls.Add(this.okButton);
|
||||
this.Controls.Add(this.cancelButton);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Name = "FlickrUploadForm";
|
||||
this.Text = "FlickrUploadForm";
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
private System.Windows.Forms.Button cancelButton;
|
||||
private System.Windows.Forms.Button okButton;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,73 +23,17 @@ using System.Drawing;
|
|||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using FlickrNet;
|
||||
|
||||
namespace GreenshotFlickrPlugin {
|
||||
/// <summary>
|
||||
/// Description of FlickrUploadForm.
|
||||
/// </summary>
|
||||
public partial class FlickrUploadForm : Form {
|
||||
// Store the Frob in a private variable
|
||||
private string tempFrob;
|
||||
private string ApiKey = "f967e5148945cb3c4e149cc5be97796a";
|
||||
private string SharedSecret = "4180a21a1d2f8666";
|
||||
private Flickr flickr;
|
||||
|
||||
public FlickrUploadForm() {
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
// Create Flickr instance
|
||||
flickr = new Flickr(ApiKey, SharedSecret);
|
||||
}
|
||||
|
||||
protected void AuthMeButton_Click(object sender, EventArgs e) {
|
||||
// Get Frob
|
||||
tempFrob = flickr.AuthGetFrob();
|
||||
// Calculate the URL at Flickr to redirect the user to
|
||||
string flickrUrl = flickr.AuthCalcUrl(tempFrob, AuthLevel.Write);
|
||||
// The following line will load the URL in the users default browser.
|
||||
System.Diagnostics.Process.Start(flickrUrl);
|
||||
}
|
||||
|
||||
protected void CompleteAuthButton_Click(object sender, EventArgs e) {
|
||||
try {
|
||||
// use the temporary Frob to get the authentication
|
||||
Auth auth = flickr.AuthGetToken(tempFrob);
|
||||
// Store this Token for later usage,
|
||||
// or set your Flickr instance to use it.
|
||||
Console.WriteLine("User authenticated successfully");
|
||||
Console.WriteLine("Authentication token is " + auth.Token);
|
||||
flickr.AuthToken = auth.Token;
|
||||
Console.WriteLine("User id is " + auth.User);
|
||||
} catch(FlickrException ex) {
|
||||
// If user did not authenticat your application
|
||||
// then a FlickrException will be thrown.
|
||||
Console.WriteLine("User did not authenticate you");
|
||||
Console.WriteLine(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
public void upload(Stream buffer) {
|
||||
string file = "test.png";
|
||||
string title = "Test Photo";
|
||||
string description = "This is the description of the photo";
|
||||
string tags = "tag1,tag2,tag3";
|
||||
string photoId = flickr.UploadPicture(buffer, file, title, description, tags, false, false, false, ContentType.Screenshot, SafetyLevel.Restricted, HiddenFromSearch.Hidden);
|
||||
|
||||
flickr.PhotosSetMeta(photoId, "New Title", "New Description");
|
||||
// Get list of users sets
|
||||
PhotosetCollection sets = flickr.PhotosetsGetList();
|
||||
if (sets.Count == 0) {
|
||||
flickr.PhotosetsCreate("Greenshot", "Greenshot screenshots", photoId);
|
||||
sets = flickr.PhotosetsGetList();
|
||||
}
|
||||
// Get the first set in the collection
|
||||
Photoset set = sets[0];
|
||||
// Add the photo to that set
|
||||
flickr.PhotosetsAddPhoto(set.PhotosetId, photoId);
|
||||
}
|
||||
|
||||
void OkButtonClick(object sender, EventArgs e) {
|
||||
|
|
|
@ -1,120 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -52,6 +52,10 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FlickrPlugin.cs" />
|
||||
<Compile Include="Forms\FlickrAuthenticationForm.cs" />
|
||||
<Compile Include="Forms\FlickrAuthenticationForm.Designer.cs">
|
||||
<DependentUpon>FlickrAuthenticationForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\FlickrUploadForm.cs" />
|
||||
<Compile Include="Forms\FlickrUploadForm.Designer.cs">
|
||||
<DependentUpon>FlickrUploadForm.cs</DependentUpon>
|
||||
|
@ -70,9 +74,6 @@
|
|||
</None>
|
||||
<None Include="Lib\FlickrNet.dll" />
|
||||
<None Include="Properties\AssemblyInfo.cs.template" />
|
||||
<EmbeddedResource Include="Forms\FlickrUploadForm.resx">
|
||||
<DependentUpon>FlickrUploadForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Lib" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue