Esempio n. 1
0
        private void FormLoad(object sender, EventArgs e)
        {
            double min = GridInfo.MIN_GRID_VALUE / 10000.0F;
            double max = GridInfo.MAX_GRID_VALUE / 10000.0F;

            colorTextBack = textPitch.BackColor;

            labelPitchRange.Text     = String.Format("({0:##0.0###} - {1:##0.0###}mm)", min, max);
            spinDisplayEvery.Maximum = GridInfo.MIN_GRID_DISPLAY_EVERY;
            spinDisplayEvery.Maximum = GridInfo.MAX_GRID_DISPLAY_EVERY;

            SetCurrentGridInfoToCtrl();

            buttonDelete.Enabled = false;
            buttonUp.Enabled     = false; //20111008
            buttonDown.Enabled   = false; //20111008


            //MyStandard値のロード
#if !MONO
            Properties.Settings.Default.Reload();
#endif
            string     strGridInfo         = Properties.Settings.Default.MyStandardGridString;
            MbeMyStd[] myStandardGridArray = MbeMyStd.LoadMyStdInfoArray(strGridInfo);

            foreach (MbeMyStd gridInfo in myStandardGridArray)
            {
                listBoxMyStandard.Items.Add((GridInfo)gridInfo);
            }
        }
        private void LoadMyStandard()
        {
            //MyStandard値のロード
            string strMyStdInfo = Properties.Settings.Default.MyStandardTextString;

            MbeMyStd[] myStdInfoArray = MbeMyStd.LoadMyStdInfoArray(strMyStdInfo);

            foreach (MbeMyStd info in myStdInfoArray)
            {
                listBoxMyStandard.Items.Add((TextInfo)info);
            }
        }
Esempio n. 3
0
        //private string[] libPathNameArray;

        //public string[] LibPathNameArray
        //{
        //    get { return libPathNameArray; }
        //    //set { libPathNameArray = value; }
        //}

        private void LoadMyStandard()
        {
            //MyStandard値のロード
            string strMyStdInfo = Properties.Settings.Default.MyStandardLibString;

            MbeMyStd[] myStdInfoArray = MbeMyStd.LoadMyStdInfoArray(strMyStdInfo);

            foreach (MbeMyStd info in myStdInfoArray)
            {
                listBoxLib.Items.Add(((LibInfo)info).LibPath);
            }
        }
Esempio n. 4
0
        public static List <PrintPageLayerInfo> LoadMyStandard()
        {
            //MyStandard値のロード
            string strMyStdInfo = Properties.Settings.Default.MyStandardPrintPageLayerString;

            MbeMyStd[] myStdInfoArray = MbeMyStd.LoadMyStdInfoArray(strMyStdInfo);

            List <PrintPageLayerInfo> infoList = new List <PrintPageLayerInfo>();

            foreach (MbeMyStd info in myStdInfoArray)
            {
                infoList.Add((PrintPageLayerInfo)info);
            }
            return(infoList);
        }