Beispiel #1
0
        //設定ファイルの保存
        public void saveSetting()
        {
            Point pt    = this.PointToScreen(new Point(0.0d, 0.0d));
            int   flame = 0;

            if (isFlameMode == true)
            {
                flame = 1;
            }

            SettingData data = new SettingData
            {
                x         = pt.X,
                y         = pt.Y,
                width     = this.Width,
                height    = this.Height,
                FlameMode = flame,
                rotation  = this.rotation
            };

            XmlFileIO.xmlSave(data.GetType(), "config.xml", data);
        }
Beispiel #2
0
        //設定ファイルの読み込み
        public void loadSetting()
        {
            object      data   = new SettingData();
            File_Status status =  XmlFileIO.xmlLoad(data.GetType(), "config.xml", out data);

            if (status == File_Status.sucsess)
            {
                SettingData castData = (SettingData)data;
                this.Left     = castData.x;
                this.Top      = castData.y;
                this.Width    = castData.width;
                this.Height   = castData.height;
                this.rotation = (byte)castData.rotation;

                if (castData.FlameMode == 1)
                {
                    this.isFlameMode = true;
                }
                else
                {
                    this.isFlameMode = false;
                }
            }
        }