Files
duplicati/Duplicati/GUI/Duplicati.GUI.TrayIcon/WindowsImplementation/BrowserWindow.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

58 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Duplicati.GUI.TrayIcon.Windows
{
public partial class WindowsBrowser : Form, IBrowserWindow
{
public WindowsBrowser(string url)
: this()
{
Browser.ObjectForScripting = new CallbackShim(this);
Browser.Url = new Uri(url);
Browser.Visible = false;
Browser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(OnBrowserLoad);
}
private void OnBrowserLoad(object target, WebBrowserDocumentCompletedEventArgs a)
{
Browser.Visible = true;
}
public WindowsBrowser()
{
InitializeComponent();
}
public string Title
{
set
{
this.Text = value;
}
}
public new WindowIcons Icon
{
set
{
switch (value)
{
case WindowIcons.LogWindow:
base.Icon = Properties.Resources.TrayNormal;
break;
default:
base.Icon = Properties.Resources.TrayNormal;
break;
}
}
}
}
}