Skip to content
Snippets Groups Projects
Commit 8b3d3c38 authored by Nick Kozel's avatar Nick Kozel
Browse files

Merge branch 'AbstractModel'

parents 0ab4728e 6a8743fd
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Transformation\TransformGif.cs" />
<Compile Include="View_Models\MainForm.cs">
<SubType>Form</SubType>
</Compile>
......@@ -81,6 +82,12 @@
<Compile Include="View_Models\HelpContext.Designer.cs">
<DependentUpon>HelpContext.cs</DependentUpon>
</Compile>
<Compile Include="View_Models\SaveAsXbyYPrompt.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="View_Models\SaveAsXbyYPrompt.Designer.cs">
<DependentUpon>SaveAsXbyYPrompt.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="View_Models\MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
......@@ -96,6 +103,9 @@
<EmbeddedResource Include="View_Models\HelpContext.resx">
<DependentUpon>HelpContext.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="View_Models\SaveAsXbyYPrompt.resx">
<DependentUpon>SaveAsXbyYPrompt.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
......@@ -110,9 +120,7 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Folder Include="Transformation\" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
<Visible>False</Visible>
......
......@@ -9,9 +9,6 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
/// <summary>
/// Model representation of system types
/// </summary>
namespace Gifitti.Models
{
/// <summary>
......@@ -111,32 +108,7 @@ namespace Gifitti.Models
}
}
/// <summary>
/// Resizes a GIF to be newWidth x newHeight px
/// </summary>
/// <param name="newWidth">New Width dimension in px.</param>
/// <param name="newHeight">New Height dimension in px.</param>
public void resizeGif(int newWidth, int newHeight)
{
using (MagickImageCollection collection = new MagickImageCollection())
{
for (int i = 0; i < frames.Length; i++)
{
collection.Add(new MagickImage(frames[i] as Bitmap));
collection[i].Resize(newWidth, newHeight);
}
// Optionally reduce colors
QuantizeSettings settings = new QuantizeSettings();
settings.Colors = 256;
collection.Quantize(settings);
// Optionally optimize the images (images should have the same size).
collection.Optimize();
// Save gif
collection.Write("tempResize.gif");
}
}
/// <summary>
/// Fetches a sub gif over frames start -> stop
......@@ -215,5 +187,10 @@ namespace Gifitti.Models
return (Image)originalGif.Clone();
//return a copy of it
}
public void SetFrameFromImage(Image frame, int index)
{
frames[index] = frame;
}
}
}
using Gifitti.Models;
using ImageMagick;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gifitti.Transformation
{
/// <summary>
/// Methods for GIF transformations kept together
/// </summary>
static class TransformGif
{
/// <summary>
/// Resizes a GIF to be newWidth x newHeight px
/// </summary>
/// <param name="newWidth">New Width dimension in px.</param>
/// <param name="newHeight">New Height dimension in px.</param>
/// <param name="gm" cref="GifModel">GifModel being modified.</param>
public static void resizeGif(GifModel gm, int newWidth, int newHeight)
{
using (MagickImageCollection collection = new MagickImageCollection())
{
for (int i = 0; i < gm.numberOfFrames; i++)
{
collection.Add(new MagickImage(gm.GetFrame(i) as Bitmap));
collection[i].Resize(newWidth, newHeight);
gm.SetFrameFromImage(collection[i].ToBitmap(), i);
}
}
}
}
}
......@@ -10,28 +10,54 @@ using System.Windows.Forms;
namespace Gifitti.View_Models
{
/// <summary>
/// VM for the HelpContextView Win Form
/// </summary>
public partial class HelpContext : Form
{
/// <summary>
/// Instantiate and initialize a new HelpContext Win Form
/// </summary>
public HelpContext()
{
InitializeComponent();
}
/// <summary>
/// Display Opening Gif Information.
/// </summary>
/// <param name="sender">Caller object.</param>
/// <param name="e">Event arguments associated with the click event.</param>
private void openingGIF_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To open a GIF, click File->Open. Using the file browser window that appears, select the GIF that you would like to open for modification and click 'Open'.";
}
/// <summary>
/// Display Saving Gif as an image Information.
/// </summary>
/// <param name="sender">Caller object.</param>
/// <param name="e">Event arguments associated with the click event.</param>
private void savingImage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To save an image, click File->Ouput as Image... and select the file type you would like to export the frames as. Using the folder browser window that appears, select the location you would like to save the images.";
}
/// <summary>
/// Display Saving Gif Information.
/// </summary>
/// <param name="sender">Caller object.</param>
/// <param name="e">Event arguments associated with the click event.</param>
private void savingGIF_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To save a GIF, click File->Save As... Using the file browser window that appears, select the location you would like to save the GIF to.";
}
/// <summary>
/// Display frame selection information.
/// </summary>
/// <param name="sender">Caller object.</param>
/// <param name="e">Event arguments associated with the click event.</param>
private void pickFrames_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To select the range of frames, simply use the boxes in the bottom center of the window to adjust which frames are displayed and saved. If the range is out of bounds, the GIF may appear choppy or simply stop.";
......
/// <summary>
/// Controller-View Bindings known as View Models
/// </summary>

namespace Gifitti.View_Models
{
partial class MainForm
......@@ -56,6 +54,7 @@ namespace Gifitti.View_Models
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.label4 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.menuResize = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.gifView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
......@@ -67,10 +66,10 @@ namespace Gifitti.View_Models
//
// gifView
//
this.gifView.Location = new System.Drawing.Point(14, 15);
this.gifView.Location = new System.Drawing.Point(12, 12);
this.gifView.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.gifView.Name = "gifView";
this.gifView.Size = new System.Drawing.Size(684, 588);
this.gifView.Size = new System.Drawing.Size(608, 470);
this.gifView.TabIndex = 2;
this.gifView.TabStop = false;
//
......@@ -86,6 +85,7 @@ namespace Gifitti.View_Models
this.meneFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuOpenFile,
this.menuFileExportAs,
this.menuResize,
this.menuFileSaveAs});
this.meneFile.Text = "File";
//
......@@ -131,7 +131,7 @@ namespace Gifitti.View_Models
//
// menuFileSaveAs
//
this.menuFileSaveAs.Index = 2;
this.menuFileSaveAs.Index = 3;
this.menuFileSaveAs.Text = "Save as...";
this.menuFileSaveAs.Click += new System.EventHandler(this.MenuItemFileSaveAs);
//
......@@ -145,10 +145,10 @@ namespace Gifitti.View_Models
//
this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.textBox1.Enabled = false;
this.textBox1.Location = new System.Drawing.Point(321, 709);
this.textBox1.Location = new System.Drawing.Point(285, 567);
this.textBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(32, 26);
this.textBox1.Size = new System.Drawing.Size(29, 22);
this.textBox1.TabIndex = 3;
this.textBox1.TextChanged += new System.EventHandler(this.StartFrameTextChanged);
//
......@@ -156,10 +156,10 @@ namespace Gifitti.View_Models
//
this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.textBox2.Enabled = false;
this.textBox2.Location = new System.Drawing.Point(360, 709);
this.textBox2.Location = new System.Drawing.Point(320, 567);
this.textBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(32, 26);
this.textBox2.Size = new System.Drawing.Size(29, 22);
this.textBox2.TabIndex = 4;
this.textBox2.TextChanged += new System.EventHandler(this.StopFrameTextChanged);
//
......@@ -167,10 +167,10 @@ namespace Gifitti.View_Models
//
this.button3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.button3.Enabled = false;
this.button3.Location = new System.Drawing.Point(399, 705);
this.button3.Location = new System.Drawing.Point(355, 564);
this.button3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 38);
this.button3.Size = new System.Drawing.Size(67, 30);
this.button3.TabIndex = 5;
this.button3.Text = "Stop";
this.button3.UseVisualStyleBackColor = true;
......@@ -180,9 +180,9 @@ namespace Gifitti.View_Models
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(317, 685);
this.label1.Location = new System.Drawing.Point(282, 548);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 20);
this.label1.Size = new System.Drawing.Size(38, 17);
this.label1.TabIndex = 6;
this.label1.Text = "Start";
//
......@@ -190,9 +190,9 @@ namespace Gifitti.View_Models
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(359, 685);
this.label2.Location = new System.Drawing.Point(319, 548);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(38, 20);
this.label2.Size = new System.Drawing.Size(33, 17);
this.label2.TabIndex = 7;
this.label2.Text = "End";
//
......@@ -200,9 +200,9 @@ namespace Gifitti.View_Models
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(240, 701);
this.label3.Location = new System.Drawing.Point(213, 561);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(75, 40);
this.label3.Size = new System.Drawing.Size(66, 34);
this.label3.TabIndex = 8;
this.label3.Text = "Frame \r\nSelection";
//
......@@ -214,10 +214,9 @@ namespace Gifitti.View_Models
// trackBar1
//
this.trackBar1.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.trackBar1.Location = new System.Drawing.Point(492, 701);
this.trackBar1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.trackBar1.Location = new System.Drawing.Point(437, 561);
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(206, 69);
this.trackBar1.Size = new System.Drawing.Size(183, 56);
this.trackBar1.TabIndex = 9;
this.trackBar1.Value = 10;
this.trackBar1.ValueChanged += new System.EventHandler(this.GifFPSSliderUpdate);
......@@ -226,9 +225,9 @@ namespace Gifitti.View_Models
//
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(538, 689);
this.label4.Location = new System.Drawing.Point(478, 551);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(123, 20);
this.label4.Size = new System.Drawing.Size(110, 17);
this.label4.TabIndex = 10;
this.label4.Text = "Playback Speed";
//
......@@ -238,17 +237,23 @@ namespace Gifitti.View_Models
this.label6.AutoSize = true;
this.label6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F);
this.label6.Location = new System.Drawing.Point(98, 700);
this.label6.Location = new System.Drawing.Point(87, 560);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(109, 32);
this.label6.Size = new System.Drawing.Size(96, 29);
this.label6.TabIndex = 12;
this.label6.Text = "GIFITTI";
//
// menuResize
//
this.menuResize.Index = 2;
this.menuResize.Text = "Resize...";
this.menuResize.Click += new System.EventHandler(this.MenuItemResize);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(711, 721);
this.ClientSize = new System.Drawing.Size(632, 577);
this.Controls.Add(this.label6);
this.Controls.Add(this.label4);
this.Controls.Add(this.trackBar1);
......@@ -300,6 +305,7 @@ namespace Gifitti.View_Models
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.MenuItem menuResize;
}
}
......@@ -12,9 +12,6 @@ using System.Windows.Forms;
using Gifitti.Models;
using System.Threading;
/// <summary>
/// Controller-View Binding type objects know as View-Models
/// </summary>
namespace Gifitti.View_Models
{
/// <summary>
......@@ -55,7 +52,7 @@ namespace Gifitti.View_Models
/// Validates that a GIF is loaded and in the model instance.
/// If not instance is loaded a prompt is displayed to the user.
/// </summary>
/// <returns> True iff a gif file is loaded and stored in the model. False else. /returns>
/// <returns> True iff a gif file is loaded and stored in the model. False else. </returns>
private Boolean chkImage()
{
try
......@@ -63,7 +60,7 @@ namespace Gifitti.View_Models
int Length = globalGif.GetFrameCount(FrameDimension.Time);
return true;
}
catch (Exception e)
catch (Exception)
{
MessageBox.Show("Must load a gif before this option is availiable!");
}
......@@ -353,6 +350,7 @@ namespace Gifitti.View_Models
//set the initial frames in textbox
textBox1.Text = "0";
textBox2.Text = gm.numberOfFrames.ToString();
//Transformation.TransformGif.resizeGif(this.gm, 100, 100); //TODO: remove temporarily used for testing
}
}
......@@ -377,5 +375,15 @@ namespace Gifitti.View_Models
{
delay = (10-trackBar1.Value)*10;
}
private void MenuItemResize(object sender, EventArgs e)
{
if (chkImage()) {
int height = gifView.Height;
int width = gifView.Width;
SaveAsXbyYPrompt save = new SaveAsXbyYPrompt(width,height,gm);
save.Show();
}
}
}
}
namespace Gifitti.View_Models
{
partial class SaveAsXbyYPrompt
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.HeightTextBox = new System.Windows.Forms.TextBox();
this.WidthTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.SaveAsButton = new System.Windows.Forms.Button();
this.saveGifFileDialog = new System.Windows.Forms.SaveFileDialog();
this.SuspendLayout();
//
// HeightTextBox
//
this.HeightTextBox.AccessibleDescription = "User Input for Height";
this.HeightTextBox.AccessibleName = "HeightTextBox";
this.HeightTextBox.Location = new System.Drawing.Point(148, 67);
this.HeightTextBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.HeightTextBox.Name = "HeightTextBox";
this.HeightTextBox.Size = new System.Drawing.Size(89, 22);
this.HeightTextBox.TabIndex = 0;
this.HeightTextBox.TextChanged += new System.EventHandler(this.heightChanged);
//
// WidthTextBox
//
this.WidthTextBox.AccessibleDescription = "User Input for Width";
this.WidthTextBox.AccessibleName = "WidthTextBox";
this.WidthTextBox.Location = new System.Drawing.Point(148, 31);
this.WidthTextBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.WidthTextBox.Name = "WidthTextBox";
this.WidthTextBox.Size = new System.Drawing.Size(89, 22);
this.WidthTextBox.TabIndex = 1;
this.WidthTextBox.TextChanged += new System.EventHandler(this.widthChanged);
//
// label1
//
this.label1.AccessibleName = "WidthLabel";
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(33, 36);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 17);
this.label1.TabIndex = 2;
this.label1.Text = "Width";
//
// label2
//
this.label2.AccessibleName = "HeightLabel";
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(33, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(49, 17);
this.label2.TabIndex = 3;
this.label2.Text = "Height";
//
// SaveAsButton
//
this.SaveAsButton.AccessibleName = "SaveAS";
this.SaveAsButton.Location = new System.Drawing.Point(76, 157);
this.SaveAsButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.SaveAsButton.Name = "SaveAsButton";
this.SaveAsButton.Size = new System.Drawing.Size(113, 29);
this.SaveAsButton.TabIndex = 4;
this.SaveAsButton.Text = "Save As...";
this.SaveAsButton.UseVisualStyleBackColor = true;
this.SaveAsButton.Click += new System.EventHandler(this.SaveAsButtonClick);
//
// SaveAsXbyYPrompt
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(247, 195);
this.Controls.Add(this.SaveAsButton);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.WidthTextBox);
this.Controls.Add(this.HeightTextBox);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "SaveAsXbyYPrompt";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SaveAsXbyYPrompt";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox HeightTextBox;
private System.Windows.Forms.TextBox WidthTextBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button SaveAsButton;
private System.Windows.Forms.SaveFileDialog saveGifFileDialog;
}
}
\ No newline at end of file
using Gifitti.Models;
using Gifitti.Transformation;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gifitti.View_Models
{
public partial class SaveAsXbyYPrompt : Form
{
GifModel gm;
int width = 0;
int height = 0;
public SaveAsXbyYPrompt(int width, int height, GifModel gm)
{
InitializeComponent();
this.width = width;
this.height = height;
WidthTextBox.Text = this.width.ToString();
HeightTextBox.Text = this.height.ToString();
this.gm = gm; //make this a clone
}
private void SaveAsButtonClick(object sender, EventArgs e)
{
TransformGif.resizeGif(gm, width, height);
String path = null;
saveGifFileDialog.Filter = "GIF Files|*.gif";
if (saveGifFileDialog.ShowDialog() == DialogResult.OK)
path = saveGifFileDialog.FileName;
//Handel Close
if (path == null)
return;
//TODO temp write
Console.WriteLine(path);
try
{
gm.saveGif(path);
}
catch (DirectoryNotFoundException)
{
MessageBox.Show("Save Path Invalid!");
}
this.Close();
}
private void widthChanged(object sender, EventArgs e)
{
int w = 0;
if (int.TryParse(WidthTextBox.Text, out w)){
width = w;
}
}
private void heightChanged(object sender, EventArgs e)
{
int h = 0;
if (int.TryParse(HeightTextBox.Text,out h))
{
height = h;
}
}
}
}
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="saveGifFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment