Ejemplo n.º 1
0
        public MainWindow()
        {
            Boolean ret;

            m_bErrFlag = false;
            InitializeComponent();
            m_nFirst          = 1;
            m_libCmn          = new LibCommon();
            m_libCurve        = new LibCurve();
            m_libCanvas       = new LibCanvas();
            m_libEsFont       = new LibEsFont();
            m_libWinFont      = new LibWinFont();
            m_scrnEnv         = new ScrnEnv();
            m_sExecPath       = InitExePath();
            m_bModify         = false;
            m_nNafudaSlctLine = 0;
            m_sBaindString    = "col_wakuname";
            ret = loadEnv();
            if (ret == false)
            {
                m_bErrFlag = true;
            }
            else
            {
                m_libWinFont.SetLibCmn(m_libCmn);
                m_libWinFont.SetExecPath(m_sExecPath);
                m_libWinFont.SetWinFontPath("c:\\windows\\Fonts");

                m_libEsFont.SetLibCmn(m_libCmn);
                m_libEsFont.SetLibCurve(m_libCurve);
                m_libEsFont.SetEsFontPath(m_sFontBasePath);
            }
        }
Ejemplo n.º 2
0
        public void SetMainWindowElement(MainWindow wnd, string sData)
        {
            string[] ary;
            int      max, idx;

            m_wnd       = wnd;
            m_sExecPath = m_wnd.m_sExecPath;
            m_libCmn    = m_wnd.m_libCmn;
            m_libCanvas = m_wnd.m_libCanvas;

            InitCommandString();

            ary         = sDenpyou.Split(',');
            m_sName     = ary[1];
            m_sSouke    = ary[3];
            m_sTuya     = ary[4];
            m_sKokubetu = ary[5];
            m_sSekou    = ary[6];
            m_nSumPrice = m_libCmn.StrToInt(ary[7]);

            m_list = new List <hanbai>();
            max    = lstHanbai.Count;
            for (idx = 0; idx < max; idx++)
            {
                hanbai        = new hanbai();
                ary           = lstHanbai[idx].Split(',');
                hanbai.name   = ary[2];
                hanbai.naiyou = ary[3];
                hanbai.tanka  = m_libCmn.StrToInt(ary[4]);
                hanbai.kosu   = m_libCmn.StrToInt(ary[5]);
                hanbai.price  = m_libCmn.StrToInt(ary[6]);
                hanbai.bikou  = ary[7];
                m_list.Add(hanbai);
            }
        }
Ejemplo n.º 3
0
        public override void SetLibCmnClass(LibCommon libCmn)
        {
            int idx, max;

            m_libCmn = libCmn;
            max      = m_lstObjVect.Count;
            for (idx = 0; idx < max; idx++)
            {
                m_lstObjVect[idx].SetLibCmnClass(libCmn);
            }
        }
Ejemplo n.º 4
0
 public virtual void SetLibCmnClass(LibCommon libCmn)
 {
     m_libCmn = libCmn;
 }
Ejemplo n.º 5
0
 public void SetLibCmn(LibCommon libCmn)
 {
     m_libCmn = libCmn;
 }
Ejemplo n.º 6
0
 public void SetMainWindow(MainWindow wnd)
 {
     m_wnd       = wnd;
     m_libCmn    = m_wnd.m_libCmn;
     m_libCanvas = m_wnd.m_libCanvas;
 }