예제 #1
0
        protected virtual void LoadViewState(object savedState)
        {
            object[] pieces = savedState as object[];

            if (pieces == null)
            {
                return;
            }

            if (pieces[0] != null)
            {
                viewstate.LoadViewState(pieces[0]);
            }
            if (pieces[1] != null)
            {
                FooterStyle.LoadViewState(pieces[1]);
            }
            if (pieces[2] != null)
            {
                HeaderStyle.LoadViewState(pieces[2]);
            }
            if (pieces[3] != null)
            {
                ItemStyle.LoadViewState(pieces[3]);
            }
        }
예제 #2
0
 public ECharts.Entities.style.ItemStyle ItemStyle()
 {
     if (itemStyle == null)
     {
         itemStyle = new ItemStyle();
     }
     return(itemStyle);
 }
예제 #3
0
 public ItemStyle ItemStyle()
 {
     if (itemStyle == null)
     {
         itemStyle = new ItemStyle();
     }
     return(itemStyle);
 }
예제 #4
0
 public VWG.Community.Forms.Model.ECharts.style.ItemStyle ItemStyle()
 {
     if (itemStyle == null)
     {
         itemStyle = new ItemStyle();
     }
     return(itemStyle);
 }
예제 #5
0
 public ItemStyle ItemStyle()
 {
     if (itemStyle == null)
     {
         this.itemStyle = new style.ItemStyle();
     }
     return(this.itemStyle);
 }
예제 #6
0
 public ItemStyle Label()
 {
     if (label == null)
     {
         label = new ItemStyle();
     }
     return(label);
 }
예제 #7
0
 public ItemStyle LineStyle()
 {
     if (lineStyle == null)
     {
         lineStyle = new ItemStyle();
     }
     return(lineStyle);
 }
예제 #8
0
 public ItemStyle IconStyle()
 {
     if (iconStyle == null)
     {
         iconStyle = new ItemStyle();
     }
     return(iconStyle);
 }
예제 #9
0
 public TimeoutStop(uint fileLine, string name, uint line, int process)
 {
     this.mName 				= name;
     this.mLine 				= line;
     this.mProcess 			= process;
     this.mInitialHeight 	= 10;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= ItemPos.Left;
     this.mItemStyle 		= ItemStyle.Normal;
 }
예제 #10
0
        public string Translate(ItemStyle itemStyle)
        {
            var tags   = itemStyle.AsString(EnumFormat.Description);
            var values = tags.Split('|');
            var trans  = (values.Length > 1)
                                ? string.Format(values.Last(), this.TranslateXTag(values.First()))
                                : this.TranslateXTag(values.First());

            return(trans);
        }
예제 #11
0
 public ItemVerticalLine(uint line, int process, string identifier)
 {
     this.mLineBeginn 		= line;
     this.mProcess 			= process;
     this.mLineEnd 			= 0;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= ItemPos.Left;
     this.mItemStyle 		= ItemStyle.Normal;
     this.mIdentifier		= identifier;
 }
예제 #12
0
 public ItemVerticalLine(uint line, int process, string identifier, ItemPos placement, ItemStyle itemstyle)
 {
     this.mLineBeginn 		= line;
     this.mProcess 			= process;
     this.mLineEnd 			= 0;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= placement;
     this.mItemStyle 		= itemstyle;
     this.mIdentifier		= identifier;
 }
예제 #13
0
 public Result(string container, string containerName, int sackNumber, SackType sackType, ToFriendlyNameResult fnames)
 {
     this.Container     = container ?? throw new ArgumentNullException(nameof(container));
     this.ContainerName = containerName ?? throw new ArgumentNullException(nameof(containerName));
     this.SackNumber    = sackNumber;
     this.SackType      = sackType;
     this.FriendlyNames = fnames ?? throw new ArgumentNullException(nameof(fnames));
     this.ItemName      = fnames.FullNameClean;
     this.ItemStyle     = fnames.Item.ItemStyle;
     this.TQColor       = fnames.Item.ItemStyle.TQColor();
     this.RequiredLevel = GetRequirement(fnames.RequirementVariables.Values, "levelRequirement");
 }
예제 #14
0
 public TimerEnd(uint fileLine, uint line, string identifier, int process, ItemPos placement, ItemStyle iStyle)
 {
     this.mName 				= "";
     this.mLine 				= line;
     this.mProcess 			= process;
     this.mInitialHeight 	= 10;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= placement;
     this.mFileLine 			= fileLine;
     this.mItemStyle 		= iStyle;
     this.mIdentifier		= identifier;
     this.mTimerStyle		= TimerStyle.End;
 }
예제 #15
0
 public TimerEndProp(ItemPos pos, ItemStyle style)
 {
     //
     // The InitializeComponent() call is required for Windows Forms designer support.
     //
     InitializeComponent();
     SetSize();
     this.tabOptions.SelectedIndex = 2;
     mItemStyle = style;
     mItemPos = pos;
     DrawPropertyImage();
     this.hlpProvider.SetHelpKeyword(this.tabOptions, "dlgTimerEnd");
     this.hlpProvider.SetHelpNavigator(this.tabOptions, HelpNavigator.KeywordIndex);
 }
        private void ApplyStyleToSelectedRange(ItemStyle style)
        {
            var itemRange        = GetItemRange(flexGrid.Selection);
            var expressionString = "= true";
            var rule             = new C1.Win.RulesManager.Rule()
            {
                Name       = expressionString + " on " + itemRange.ToString(),
                Expression = expressionString,
                Style      = style
            };

            rule.AppliesTo.Add(itemRange);

            rulesManager.Rules.Add(rule);
        }
 public static bool IsNeedCorner(ItemStyle itemStyle)
 {
     if (itemStyle.cornerRadius == null)
     {
         return(false);
     }
     foreach (var value in itemStyle.cornerRadius)
     {
         if (value != 0)
         {
             return(true);
         }
     }
     return(false);
 }
예제 #18
0
        public override bool Equals(object obj)
        {
            var other = obj as IStyleSheet;

            if (other == null)
            {
                return(false);
            }

            return(base.Equals(other) &&
                   BaseStyle.Equals(other.BaseStyle) &&
                   ItemStyle.Equals(other.ItemStyle) &&
                   EdgeStyle.Equals(other.EdgeStyle) &&
                   BackColor.Equals(other.BackColor));
        }
예제 #19
0
파일: Result.cs 프로젝트: Knopy/TQVaultAE
        public Result(string container, string containerName, int sackNumber, SackType sackType, Item item)
        {
            this.Container     = container ?? throw new ArgumentNullException(nameof(container));
            this.ContainerName = containerName ?? throw new ArgumentNullException(nameof(containerName));
            this.SackNumber    = sackNumber;
            this.SackType      = sackType;
            this.Item          = item ?? throw new ArgumentNullException(nameof(item));
            this.ItemName      = Entities.Item.ClipColorTag(ItemProvider.ToFriendlyName(item));
            ItemStyle computedItemStyle = item.ItemStyle;

            this.ItemStyle = ItemStyleHelper.Translate(computedItemStyle);
            this.Color     = ItemGfxHelper.GetColor(computedItemStyle);
            var requirementVariables = ItemProvider.GetRequirementVariables(item).Values;

            this.RequiredLevel = GetRequirement(requirementVariables, "levelRequirement");
        }
예제 #20
0
        /// <summary>
        /// Gets the color for a particular item style
        /// </summary>
        /// <param name="style">ItemStyle enumeration</param>
        /// <returns>System.Drawing.Color for the particular itemstyle</returns>
        public static Color GetColor(ItemStyle style)
        {
            switch (style)
            {
            case ItemStyle.Broken:
                return(GetColor(TQColor.DarkGray));

            case ItemStyle.Common:
                return(GetColor(TQColor.Yellow));

            case ItemStyle.Epic:
                return(GetColor(TQColor.Blue));

            case ItemStyle.Legendary:
                return(GetColor(TQColor.Purple));

            case ItemStyle.Mundane:
                return(GetColor(TQColor.White));

            case ItemStyle.Potion:
                return(GetColor(TQColor.Red));

            case ItemStyle.Quest:
                return(GetColor(TQColor.Purple));

            case ItemStyle.Rare:
                return(GetColor(TQColor.Green));

            case ItemStyle.Relic:
                return(GetColor(TQColor.Orange));

            case ItemStyle.Parchment:
                return(GetColor(TQColor.Blue));

            case ItemStyle.Scroll:
                return(GetColor(TQColor.YellowGreen));

            case ItemStyle.Formulae:
                return(GetColor(TQColor.Turquoise));

            case ItemStyle.Artifact:
                return(GetColor(TQColor.Turquoise));

            default:
                return(Color.White);
            }
        }
        private RibbonItemStyles mapStyleFrom(ItemStyle itemStyle)
        {
            switch (itemStyle)
            {
            case ItemStyle.Large:
                return(RibbonItemStyles.Large);

            case ItemStyle.Small:
                return(RibbonItemStyles.SmallWithText | RibbonItemStyles.SmallWithoutText);

            case ItemStyle.All:
                return(RibbonItemStyles.All);

            default:
                throw new ArgumentOutOfRangeException("itemStyle");
            }
        }
예제 #22
0
            //--------------------------------------------------------------------
            public ItemStyle Clone()
            {
                ItemStyle value = new ItemStyle();

                if (this._BorderStyle != null)
                {
                    value.BorderStyle = this._BorderStyle.Clone();
                }
                if (this._ImageStyle != null)
                {
                    value.ImageStyle = this._ImageStyle.Clone();
                }
                if (this._TextStyle != null)
                {
                    value.TextStyle = this._TextStyle.Clone();
                }
                return(value);
            }
예제 #23
0
        /// <summary>
        /// Gets the string name of a particular item style
        /// </summary>
        /// <param name="itemStyle">ItemStyle enumeration</param>
        /// <returns>Localized string of the item style</returns>
        public static string GetItemStyleString(ItemStyle itemStyle)
        {
            switch (itemStyle)
            {
            case ItemStyle.Broken:
                return(Resources.ItemStyleBroken);

            case ItemStyle.Artifact:
                return(Resources.ItemStyleArtifact);

            case ItemStyle.Formulae:
                return(Resources.ItemStyleFormulae);

            case ItemStyle.Scroll:
                return(Resources.ItemStyleScroll);

            case ItemStyle.Parchment:
                return(Resources.ItemStyleParchment);

            case ItemStyle.Relic:
                return(Resources.ItemStyleRelic);

            case ItemStyle.Potion:
                return(Resources.ItemStylePotion);

            case ItemStyle.Quest:
                return(Resources.ItemStyleQuest);

            case ItemStyle.Epic:
                return(Resources.ItemStyleEpic);

            case ItemStyle.Legendary:
                return(Resources.ItemStyleLegendary);

            case ItemStyle.Rare:
                return(Resources.ItemStyleRare);

            case ItemStyle.Common:
                return(Resources.ItemStyleCommon);

            default:
                return(Resources.ItemStyleMundane);
            }
        }
예제 #24
0
파일: Result.cs 프로젝트: percmob/TQVaultAE
        public Result(string container, string containerName, int sackNumber, SackType sackType, Item item)
        {
            this.container     = container ?? throw new ArgumentNullException(nameof(container));
            this.containerName = containerName ?? throw new ArgumentNullException(nameof(containerName));
            this.sackNumber    = sackNumber;
            this.sackType      = sackType;
            this.item          = item ?? throw new ArgumentNullException(nameof(item));

            this.itemName = Item.ClipColorTag(item.ToString());

            ItemStyle computedItemStyle = item.ItemStyle;

            this.itemStyle = MainForm.GetItemStyleString(computedItemStyle);
            this.color     = Item.GetColor(computedItemStyle);

            var requirementVariables = item.GetRequirementVariables().Values;

            this.requiredLevel = GetRequirement(requirementVariables, "levelRequirement");
        }
예제 #25
0
 //--------------------------------------------------------------------
 public void MergeWith(ItemStyle Style)
 {
     if (Style == null)
     {
         return;
     }
     if (Style.BorderStyle != null)
     {
         this.BorderStyle = Style.BorderStyle.Clone();
     }
     if (Style.ImageStyle != null)
     {
         this.ImageStyle = Style.ImageStyle.Clone();
     }
     if (Style.TextStyle != null)
     {
         this.TextStyle = Style.TextStyle.Clone();
     }
     return;
 }
예제 #26
0
        protected override void LoadViewState(object savedState)
        {
            object[] state = (object[])savedState;
            base.LoadViewState(state [0]);
            if (state [1] != null)
            {
                ItemStyle.LoadViewState(state [1]);
            }
            if (state [2] != null)
            {
                SelectedItemStyle.LoadViewState(state [2]);
            }
            if (state [3] != null)
            {
                AlternatingItemStyle.LoadViewState(state [3]);
            }
            if (state [4] != null)
            {
                EditItemStyle.LoadViewState(state [4]);
            }
            if (state [5] != null)
            {
                SeparatorStyle.LoadViewState(state [5]);
            }
            if (state [6] != null)
            {
                HeaderStyle.LoadViewState(state [6]);
            }
            if (state [7] != null)
            {
                FooterStyle.LoadViewState(state [7]);
            }
#if NET_2_0
            if (state [8] != null)
            {
                ControlStyle.LoadViewState(state [8]);
            }
#endif
        }
예제 #27
0
 public InterpretResult AddTimerBegin(uint fileLine, string processName, uint line, string identifier, string name, ItemPos placement, ItemStyle itemstyle)
 {
     Process process;
     IEnumerator enumerator = processes.GetEnumerator();
     bool instanceFound = false;
     for(int i=0;i<processes.Count;i++){
         enumerator.MoveNext();
         process = (Process) enumerator.Current;
         if(process.ProcessName == processName){
             items.Add(new TimerBegin(fileLine, line, identifier,i,name, placement, itemstyle));
             AddItemVerticalLine(fileLine, line,identifier,i, placement, itemstyle);
             instanceFound = true;
             break;
         }
     }
     if (instanceFound==false)
         return InterpretResult.InstanceNotFound;
     mLines = Math.Max(mLines, line);
     return InterpretResult.Ok;
 }
예제 #28
0
 public InterpretResult addTimeoutStop(uint fileLine, string processName, uint line, string name, ItemPos placement, ItemStyle style)
 {
     Process process;
     IEnumerator enumerator = processes.GetEnumerator();
     bool lineFound = false;
     bool instanceFound = false;
     for(int j=0;j<processes.Count;j++){
         enumerator.MoveNext();
         process = (Process) enumerator.Current;
         if(process.ProcessName == processName){
             IEnumerator lEnumerator = lines.GetEnumerator();
             instanceFound = true;
             for(uint i=0;i<lines.Count;i++){
                 lEnumerator.MoveNext();
                 if ( lEnumerator.Current is ItemVerticalLine)
                     if((((ItemVerticalLine) lEnumerator.Current).LineEnd==0)&&(((ItemVerticalLine) lEnumerator.Current).Process == j)&&(((ItemVerticalLine) lEnumerator.Current).ItemPlacement == placement)&&(((ItemVerticalLine) lEnumerator.Current).Itemstyle == style)){
                         ((ItemVerticalLine) lEnumerator.Current).LineEnd = line-1;
                         items.Add(new TimeoutStop(fileLine, name,line, j, ((ItemVerticalLine) lEnumerator.Current).ItemPlacement, ((ItemVerticalLine) lEnumerator.Current).Itemstyle));
                         lineFound = true;
                         break;
                     }
             }
             break;
         }
     }
     if (instanceFound==false)
         return InterpretResult.InstanceNotFound;
     if (lineFound==false)
         return InterpretResult.LineNotExists;
     mLines = Math.Max(mLines, line);
     return InterpretResult.Ok;
 }
예제 #29
0
        public ItemStyle Label()
        {
            if(this.label == null)
                label = new ItemStyle();
            return this.label; 
		}
예제 #30
0
 public TimeoutStop(uint fileLine, uint line, int process, ItemPos placement)
 {
     this.mName 				= "";
     this.mLine 				= line;
     this.mProcess 			= process;
     this.mInitialHeight 	= 10;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= placement;
     this.mFileLine 			= fileLine;
     this.mItemStyle 		= ItemStyle.Normal;
 }
예제 #31
0
 public RadarData(object value, string name, ItemStyle itemStyle)
     : this(value,name)
 {
     this.itemStyle = itemStyle;
 }
예제 #32
0
 public ItemStyle ItemStyle()
 {
     if (itemStyle == null)
         itemStyle = new ItemStyle();
     return itemStyle;
 }
예제 #33
0
 /// <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(Condition));
     this.RuleCondition = new System.Windows.Forms.TextBox();
     this.LegendLabel = new System.Windows.Forms.TextBox();
     this.EditFilter = new System.Windows.Forms.Button();
     this.DeleteButton = new System.Windows.Forms.Button();
     this.LabelStyle = new ItemStyle();
     this.FeatureStyle = new ItemStyle();
     this.SuspendLayout();
     //
     // RuleCondition
     //
     resources.ApplyResources(this.RuleCondition, "RuleCondition");
     this.RuleCondition.Name = "RuleCondition";
     this.RuleCondition.TextChanged += new System.EventHandler(this.RuleCondition_TextChanged);
     //
     // LegendLabel
     //
     resources.ApplyResources(this.LegendLabel, "LegendLabel");
     this.LegendLabel.Name = "LegendLabel";
     this.LegendLabel.TextChanged += new System.EventHandler(this.LegendLabel_TextChanged);
     //
     // EditFilter
     //
     resources.ApplyResources(this.EditFilter, "EditFilter");
     this.EditFilter.Name = "EditFilter";
     this.EditFilter.UseVisualStyleBackColor = true;
     this.EditFilter.Click += new System.EventHandler(this.EditFilter_Click);
     //
     // DeleteButton
     //
     resources.ApplyResources(this.DeleteButton, "DeleteButton");
     this.DeleteButton.Name = "DeleteButton";
     this.DeleteButton.UseVisualStyleBackColor = true;
     this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click);
     //
     // LabelStyle
     //
     resources.ApplyResources(this.LabelStyle, "LabelStyle");
     this.LabelStyle.Name = "LabelStyle";
     this.LabelStyle.Owner = null;
     this.LabelStyle.DoubleClick += new System.EventHandler(this.FeatureStyle_Click);
     this.LabelStyle.Click += new System.EventHandler(this.FeatureStyle_Click);
     this.LabelStyle.ItemChanged += new System.EventHandler(this.LabelStyle_ItemChanged);
     //
     // FeatureStyle
     //
     resources.ApplyResources(this.FeatureStyle, "FeatureStyle");
     this.FeatureStyle.Name = "FeatureStyle";
     this.FeatureStyle.Owner = null;
     this.FeatureStyle.DoubleClick += new System.EventHandler(this.FeatureStyle_Click);
     this.FeatureStyle.Click += new System.EventHandler(this.FeatureStyle_Click);
     this.FeatureStyle.ItemChanged += new System.EventHandler(this.FeatureStyle_ItemChanged);
     //
     // Condition
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.Controls.Add(this.DeleteButton);
     this.Controls.Add(this.EditFilter);
     this.Controls.Add(this.LegendLabel);
     this.Controls.Add(this.RuleCondition);
     this.Controls.Add(this.LabelStyle);
     this.Controls.Add(this.FeatureStyle);
     this.MaximumSize = new System.Drawing.Size(0, 20);
     this.MinimumSize = new System.Drawing.Size(577, 23);
     this.Name = "Condition";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #34
0
 public Series SetItemStyle(ItemStyle itemStyle)
 {
     this.itemStyle = itemStyle;
     return this;
 }
예제 #35
0
 public static void RepertoryImage(Graphics drawDestination, ItemPos pos, ItemStyle style, MscStyle style2, TimerStyle tStyle)
 {
     StringFormat itemStringFormat = new StringFormat();
     if (style2 == MscStyle.UML2){
         if (pos == ItemPos.Left){
             if(style == ItemStyle.Normal){
                 RectangleF itemBox = new RectangleF(10,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,70,60,85,60);
                 drawDestination.DrawLine(Pens.Black,75,10,75,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,75,59,72,53);
                     drawDestination.DrawLine(Pens.Black,75,59,78,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,70,55,80,65);
                     drawDestination.DrawLine(Pens.Black,70,65,80,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedOuter){
                 RectangleF itemBox = new RectangleF(0,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,30,60,85,60);
                 drawDestination.DrawLine(Pens.Black,35,10,35,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,35,59,32,53);
                     drawDestination.DrawLine(Pens.Black,35,59,38,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,30,55,40,65);
                     drawDestination.DrawLine(Pens.Black,30,65,40,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedInner){
                 RectangleF itemBox = new RectangleF(36,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,30,60,85,60);
                 drawDestination.DrawLine(Pens.Black,35,10,35,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,35,59,32,53);
                     drawDestination.DrawLine(Pens.Black,35,59,38,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,30,55,40,65);
                     drawDestination.DrawLine(Pens.Black,30,65,40,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
         }
         else if (pos == ItemPos.Right){
             if(style == ItemStyle.Normal){
                 RectangleF itemBox = new RectangleF(25,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,30,60);
                 drawDestination.DrawLine(Pens.Black,25,10,25,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,25,59,22,53);
                     drawDestination.DrawLine(Pens.Black,25,59,28,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,20,55,30,65);
                     drawDestination.DrawLine(Pens.Black,20,65,30,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedOuter){
                 RectangleF itemBox = new RectangleF(65,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,70,60);
                 drawDestination.DrawLine(Pens.Black,65,10,65,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,65,59,62,53);
                     drawDestination.DrawLine(Pens.Black,65,59,68,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,60,55,70,65);
                     drawDestination.DrawLine(Pens.Black,60,65,70,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedInner){
                 RectangleF itemBox = new RectangleF(0,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,70,60);
                 drawDestination.DrawLine(Pens.Black,65,10,65,60);
                 if (tStyle == TimerStyle.End){
                     drawDestination.DrawLine(Pens.Black,65,59,62,53);
                     drawDestination.DrawLine(Pens.Black,65,59,68,53);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,60,55,70,65);
                     drawDestination.DrawLine(Pens.Black,60,65,70,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
         }
     }
     else if (style2 == MscStyle.SDL){
         if (pos == ItemPos.Left){
             if(style == ItemStyle.Normal){
                 RectangleF itemBox = new RectangleF(10,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,75,60,85,60);
                 drawDestination.DrawLine(Pens.Black,75,10,75,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(85, 60);
                     capPolygon[1] = new PointF(79, 57);
                     capPolygon[2] = new PointF(79, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,70,55,80,65);
                     drawDestination.DrawLine(Pens.Black,70,65,80,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedOuter){
                 RectangleF itemBox = new RectangleF(0,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,35,60,85,60);
                 drawDestination.DrawLine(Pens.Black,35,10,35,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(85, 60);
                     capPolygon[1] = new PointF(79, 57);
                     capPolygon[2] = new PointF(79, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,30,55,40,65);
                     drawDestination.DrawLine(Pens.Black,30,65,40,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedInner){
                 RectangleF itemBox = new RectangleF(36,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                 drawDestination.DrawLine(Pens.Black,35,60,85,60);
                 drawDestination.DrawLine(Pens.Black,35,10,35,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(85, 60);
                     capPolygon[1] = new PointF(79, 57);
                     capPolygon[2] = new PointF(79, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,30,55,40,65);
                     drawDestination.DrawLine(Pens.Black,30,65,40,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
         }
         else if (pos == ItemPos.Right){
             if(style == ItemStyle.Normal){
                 RectangleF itemBox = new RectangleF(25,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,25,60);
                 drawDestination.DrawLine(Pens.Black,25,10,25,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(15, 60);
                     capPolygon[1] = new PointF(21, 57);
                     capPolygon[2] = new PointF(21, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,20,55,30,65);
                     drawDestination.DrawLine(Pens.Black,20,65,30,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedOuter){
                 RectangleF itemBox = new RectangleF(65,40,35,20);
                 itemStringFormat.Alignment = StringAlignment.Near;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,65,60);
                 drawDestination.DrawLine(Pens.Black,65,10,65,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(15, 60);
                     capPolygon[1] = new PointF(21, 57);
                     capPolygon[2] = new PointF(21, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,60,55,70,65);
                     drawDestination.DrawLine(Pens.Black,60,65,70,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
             else if(style == ItemStyle.ExtendedInner){
                 RectangleF itemBox = new RectangleF(0,40,65,20);
                 itemStringFormat.Alignment = StringAlignment.Far;
                 drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                 drawDestination.DrawLine(Pens.Black,15,60,65,60);
                 drawDestination.DrawLine(Pens.Black,65,10,65,60);
                 if (tStyle == TimerStyle.End){
                     PointF[] capPolygon = new PointF[3];
                     capPolygon[0] = new PointF(15, 60);
                     capPolygon[1] = new PointF(21, 57);
                     capPolygon[2] = new PointF(21, 63);
                     drawDestination.FillPolygon(Brushes.Black,capPolygon);
                 }
                 else if (tStyle == TimerStyle.Break){
                     drawDestination.DrawLine(Pens.Black,60,55,70,65);
                     drawDestination.DrawLine(Pens.Black,60,65,70,55);
                 }
                 drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
             }
         }
     }
     itemStringFormat.Dispose();
 }
예제 #36
0
 public TimeoutStop(uint fileLine, string name, uint line, int process, ItemPos placement, ItemStyle itemstyle)
 {
     this.mName 				= name;
     this.mLine 				= line;
     this.mProcess 			= process;
     this.mInitialHeight 	= 10;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mPos 				= placement;
     this.mFileLine 			= fileLine;
     this.mItemStyle 		= itemstyle;
 }
예제 #37
0
 public InterpretResult AddItemVerticalLine(uint fileLine, uint line, string identifier, int process, ItemPos placement, ItemStyle itemstyle)
 {
     if (process >= processes.Count)
         return InterpretResult.InstanceNotFound;
     IEnumerator enumerator = lines.GetEnumerator();
     for(uint i=0;i<lines.Count;i++){
         enumerator.MoveNext();
         if ( enumerator.Current is ItemVerticalLine)
             if((((ItemVerticalLine) enumerator.Current).LineEnd==0)&&(((ItemVerticalLine) enumerator.Current).Process == process)&&(((ItemVerticalLine) enumerator.Current).ItemPlacement == placement)&&(((ItemVerticalLine) enumerator.Current).Itemstyle == itemstyle)&&(((ItemVerticalLine) enumerator.Current).Identifier == identifier)) return InterpretResult.LineAllreadyExists;
     }
     lines.Add(new ItemVerticalLine(line+1, process, identifier, placement, itemstyle));
     return InterpretResult.Ok;
 }
예제 #38
0
 public SeriesData(T value, ItemStyle itemStyle)
     : this(value, (ToolTip)null, itemStyle)
 {
 }
예제 #39
0
 /// <summary>
 /// Gets the color for a particular item style
 /// </summary>
 /// <param name="style">ItemStyle enumeration</param>
 /// <returns>System.Drawing.Color for the particular itemstyle</returns>
 public static Color Color(this ItemStyle style)
 {
     return(style.TQColor().Color());
 }
예제 #40
0
 public SeriesData(T value, ToolTip tooltip, ItemStyle itemStyle)
 {
     Value     = value;
     Tooltip   = tooltip;
     ItemStyle = itemStyle;
 }
예제 #41
0
 /// <summary>
 /// Xem một điểm có nằm trong vùng vẽ của đỉnh hay cạnh ko
 /// </summary>
 /// <param name="Location">Vị trí điểm cần xét</param>
 /// <param name="Style">Là đỉnh hay là cạnh</param>
 /// <param name="Index">Trả về vị trí của đỉnh hoặc cạnh mà điểm đang xét nằm trong</param>
 /// <returns>true nếu có / false nếu ko</returns>
 private bool Contains(Point Location, ItemStyle Style, ref int Index)
 {
     if (Style == ItemStyle.aVertex)
     {
         for (int i = 0; i < Vertices.Count; i++)
             if (Vertices[i].Rectangle.Contains(Location))
             {
                 Index = i;
                 return true;
             }
     }
     else //if (Style == ItemStyle.aEdge)
     {
         for (int i = 0; i < Edges.Count; i++)
             if (Edges[i].Rectangle.Contains(Location))
             {
                 Index = i;
                 return true;
             }
     }
     return false;
 }
예제 #42
0
        private void resolveSlot(EquippableSlot slot)
        {
            var wantedItem = slot.equippedItem;

            ZLog.Log("Resolving slot: " + wantedItem);

            if (slot.shouldRemoveVisual())
            {
                slot.removeVisual();
                return;
            }

            if (slot.rendered())
            {
                return;
            }

            GameObject wantedPrefab = ObjectDB.instance.GetItemPrefab(wantedItem);

            if (wantedPrefab == null)
            {
                ZLog.LogWarning("Missing item prefab " + wantedItem);
            }
            else
            {
                ItemDrop component = wantedPrefab.GetComponent <ItemDrop>();
                //ZLog.Log("Running onCreateVisual");
                slot.OnCreateVisual(slot, component);

                // This is the gameobject in the prefab that gets instantiated and attached to the stand
                GameObject wantedAttachPrefab = this.GetAttachPrefab(wantedPrefab);
                if (wantedAttachPrefab == null)
                {
                    // Can happen if a gameobject is not found with attach or attach_skin name, sometimes prefabs just change
                    // the player's textures and don't add any new geometry.
                    ZLog.LogWarning("Failed to get attach prefab for item " + wantedPrefab);
                    slot.visualObject = new VisualEquipment {
                        prefabName = wantedItem,
                        drop       = wantedPrefab.GetComponent <ItemDrop>(),
                        gameObject = new GameObject()
                    };
                }
                else
                {
                    Transform attach      = this.GetAttach(component.m_itemData);
                    var       attachPoint = this.chestStand.transform;
                    if (slot.GetAttachPoint(slot) != null)
                    {
                        attachPoint = slot.GetAttachPoint(slot).transform;
                    }
                    var attachedEquipment = UnityEngine.Object.Instantiate <GameObject>(wantedAttachPrefab, attachPoint.position, attachPoint.parent.rotation, attachPoint.parent);

                    slot.visualObject = new VisualEquipment {
                        prefabName = wantedItem,
                        drop       = wantedPrefab.GetComponent <ItemDrop>(),
                        gameObject = attachedEquipment
                    };

                    var skinned = slot.bindSkeletonToStand();

                    if (!skinned)
                    {
                        // if it's not skinned, make it look the same way as the attached point
                        attachedEquipment.transform.SetPositionAndRotation(
                            attachPoint.position,
                            attachPoint.rotation
                            );
                    }

                    foreach (Cloth cloth in attachedEquipment.GetComponentsInChildren <Cloth>())
                    {
                        //ZLog.Log("Setting cloth colliders");

                        if (this.m_clothColliders.Length != 0)
                        {
                            if (cloth.capsuleColliders.Length != 0)
                            {
                                List <CapsuleCollider> list2 = new List <CapsuleCollider>(m_clothColliders);
                                list2.AddRange(cloth.capsuleColliders);
                                cloth.capsuleColliders = list2.ToArray();
                            }
                            else
                            {
                                cloth.capsuleColliders = this.m_clothColliders;
                            }
                        }
                    }

                    // attach may be disabled.
                    attachedEquipment.SetActive(true);

                    // may be item variants
                    ItemStyle componentInChildren = attachedEquipment.GetComponentInChildren <ItemStyle>();
                    if (componentInChildren == null)
                    {
                        return;
                    }
                    componentInChildren.Setup(slot.equippedVariant);
                }
            }
        }
예제 #43
0
 public ItemStyle Label()
 {
     if (label == null)
         label = new ItemStyle();
     return label;
 }
예제 #44
0
        public ItemStyle ItemStyle()
        {
            if(this.itemStyle==null)
                itemStyle = new ItemStyle();
		  return this.itemStyle; 
		}
예제 #45
0
 public Series SetItemStyle(ItemStyle itemStyle)
 {
     this.itemStyle = itemStyle;
     return(this);
 }
예제 #46
0
        public static void RepertoryImage(Graphics drawDestination, ItemPos pos, ItemStyle style, MscStyle style2)
        {
            StringFormat itemStringFormat = new StringFormat();
            if (style2 == MscStyle.UML2){
                if (pos == ItemPos.Left){
                    if(style == ItemStyle.Normal){
                        RectangleF itemBox = new RectangleF(10,27,65,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,70,20,85,20);
                        drawDestination.DrawLine(Pens.Black,75,20,75,70);
                        drawDestination.DrawLine(Pens.Black,75,21,72,27);
                        drawDestination.DrawLine(Pens.Black,75,21,78,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedOuter){
                        RectangleF itemBox = new RectangleF(0,27,35,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,30,20,85,20);
                        drawDestination.DrawLine(Pens.Black,35,20,35,70);
                        drawDestination.DrawLine(Pens.Black,35,21,32,27);
                        drawDestination.DrawLine(Pens.Black,35,21,38,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedInner){
                        RectangleF itemBox = new RectangleF(36,27,35,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,30,20,85,20);
                        drawDestination.DrawLine(Pens.Black,35,20,35,70);
                        drawDestination.DrawLine(Pens.Black,35,21,32,27);
                        drawDestination.DrawLine(Pens.Black,35,21,38,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                }
                else if (pos == ItemPos.Right){
                    if(style == ItemStyle.Normal){
                        RectangleF itemBox = new RectangleF(25,27,65,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,20,30,20);
                        drawDestination.DrawLine(Pens.Black,25,20,25,70);
                        drawDestination.DrawLine(Pens.Black,25,21,22,27);
                        drawDestination.DrawLine(Pens.Black,25,21,28,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedOuter){
                        RectangleF itemBox = new RectangleF(65,27,35,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,20,70,20);
                        drawDestination.DrawLine(Pens.Black,65,20,65,70);
                        drawDestination.DrawLine(Pens.Black,65,21,62,27);
                        drawDestination.DrawLine(Pens.Black,65,21,68,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedInner){
                        RectangleF itemBox = new RectangleF(0,27,65,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,20,70,20);
                        drawDestination.DrawLine(Pens.Black,65,20,65,70);
                        drawDestination.DrawLine(Pens.Black,65,21,62,27);
                        drawDestination.DrawLine(Pens.Black,65,21,68,27);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                }
            }
            else if (style2 == MscStyle.SDL){
                if (pos == ItemPos.Left){
                    if(style == ItemStyle.Normal){
                        RectangleF itemBox = new RectangleF(20,12,65,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,75,30,85,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(75, 30);
                        capPolygon[1] = new PointF(80, 25);
                        capPolygon[2] = new PointF(70, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(75, 30);
                        capPolygon[1] = new PointF(80, 35);
                        capPolygon[2] = new PointF(70, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,75,35,75,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedOuter){

                        RectangleF itemBox = new RectangleF(5,12,35,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,35,30,85,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(35, 30);
                        capPolygon[1] = new PointF(40, 25);
                        capPolygon[2] = new PointF(30, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(35, 30);
                        capPolygon[1] = new PointF(40, 35);
                        capPolygon[2] = new PointF(30, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,35,35,35,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedInner){
                        RectangleF itemBox = new RectangleF(35,12,35,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,85,10,85,70);
                        drawDestination.DrawLine(Pens.Black,35,30,85,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(35, 30);
                        capPolygon[1] = new PointF(40, 25);
                        capPolygon[2] = new PointF(30, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(35, 30);
                        capPolygon[1] = new PointF(40, 35);
                        capPolygon[2] = new PointF(30, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,35,35,35,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                }
                else if (pos == ItemPos.Right){
                    if(style == ItemStyle.Normal){
                        RectangleF itemBox = new RectangleF(16,12,65,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,30,25,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(25, 30);
                        capPolygon[1] = new PointF(30, 25);
                        capPolygon[2] = new PointF(20, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(25, 30);
                        capPolygon[1] = new PointF(30, 35);
                        capPolygon[2] = new PointF(20, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,25,35,25,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedOuter){

                        RectangleF itemBox = new RectangleF(65,12,35,20);
                        itemStringFormat.Alignment = StringAlignment.Near;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,30,65,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(65, 30);
                        capPolygon[1] = new PointF(70, 25);
                        capPolygon[2] = new PointF(60, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(65, 30);
                        capPolygon[1] = new PointF(70, 35);
                        capPolygon[2] = new PointF(60, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,65,35,65,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                    else if(style == ItemStyle.ExtendedInner){
                        RectangleF itemBox = new RectangleF(15,12,50,20);
                        itemStringFormat.Alignment = StringAlignment.Far;
                        drawDestination.DrawLine(Pens.DarkGray,15,10,15,70);
                        drawDestination.DrawLine(Pens.Black,15,30,65,30);
                        PointF[] capPolygon = new PointF[3];
                        capPolygon[0] = new PointF(65, 30);
                        capPolygon[1] = new PointF(70, 25);
                        capPolygon[2] = new PointF(60, 25);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        capPolygon[0] = new PointF(65, 30);
                        capPolygon[1] = new PointF(70, 35);
                        capPolygon[2] = new PointF(60, 35);
                        drawDestination.DrawPolygon(Pens.Black,capPolygon);
                        drawDestination.DrawLine(Pens.Black,65,35,65,70);
                        drawDestination.DrawString("Timer",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat);
                    }
                }
            }

            itemStringFormat.Dispose();
        }