コード例 #1
0
        private void SaveMyStandard()
        {
            int count = listBoxMyStandard.Items.Count;

            TextInfo[] myStdInfoArray = new TextInfo[count];
            for (int i = 0; i < count; i++)
            {
                myStdInfoArray[i] = (TextInfo)(listBoxMyStandard.Items[i]);
            }
            Properties.Settings.Default.MyStandardTextString = MbeMyStd.SaveMyStdInfoArray(myStdInfoArray);
        }
コード例 #2
0
        public static void SaveMyStandard(List <PrintPageLayerInfo> infoList)
        {
            int count = infoList.Count;

            PrintPageLayerInfo[] myStdInfoArray = new PrintPageLayerInfo[count];
            for (int i = 0; i < count; i++)
            {
                myStdInfoArray[i] = infoList[i];
            }
            Properties.Settings.Default.MyStandardPrintPageLayerString = MbeMyStd.SaveMyStdInfoArray(myStdInfoArray);
            Properties.Settings.Default.Save();
        }
コード例 #3
0
        private void SaveMyStandard()
        {
            int count = listBoxLib.Items.Count;

            //libPathNameArray = new string[count];
            LibInfo[] myStdInfoArray = new LibInfo[count];
            for (int i = 0; i < count; i++)
            {
                LibInfo info = new LibInfo();
                info.LibPath = listBoxLib.Items[i].ToString();
                //libPathNameArray[i] = pathname;
                //info.LibPath = pathname;
                myStdInfoArray[i] = info;
            }
            Properties.Settings.Default.MyStandardLibString = MbeMyStd.SaveMyStdInfoArray(myStdInfoArray);
        }
コード例 #4
0
        private void DoOnOK()
        {
            if (!SaveGridInfoSetting())
            {
                return;
            }


            int count = listBoxMyStandard.Items.Count;

            GridInfo[] myStandardGridArray = new GridInfo[count];
            for (int i = 0; i < count; i++)
            {
                myStandardGridArray[i] = (GridInfo)(listBoxMyStandard.Items[i]);
                System.Diagnostics.Debug.WriteLine("SetGridForm-OnOK " + listBoxMyStandard.Items[i].ToString());
            }
            Properties.Settings.Default.MyStandardGridString = MbeMyStd.SaveMyStdInfoArray(myStandardGridArray);
            Properties.Settings.Default.Save();
            this.DialogResult = DialogResult.OK;
        }