示例#1
0
 public override void SetDefault()
 {
     Min        = Mtblib.Tools.MtbTools.MISSINGVALUE;
     Max        = Mtblib.Tools.MtbTools.MISSINGVALUE;
     Label      = new AxLabel(Direction);
     Ticks      = new ContTick();
     Refes      = new Refe(Direction);
     LDisplay   = null;
     HDisplay   = null;
     SecScale   = new ContSecScale(Direction);
     GetCommand = DefaultCommand;
 }
示例#2
0
        public override object Clone()
        {
            ContSecScale obj = new ContSecScale(Direction);

            if (this.Variable != null)
            {
                obj.Variable = this.Variable.Clone();
            }
            if (this.LDisplay != null)
            {
                obj.LDisplay = (int[])this.LDisplay.Clone();
            }
            if (this.HDisplay != null)
            {
                obj.HDisplay = (int[])this.HDisplay.Clone();
            }
            obj.Min   = this.Min;
            obj.Max   = this.Max;
            obj.Label = (AxLabel)this.Label.Clone();
            obj.Ticks = (ContTick)this.Ticks.Clone();
            obj.Refes = (Refe)this.Refes.Clone();
            return(obj);
        }