예제 #1
0
        //-------------------------------------------------------------
        /// <summary>
        /// フォームが閉じられた時
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            //設定ファイルの保存
            JsonPref pref = new JsonPref();

            pref.SetPoint("Point", this.Location);

            pref.SetString("TargetDir", iconButtonList1.TargetDir);
            pref.SetSize("ButtonSize", iconButtonList1.ButtonSize);

            int[] cols = new int[3];
            cols[0] = iconButtonList1.ForeColor.ToArgb();
            cols[1] = iconButtonList1.BackColor.ToArgb();

            pref.SetIntArray("Color", cols);

            pref.SetString("Font", iconButtonList1.Font.Name);
            pref.SetDouble("FontSize", (double)iconButtonList1.Font.Size);
            pref.SetInt("FontStyle", (int)iconButtonList1.Font.Style);


            pref.SetBool("RelativePath", iconButtonList1.RelativePath);

            pref.Save();

            iconButtonList1.BackupStore();
        }