Example #1
0
 private void LoadDefaultSettings()
 {
     SmallUtil.GetSettings(ref this.textBox1, Settingd._Makeobjpath, Settingd._UseMakeobjSamepath);
     SmallUtil.GetSettings(ref this.textBox2, Settingd._Pakpath, Settingd._UsePakSamepath);
     SmallUtil.GetSettings(ref this.textBox3, Settingd._Extractpath, Settingd._UseExtractSamepath);
     SmallUtil.GetSettings(ref this.textBox4, Settingd._Mergepath, Settingd._UseMergeSamepath);
     SmallUtil.GetSettings(Settingd._UseMakeobjSamepath, this.radioButton1, this.radioButton2);
     SmallUtil.GetSettings(Settingd._UsePakSamepath, this.radioButton3, this.radioButton4);
     SmallUtil.GetSettings(Settingd._UseExtractSamepath, this.radioButton5, this.radioButton6);
     SmallUtil.GetSettings(Settingd._UseMergeSamepath, this.radioButton7, this.radioButton8);
 }
Example #2
0
 private void button1_MouseClick(object sender, MouseEventArgs e)
 {
     SmallUtil.SaveSettings(Settingd._Makeobjpath, this.textBox1);
     SmallUtil.SaveSettings(Settingd._Pakpath, this.textBox2);
     SmallUtil.SaveSettings(Settingd._Extractpath, this.textBox3);
     SmallUtil.SaveSettings(Settingd._Mergepath, this.textBox4);
     SmallUtil.SaveSettings(Settingd._UseMakeobjSamepath, this.radioButton1, this.radioButton2);
     SmallUtil.SaveSettings(Settingd._UsePakSamepath, this.radioButton3, this.radioButton4);
     SmallUtil.SaveSettings(Settingd._UseExtractSamepath, this.radioButton5, this.radioButton6);
     SmallUtil.SaveSettings(Settingd._UseMergeSamepath, this.radioButton7, this.radioButton8);
     this.canBeClose = true;
     this.pakHelperOptions_FormBeforeClosing();
 }
Example #3
0
        private void SaveSettings(String FilePath)
        {
            String JsonStrings = "";

            if (SmallUtil.CreateJsonString(ref JsonStrings,
                                           Settingd._Makeobjpath,
                                           Settingd._Pakpath,
                                           Settingd._Extractpath,
                                           Settingd._Mergepath,
                                           Settingd._UseMakeobjSamepath,
                                           Settingd._UsePakSamepath,
                                           Settingd._UseExtractSamepath,
                                           Settingd._UseMergeSamepath))
            {
                if (FSUtil.WriteFiles(FilePath, JsonStrings))
                {
                }
                else
                {
                }
            }
        }