Files
duplicati/Duplicati/GUI/Duplicati.GUI.TrayIcon/WindowsImplementation/CallbackShim.cs
T
kenneth@hexad.dk a0521da54d Initial version of the new block-based storage format.
Still needs a work over in terms of error handling, progress reporting, warning output, refactoring etc.
Also misses the volume reuse/reclaim algorithms.
But it passes the unit tests now, with and without a local database.

git-svn-id: https://duplicati.googlecode.com/svn/sandboxes/Kenneth/ForestHash@1526 59da171f-624f-0410-aa54-27559c288bec
2013-02-12 21:43:14 +00:00

40 lines
906 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Duplicati.GUI.TrayIcon.Windows
{
[System.Runtime.InteropServices.ComVisible(true)]
public class CallbackShim
{
private WindowsBrowser m_owner;
public CallbackShim(WindowsBrowser owner)
{
m_owner = owner;
}
public void setMinSize(int w, int h)
{
m_owner.MinimumSize = new Size(w, h);
}
public void setSize(int w, int h)
{
m_owner.Width = w;
m_owner.Height = h;
}
public void setTitle(string title)
{
m_owner.Text = title;
}
public void openWindow(string url)
{
WinFormsRunner.Instance.ShowUrlInWindow(Program.Connection.EditWindowURL + "?action=add-backup");
}
}
}