using System;
using System.Collections.Generic;
using System.Text;
using IReaper.Initializer;
namespace IReaper.Statues{
class IStatusStripIInitBridege : IAsyncTaskContainer,IiReaperStatusStrip
{
IAsyncTaskContainer asyncContainer;
IiReaperStatusStrip iReaperStatusStrip;
#region Attributes
public IAsyncTaskContainer AsyncContainer
{
get { return asyncContainer; }
set { asyncContainer = value; }
}
internal IiReaperStatusStrip IReaperStatusStrip
{
get { return iReaperStatusStrip; }
set { iReaperStatusStrip = value; }
}
#endregion
#region IAsyncTaskContainer
public void SetException(Exception e)
{
this.SetMessage(e.Message);
}
public void SetMessage(string Message)
{
if (this.iReaperStatusStrip != null)
this.iReaperStatusStrip.TaskMessage = Message;
}
#endregion
#region IiReaperStatusStrip
public string InfomationMessage
{
set
{
if (this.asyncContainer != null)
this.asyncContainer.SetMessage(value);
}
}
int IiReaperStatusStrip.Percentage
{
set { iReaperStatusStrip.Percentage = value; }
}
public string TaskMessage
{
set
{
if (this.asyncContainer != null)
this.asyncContainer.SetMessage(value);
}
}
public void BeginAsyncWork(AsyncWork Work)
{
throw new Exception("The method or operation is not implemented.");
}
#endregion
}
}
|