Exemplo n.º 1
0
 private void btnAdvancedSetting_Click(object sender, EventArgs e)
 {
     WindowsFormsApp1.FormAdvancedSetting form = new WindowsFormsApp1.FormAdvancedSetting();
     if (form.ShowDialog() == DialogResult.OK)
     {
         this.Init();
     }
 }
Exemplo n.º 2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            WindowsFormsApp1.FormAdvancedSetting form = new WindowsFormsApp1.FormAdvancedSetting();
            var jsonSetting = JsonConvert.SerializeObject(form.fileSettings);

            ClassfyFile.Properties.Settings.Default.NormalSetting = jsonSetting;
            if (!string.IsNullOrEmpty(this.tbSetTarget.Text))
            {
                Properties.Settings.Default.TargetPath = this.tbSetTarget.Text;
            }
            else
            {
                MessageBox.Show("請輸入目標位置");
            }
            ClassfyFile.Properties.Settings.Default.Save();
            Init();
        }