Update the Progress Bar as the RO values are refreshed in Word

This commit is contained in:
Rich
2013-02-28 23:36:45 +00:00
parent 4abaceac23
commit f2c8ac8740
4 changed files with 88 additions and 8 deletions

View File

@@ -12,8 +12,47 @@ using DevComponents.DotNetBar;
namespace Volian.Controls.Library
{
public delegate void DisplayTabControlEvent(object sender,EventArgs args);
public delegate void DisplayTabControlStatusEvent(object sender, DisplayTabControlStatusEventArgs args);
public partial class DisplayTabControlStatusEventArgs : EventArgs
{
private VolianStatusType _Type;
public VolianStatusType Type
{
get { return _Type; }
set { _Type = value; }
}
private int _Count;
public int Count
{
get { return _Count; }
set { _Count = value; }
}
private string _Text;
public string Text
{
get { return _Text; }
set { _Text = value; }
}
public DisplayTabControlStatusEventArgs()
{
_Type = VolianStatusType.Initialize;
_Count = 0;
_Text = "Default";
}
public DisplayTabControlStatusEventArgs(VolianStatusType type, int count, string text)
{
_Type = type;
_Count = count;
_Text = text;
}
}
public partial class DisplayTabControl : UserControl
{
public event DisplayTabControlStatusEvent StatusChanged;
public void ONStatusChanged(object Sender, DisplayTabControlStatusEventArgs args)
{
if (StatusChanged != null) StatusChanged(Sender, args);
}
public event DisplayTabControlEvent ToggleRibbonExpanded;
public void OnToggleRibbonExpanded(object sender, EventArgs args)
{