private void f_main_Shown(object sender, EventArgs e) { // si on a pas trouvé le RP dans le fichier de config, on demande au user de le définir if (!Program._rpChanged) { Program._rootPath = Program.userDefineRootPath(sender, fbd_selectRootPath); Outils.updateFicLineWithMotif(Program._cfg, Program._rootPath, Program._motifRootPath); Outils.updateFicLineWithMotif(Program._cfg, Program._rpChanged, Program._motifRootPath); } }
private void btn_changeMangaDir_Click(object sender, EventArgs e) { string origin = Program._rootPath; Program._rootPath = Program.userDefineRootPath(sender, fbd_selectRootPath); if (Program._rpChanged) { l_mangaDir.Text = "Changer le répertoire de téléchargement (" + Program._rootPath + ")"; Outils.updateFicLineWithMotif(Program._cfg, Program._rootPath, Program._motifRootPath); Outils.updateFicLineWithMotif(Program._cfg, Program._rpChanged, Program._motifRootPath); Program.updFavPath(); string end = Program._rootPath; if (!String.IsNullOrEmpty(origin) && !String.IsNullOrEmpty(end) && !end.Equals(origin)) { Outils.moveAllDir(origin, end); } } }
private void cb_compress_CheckedChanged(object sender, EventArgs e) { Program._compress = cb_compress.Checked; Outils.updateFicLineWithMotif(Program._cfg, cb_compress.Checked, Program._motifCompress); }