1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[KOE-24] Added dialog layout, not functional yet

This commit is contained in:
Patrick Simpson 2017-05-17 13:48:29 +02:00
parent 489da51e51
commit 420868106c
7 changed files with 1110 additions and 1 deletions

View File

@ -227,6 +227,12 @@
<Compile Include="Controls\KDialogNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Controls\KHintButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\KProgressBar.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\KSelectionManager.cs" />
<Compile Include="Controls\KTreeNode.cs" />
<Compile Include="Controls\KTreeNodeLoader.cs" />
@ -288,6 +294,12 @@
<DependentUpon>SignaturesSettings.cs</DependentUpon>
</Compile>
<Compile Include="Features\SyncState\FeatureSyncState.cs" />
<Compile Include="Features\SyncState\SyncStateDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Features\SyncState\SyncStateDialog.Designer.cs">
<DependentUpon>SyncStateDialog.cs</DependentUpon>
</Compile>
<Compile Include="GlobalOptions.cs" />
<Compile Include="Logging.cs" />
<Compile Include="Native\IOleWindow.cs" />
@ -572,6 +584,9 @@
<EmbeddedResource Include="Features\Signatures\SignaturesSettings.resx">
<DependentUpon>SignaturesSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Features\SyncState\SyncStateDialog.resx">
<DependentUpon>SyncStateDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Acacia.Controls
{
/// <summary>
/// A button that adds a hint.
/// </summary>
public class KHintButton : Button
{
[Category("Kopano"), Localizable(true)]
public string Hint
{
get;
set;
}
public class HintEventArgs : EventArgs
{
public readonly string Hint;
public bool ShowHint
{
get { return !string.IsNullOrEmpty(Hint); }
}
public HintEventArgs(string hint)
{
this.Hint = hint;
}
}
public delegate void HintEventHandler(object sender, HintEventArgs e);
[Category("Kopano")]
public event HintEventHandler ShowHint;
protected override void OnMouseEnter(EventArgs e)
{
base.OnMouseEnter(e);
if (ShowHint != null)
ShowHint(this, new HintEventArgs(Hint));
}
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
if (ShowHint != null)
ShowHint(this, new HintEventArgs(null));
}
}
}

View File

@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Acacia.Controls
{
/// <summary>
/// Simple progress bar subclass that properly paints the background color.
/// </summary>
public class KProgressBar : ProgressBar
{
[Category("Appearance")]
public Color BorderColor
{
get;
set;
}
[Category("Appearance")]
public int BorderWidth
{
get;
set;
}
public KProgressBar()
{
BorderWidth = 1;
//SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.UserPaint, true);
//SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
//SetStyle(ControlStyles.AllPaintingInWmPaint, true);
}
protected override void OnPaintBackground(PaintEventArgs pevent)
{
// Don't paint background to prevent flicker
}
protected override void OnPaint(PaintEventArgs e)
{
using (Image offscreenImage = new Bitmap(this.Width, this.Height))
using (Graphics g = Graphics.FromImage(offscreenImage))
{
using (SolidBrush brushFilled = new SolidBrush(ForeColor))
using (SolidBrush brushBackground = new SolidBrush(BackColor))
{
float percent = (float)(Value - Minimum) / (float)(Maximum - Minimum);
Rectangle baseRectangle = ClientRectangle;
baseRectangle.Shrink(new Padding(BorderWidth));
Rectangle rectFilled = baseRectangle;
Rectangle rectBackground = baseRectangle;
Rectangle rectBorder = ClientRectangle;
// Calculate area for drawing the progress.
rectFilled.Width = (int)(rectFilled.Width * percent);
rectBackground.X = rectFilled.Right;
rectBackground.Width = ClientRectangle.Width - rectBackground.X;
// Draw the progress meter.
g.FillRectangle(brushFilled, rectFilled);
g.FillRectangle(brushBackground, rectBackground);
DrawBorder(g);
}
e.Graphics.DrawImage(offscreenImage, 0, 0);
}
}
private bool IsMouseOver
{
get
{
return ClientRectangle.Contains(PointToClient(Cursor.Position));
}
}
private void DrawBorder(Graphics g)
{
int PenWidth = BorderWidth;
using (Pen pen = new Pen(IsMouseOver ? BorderColor : BackColor))
{
g.DrawLine(pen,
new Point(this.ClientRectangle.Left, this.ClientRectangle.Top),
new Point(this.ClientRectangle.Width - PenWidth, this.ClientRectangle.Top));
g.DrawLine(pen,
new Point(this.ClientRectangle.Left, this.ClientRectangle.Top),
new Point(this.ClientRectangle.Left, this.ClientRectangle.Height - PenWidth));
g.DrawLine(pen,
new Point(this.ClientRectangle.Left, this.ClientRectangle.Height - PenWidth),
new Point(this.ClientRectangle.Width - PenWidth, this.ClientRectangle.Height - PenWidth));
g.DrawLine(pen,
new Point(this.ClientRectangle.Width - PenWidth, this.ClientRectangle.Top),
new Point(this.ClientRectangle.Width - PenWidth, this.ClientRectangle.Height - PenWidth));
}
}
}
}

View File

@ -149,7 +149,7 @@ namespace Acacia.Features.SyncState
public override void Startup()
{
_state = new SyncStateData(this);
_button = RegisterButton(this, "Progress", true, ShowSyncState, ZPushBehaviour.None);
_button = RegisterButton(this, "Progress", true, ShowSyncState, ZPushBehaviour.Disable);
_button.DataProvider = _state;
// Add a sync task to start checking. If this finds it's not fully synchronised, it will check more often
Watcher.Sync.AddTask(this, Name, CheckSyncState);
@ -330,6 +330,7 @@ namespace Acacia.Features.SyncState
private void ShowSyncState()
{
new SyncStateDialog(this).ShowDialog();
}
}
}

View File

@ -0,0 +1,202 @@
namespace Acacia.Features.SyncState
{
partial class SyncStateDialog
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SyncStateDialog));
this._layout = new System.Windows.Forms.TableLayoutPanel();
this._buttons = new Acacia.Controls.KDialogButtons();
this._layoutMain = new System.Windows.Forms.TableLayoutPanel();
this._labelRemaining = new System.Windows.Forms.Label();
this._labelAccount = new System.Windows.Forms.Label();
this.comboAccounts = new System.Windows.Forms.ComboBox();
this._labelProgress = new System.Windows.Forms.Label();
this.progress = new Acacia.Controls.KProgressBar();
this.textRemaining = new System.Windows.Forms.Label();
this._labelResync = new System.Windows.Forms.Label();
this.buttonGAB = new Acacia.Controls.KHintButton();
this.buttonSignatures = new Acacia.Controls.KHintButton();
this.buttonServerData = new Acacia.Controls.KHintButton();
this.buttonFullResync = new Acacia.Controls.KHintButton();
this._labelResyncOption = new System.Windows.Forms.Label();
this._layout.SuspendLayout();
this._layoutMain.SuspendLayout();
this.SuspendLayout();
//
// _layout
//
resources.ApplyResources(this._layout, "_layout");
this._layout.Controls.Add(this._buttons, 0, 1);
this._layout.Controls.Add(this._layoutMain, 0, 0);
this._layout.Name = "_layout";
//
// _buttons
//
resources.ApplyResources(this._buttons, "_buttons");
this._buttons.ButtonSize = null;
this._buttons.Cancellation = null;
this._buttons.HasApply = false;
this._buttons.IsDirty = false;
this._buttons.Name = "_buttons";
//
// _layoutMain
//
resources.ApplyResources(this._layoutMain, "_layoutMain");
this._layoutMain.Controls.Add(this._labelRemaining, 0, 2);
this._layoutMain.Controls.Add(this._labelAccount, 0, 0);
this._layoutMain.Controls.Add(this.comboAccounts, 1, 0);
this._layoutMain.Controls.Add(this._labelProgress, 0, 1);
this._layoutMain.Controls.Add(this.progress, 1, 1);
this._layoutMain.Controls.Add(this.textRemaining, 1, 2);
this._layoutMain.Controls.Add(this._labelResync, 0, 3);
this._layoutMain.Controls.Add(this.buttonGAB, 1, 3);
this._layoutMain.Controls.Add(this.buttonSignatures, 1, 4);
this._layoutMain.Controls.Add(this.buttonServerData, 1, 5);
this._layoutMain.Controls.Add(this.buttonFullResync, 1, 6);
this._layoutMain.Controls.Add(this._labelResyncOption, 1, 7);
this._layoutMain.Name = "_layoutMain";
//
// _labelRemaining
//
resources.ApplyResources(this._labelRemaining, "_labelRemaining");
this._labelRemaining.Name = "_labelRemaining";
//
// _labelAccount
//
resources.ApplyResources(this._labelAccount, "_labelAccount");
this._labelAccount.Name = "_labelAccount";
//
// comboAccounts
//
resources.ApplyResources(this.comboAccounts, "comboAccounts");
this.comboAccounts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboAccounts.FormattingEnabled = true;
this.comboAccounts.Items.AddRange(new object[] {
resources.GetString("comboAccounts.Items")});
this.comboAccounts.Name = "comboAccounts";
//
// _labelProgress
//
resources.ApplyResources(this._labelProgress, "_labelProgress");
this._labelProgress.Name = "_labelProgress";
//
// progress
//
this.progress.BackColor = System.Drawing.SystemColors.Window;
this.progress.BorderColor = System.Drawing.SystemColors.ActiveBorder;
this.progress.BorderWidth = 1;
resources.ApplyResources(this.progress, "progress");
this.progress.Name = "progress";
this.progress.Step = 5;
//
// textRemaining
//
resources.ApplyResources(this.textRemaining, "textRemaining");
this.textRemaining.BackColor = System.Drawing.SystemColors.Window;
this.textRemaining.Name = "textRemaining";
//
// _labelResync
//
resources.ApplyResources(this._labelResync, "_labelResync");
this._labelResync.Name = "_labelResync";
//
// buttonGAB
//
resources.ApplyResources(this.buttonGAB, "buttonGAB");
this.buttonGAB.Name = "buttonGAB";
this.buttonGAB.Tag = "";
this.buttonGAB.UseVisualStyleBackColor = true;
this.buttonGAB.ShowHint += new Acacia.Controls.KHintButton.HintEventHandler(this.ShowHint);
this.buttonGAB.Click += new System.EventHandler(this.button1_Click);
//
// buttonSignatures
//
resources.ApplyResources(this.buttonSignatures, "buttonSignatures");
this.buttonSignatures.Name = "buttonSignatures";
this.buttonSignatures.UseVisualStyleBackColor = true;
this.buttonSignatures.ShowHint += new Acacia.Controls.KHintButton.HintEventHandler(this.ShowHint);
//
// buttonServerData
//
resources.ApplyResources(this.buttonServerData, "buttonServerData");
this.buttonServerData.Name = "buttonServerData";
this.buttonServerData.UseVisualStyleBackColor = true;
this.buttonServerData.ShowHint += new Acacia.Controls.KHintButton.HintEventHandler(this.ShowHint);
//
// buttonFullResync
//
resources.ApplyResources(this.buttonFullResync, "buttonFullResync");
this.buttonFullResync.Name = "buttonFullResync";
this.buttonFullResync.UseVisualStyleBackColor = true;
this.buttonFullResync.ShowHint += new Acacia.Controls.KHintButton.HintEventHandler(this.ShowHint);
//
// _labelResyncOption
//
resources.ApplyResources(this._labelResyncOption, "_labelResyncOption");
this._labelResyncOption.Name = "_labelResyncOption";
//
// SyncStateDialog
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.Controls.Add(this._layout);
this.DialogButtons = this._buttons;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "SyncStateDialog";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SettingsDialog_FormClosing);
this._layout.ResumeLayout(false);
this._layout.PerformLayout();
this._layoutMain.ResumeLayout(false);
this._layoutMain.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TableLayoutPanel _layout;
private Controls.KDialogButtons _buttons;
private System.Windows.Forms.TableLayoutPanel _layoutMain;
private System.Windows.Forms.Label _labelAccount;
private System.Windows.Forms.ComboBox comboAccounts;
private System.Windows.Forms.Label _labelProgress;
private Controls.KProgressBar progress;
private System.Windows.Forms.Label _labelRemaining;
private System.Windows.Forms.Label textRemaining;
private Controls.KHintButton buttonFullResync;
private Controls.KHintButton buttonServerData;
private Controls.KHintButton buttonSignatures;
private System.Windows.Forms.Label _labelResyncOption;
private System.Windows.Forms.Label _labelResync;
private Controls.KHintButton buttonGAB;
}
}

View File

@ -0,0 +1,64 @@
/// Copyright 2017 Kopano b.v.
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public License, version 3,
/// as published by the Free Software Foundation.
///
/// 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 Affero General Public License for more details.
///
/// You should have received a copy of the GNU Affero General Public License
/// along with this program.If not, see<http://www.gnu.org/licenses/>.
///
/// Consult LICENSE file for details
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Acacia.UI;
using Acacia.Controls;
using Acacia.ZPush;
namespace Acacia.Features.SyncState
{
public partial class SyncStateDialog : KDialogNew
{
private readonly FeatureSyncState _feature;
public SyncStateDialog(FeatureSyncState feature)
{
InitializeComponent();
this._feature = feature;
comboAccounts.SelectedIndex = 0;
// Add the accounts
foreach (ZPushAccount account in ThisAddIn.Instance.Watcher.Accounts.GetAccounts())
comboAccounts.Items.Add(account);
}
private void buttonApply_Click(object sender, EventArgs e)
{
}
private void SettingsDialog_FormClosing(object sender, FormClosingEventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
private void ShowHint(object sender, KHintButton.HintEventArgs e)
{
_labelResyncOption.Text = e.Hint ?? string.Empty;
}
}
}

View File

@ -0,0 +1,663 @@
<?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>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="_layout.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="_layout.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="_layout.ColumnCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="_buttons.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_buttons.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="_buttons.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="_buttons.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 286</value>
</data>
<data name="_buttons.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>2, 2, 2, 2</value>
</data>
<data name="_buttons.Size" type="System.Drawing.Size, System.Drawing">
<value>333, 35</value>
</data>
<data name="_buttons.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;_buttons.Name" xml:space="preserve">
<value>_buttons</value>
</data>
<data name="&gt;&gt;_buttons.Type" xml:space="preserve">
<value>Acacia.Controls.KDialogButtons, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;_buttons.Parent" xml:space="preserve">
<value>_layout</value>
</data>
<data name="&gt;&gt;_buttons.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="_layoutMain.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_layoutMain.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="_layoutMain.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="_labelRemaining.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_labelRemaining.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_labelRemaining.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="_labelRemaining.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 54</value>
</data>
<data name="_labelRemaining.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 25</value>
</data>
<data name="_labelRemaining.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="_labelRemaining.Text" xml:space="preserve">
<value>Remaining</value>
</data>
<data name="_labelRemaining.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;_labelRemaining.Name" xml:space="preserve">
<value>_labelRemaining</value>
</data>
<data name="&gt;&gt;_labelRemaining.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_labelRemaining.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_labelRemaining.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="_labelAccount.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_labelAccount.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_labelAccount.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 0</value>
</data>
<data name="_labelAccount.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 27</value>
</data>
<data name="_labelAccount.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="_labelAccount.Text" xml:space="preserve">
<value>Account</value>
</data>
<data name="_labelAccount.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;_labelAccount.Name" xml:space="preserve">
<value>_labelAccount</value>
</data>
<data name="&gt;&gt;_labelAccount.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_labelAccount.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_labelAccount.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="comboAccounts.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="comboAccounts.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Popup</value>
</data>
<data name="comboAccounts.Items" xml:space="preserve">
<value>All Z-Push accounts</value>
</data>
<data name="comboAccounts.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 3</value>
</data>
<data name="comboAccounts.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 21</value>
</data>
<data name="comboAccounts.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;comboAccounts.Name" xml:space="preserve">
<value>comboAccounts</value>
</data>
<data name="&gt;&gt;comboAccounts.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;comboAccounts.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;comboAccounts.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="_labelProgress.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_labelProgress.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_labelProgress.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 27</value>
</data>
<data name="_labelProgress.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 27</value>
</data>
<data name="_labelProgress.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="_labelProgress.Text" xml:space="preserve">
<value>Progress</value>
</data>
<data name="_labelProgress.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;_labelProgress.Name" xml:space="preserve">
<value>_labelProgress</value>
</data>
<data name="&gt;&gt;_labelProgress.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_labelProgress.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_labelProgress.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="progress.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="progress.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 30</value>
</data>
<data name="progress.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 21</value>
</data>
<data name="progress.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;progress.Name" xml:space="preserve">
<value>progress</value>
</data>
<data name="&gt;&gt;progress.Type" xml:space="preserve">
<value>Acacia.Controls.KProgressBar, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;progress.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;progress.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="textRemaining.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="textRemaining.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="textRemaining.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 57</value>
</data>
<data name="textRemaining.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="textRemaining.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 3, 3</value>
</data>
<data name="textRemaining.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 19</value>
</data>
<data name="textRemaining.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="&gt;&gt;textRemaining.Name" xml:space="preserve">
<value>textRemaining</value>
</data>
<data name="&gt;&gt;textRemaining.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;textRemaining.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;textRemaining.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="_labelResync.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="_labelResync.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_labelResync.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 79</value>
</data>
<data name="_labelResync.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 29</value>
</data>
<data name="_labelResync.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="_labelResync.Text" xml:space="preserve">
<value>Resynchronise</value>
</data>
<data name="_labelResync.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;_labelResync.Name" xml:space="preserve">
<value>_labelResync</value>
</data>
<data name="&gt;&gt;_labelResync.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_labelResync.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_labelResync.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="buttonGAB.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonGAB.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonGAB.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="buttonGAB.Hint" xml:space="preserve">
<value>Resynchronise the global address book</value>
</data>
<data name="buttonGAB.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonGAB.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 82</value>
</data>
<data name="buttonGAB.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 23</value>
</data>
<data name="buttonGAB.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="buttonGAB.Text" xml:space="preserve">
<value>Global Address Book</value>
</data>
<data name="&gt;&gt;buttonGAB.Name" xml:space="preserve">
<value>buttonGAB</value>
</data>
<data name="&gt;&gt;buttonGAB.Type" xml:space="preserve">
<value>Acacia.Controls.KHintButton, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;buttonGAB.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;buttonGAB.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="buttonSignatures.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonSignatures.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonSignatures.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="buttonSignatures.Hint" xml:space="preserve">
<value>Resynchronise all signatures from the server</value>
</data>
<data name="buttonSignatures.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonSignatures.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 111</value>
</data>
<data name="buttonSignatures.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 23</value>
</data>
<data name="buttonSignatures.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="buttonSignatures.Text" xml:space="preserve">
<value>Signatures</value>
</data>
<data name="&gt;&gt;buttonSignatures.Name" xml:space="preserve">
<value>buttonSignatures</value>
</data>
<data name="&gt;&gt;buttonSignatures.Type" xml:space="preserve">
<value>Acacia.Controls.KHintButton, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;buttonSignatures.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;buttonSignatures.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="buttonServerData.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonServerData.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonServerData.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="buttonServerData.Hint" xml:space="preserve">
<value>Resynchronise all server data on shared folders and out-of-office</value>
</data>
<data name="buttonServerData.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonServerData.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 140</value>
</data>
<data name="buttonServerData.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 23</value>
</data>
<data name="buttonServerData.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="buttonServerData.Text" xml:space="preserve">
<value>Server Data</value>
</data>
<data name="&gt;&gt;buttonServerData.Name" xml:space="preserve">
<value>buttonServerData</value>
</data>
<data name="&gt;&gt;buttonServerData.Type" xml:space="preserve">
<value>Acacia.Controls.KHintButton, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;buttonServerData.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;buttonServerData.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="buttonFullResync.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonFullResync.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonFullResync.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="buttonFullResync.Hint" xml:space="preserve">
<value>Fully resynchronise the Z-Push store. This requires a restart and may take some time.</value>
</data>
<data name="buttonFullResync.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonFullResync.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 169</value>
</data>
<data name="buttonFullResync.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 23</value>
</data>
<data name="buttonFullResync.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="buttonFullResync.Text" xml:space="preserve">
<value>Full Resynchronisation</value>
</data>
<data name="&gt;&gt;buttonFullResync.Name" xml:space="preserve">
<value>buttonFullResync</value>
</data>
<data name="&gt;&gt;buttonFullResync.Type" xml:space="preserve">
<value>Acacia.Controls.KHintButton, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;buttonFullResync.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;buttonFullResync.ZOrder" xml:space="preserve">
<value>10</value>
</data>
<data name="_labelResyncOption.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_labelResyncOption.Location" type="System.Drawing.Point, System.Drawing">
<value>86, 195</value>
</data>
<data name="_labelResyncOption.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 6, 0, 0</value>
</data>
<data name="_labelResyncOption.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 83</value>
</data>
<data name="_labelResyncOption.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="&gt;&gt;_labelResyncOption.Name" xml:space="preserve">
<value>_labelResyncOption</value>
</data>
<data name="&gt;&gt;_labelResyncOption.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_labelResyncOption.Parent" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_labelResyncOption.ZOrder" xml:space="preserve">
<value>11</value>
</data>
<data name="_layoutMain.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_layoutMain.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="_layoutMain.RowCount" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="_layoutMain.Size" type="System.Drawing.Size, System.Drawing">
<value>331, 278</value>
</data>
<data name="_layoutMain.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;_layoutMain.Name" xml:space="preserve">
<value>_layoutMain</value>
</data>
<data name="&gt;&gt;_layoutMain.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_layoutMain.Parent" xml:space="preserve">
<value>_layout</value>
</data>
<data name="&gt;&gt;_layoutMain.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="_layoutMain.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="_labelRemaining" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="_labelAccount" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="comboAccounts" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="_labelProgress" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="progress" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="textRemaining" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="_labelResync" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="buttonGAB" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="buttonSignatures" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="buttonServerData" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="buttonFullResync" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="_labelResyncOption" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="_layout.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="_layout.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="_layout.RowCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="_layout.Size" type="System.Drawing.Size, System.Drawing">
<value>337, 323</value>
</data>
<data name="_layout.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;_layout.Name" xml:space="preserve">
<value>_layout</value>
</data>
<data name="&gt;&gt;_layout.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;_layout.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;_layout.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="_layout.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="_buttons" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="_layoutMain" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Percent,100" /&gt;&lt;Rows Styles="Percent,100,AutoSize,0" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>337, 323</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Synchronisation State</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>SyncStateDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>Acacia.Controls.KDialogNew, Kopano, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>