示例#1
0
 public void SetTitle(string title, int width)
 {
     if (SideTable.InvokeRequired)
     {
         DisplayTitleDelegate d = new DisplayTitleDelegate(SetTitle);
         this.Invoke(d, new object[] { title, width });
     }
     else
     {
         this.Text = title;
         chartLeft.DisplayWidthMax  = width;
         chartRight.DisplayWidthMax = width;
     }
 }
示例#2
0
        public void SetTitle(string title, int width)
        {
            if (SideTable.InvokeRequired)
            {
                DisplayTitleDelegate d = new DisplayTitleDelegate(SetTitle);
                this.Invoke(d, new object[] { title ,width });
            }
            else
            {
                this.Text = title;
                chartLeft.DisplayWidthMax = width;
                chartRight.DisplayWidthMax = width;
            }

        }