コード例 #1
0
        private void setSekijiElement(ClsSekiji clsSekiji, String sName, int nRType, int nHType)
        {
            Canvas    cnvs;
            TextBlock tblk;

            clsSekiji.m_sName           = sName;
            clsSekiji.m_nRyouriType     = nRType;
            clsSekiji.m_nHikidemonoType = nHType;

            cnvs = clsSekiji.getNameCanvas();
            //tb.BorderBrush = m_brushNomal;
            //tb.BorderThickness = m_thicknessNomal;
            tblk            = (TextBlock)cnvs.Children[0];
            tblk.Text       = sName;
            tblk.Foreground = m_clsHaiseki.m_lstRyouri[nRType].getBrush();

            cnvs = clsSekiji.getHkdmnCanvas();
            tblk = (TextBlock)cnvs.Children[0];
            if (0 <= nHType)
            {
                cnvs.Background = m_clsHaiseki.m_lstHikidemono[nHType].getBrush();
                tblk.Text       = m_clsHaiseki.m_lstHikidemono[nHType].m_sName;
            }
            else
            {
                cnvs.Background = null;
                tblk.Text       = "";
            }
        }
コード例 #2
0
ファイル: classdef.cs プロジェクト: tatsumiking/GitBackup
        public void createListElement()
        {
            int       idx, max;
            ClsSekiji clsSekiji;

            max = Constants.SEETMAX;
            for (idx = 0; idx < max; idx++)
            {
                clsSekiji = new ClsSekiji();
                m_lstSekiji.Add(clsSekiji);
            }
        }
コード例 #3
0
ファイル: classdef.cs プロジェクト: tatsumiking/GitBackup
        public void createListElement()
        {
            int           idx, max;
            ClsTable      clsTable;
            ClsSekiji     clsSekiji;
            ClsHikidemono clsHikidemono;
            ClsRyouri     clsRyouri;

            max = Constants.SOURYOSEETMAX;
            for (idx = 0; idx < max; idx++)
            {
                clsSekiji = new ClsSekiji();
                m_lstSouryo.Add(clsSekiji);
            }
            max = Constants.TABLEMAX;
            for (idx = 0; idx < max; idx++)
            {
                clsTable = new ClsTable();
                clsTable.createListElement();
                m_lstTable.Add(clsTable);
            }
            max = m_nHikidemonoSetCount + 1;
            for (idx = 0; idx < max; idx++)
            {
                clsHikidemono = new ClsHikidemono();
                clsHikidemono.createListElement();
                m_lstHikidemono.Add(clsHikidemono);
            }
            m_lstHikidemono[0].m_sName = "A";
            m_lstHikidemono[0].m_sArgb = "0xFFC8C8FF";
            m_lstHikidemono[0].createBrush();
            m_lstHikidemono[1].m_sName = "B";
            m_lstHikidemono[1].m_sArgb = "0xFFC8FFC8";
            m_lstHikidemono[1].createBrush();
            m_lstHikidemono[2].m_sName = "C";
            m_lstHikidemono[2].m_sArgb = "0xFFFFC8C8";
            m_lstHikidemono[2].createBrush();
            m_lstHikidemono[3].m_sName = "D";
            m_lstHikidemono[3].m_sArgb = "0xFFC8FFFF";
            m_lstHikidemono[3].createBrush();
            m_lstHikidemono[4].m_sName = "E";
            m_lstHikidemono[4].m_sArgb = "0xFFFFC8FF";
            m_lstHikidemono[4].createBrush();
            m_lstHikidemono[5].m_sName = "F";
            m_lstHikidemono[5].m_sArgb = "0xFFFFFFC8";
            m_lstHikidemono[5].createBrush();

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "料理+黒飯+団子";
            clsRyouri.m_sArgb = "0x000000";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "お子様ランチ";
            clsRyouri.m_sArgb = "0xFFFF0000";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "ジュニアランチ";
            clsRyouri.m_sArgb = "0xFF883300";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "料理+黒飯";
            clsRyouri.m_sArgb = "0xFF008800";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "料理+団子";
            clsRyouri.m_sArgb = "0xFF0088FF";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "料理";
            clsRyouri.m_sArgb = "0xFF000088";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "特別メニュー";
            clsRyouri.m_sArgb = "0xFFDD8800";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "供養膳";
            clsRyouri.m_sArgb = "0xFF000000";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);

            clsRyouri         = new ClsRyouri();
            clsRyouri.m_sName = "ゆでます";
            clsRyouri.m_sArgb = "0xFF000000";
            clsRyouri.createBrush();
            m_lstRyouri.Add(clsRyouri);
        }