Esempio n. 1
0
 //------------------------------------------------------
 public void Assign(TSColors tsc)
 {
     for (int i = 0; i < (int)TSColorIndex.Count; i++)
     {
         this.col[i] = tsc.col[i];
     }
 }
Esempio n. 2
0
        //---------------------------------------------------------------------
        private bool GetPrm()
        {
            if (tsg != null)
            {
                tsd  = tsg.tsd;
                cols = tsg.cols;
                if (tsg.OffsetYMax <= 0)
                {
                    tsg.GetStatus();
                }

                m_OffsetYMax = tsg.OffsetYMax;
                m_OffsetY    = tsg.OffsetY;
                m_FrameCount = tsg.tsd.FrameCount;
                m_FrameRate  = (int)tsd.FrameRate;
                m_Sec        = m_FrameCount / m_FrameRate;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 3
0
        public ColorSetting(TSColors c)
        {
            InitializeComponent();
            tsc_org = c;
            tsc.Assign(c);
            this.SuspendLayout();
            for (int i = 0; i < (int)TSColorIndex.Count; i++)
            {
                //インスタンス作成
                this.cc[i] = new ColorCaption();
                //プロパティ設定
                this.cc[i].Name     = "cc" + i.ToString();
                this.cc[i].Caption  = tsc.CaptionStr[i];
                this.cc[i].Size     = new Size(260, 18);
                this.cc[i].Location = new Point(16 + (i / 10) * 270, 32 + (i % 10) * 20);
            }

            //フォームにコントロールを追加
            this.Controls.AddRange(this.cc);
            this.ResumeLayout(false);


            toCaption();
        }