private void updateFields() { lblAbsolute.Text = Path.Combine(Environment.CurrentDirectory, "NewDarkLoader.dll"); tbCurrentDir.Text = Environment.CurrentDirectory; tbToRelative.Text = AbsRel.AbsoluteToRelative(tbOtherPath.Text); tbToAbsolute.Text = AbsRel.RelativeToAbsolute(tbToRelative.Text); }
private void chkRelaitvePaths_CheckedChanged(object sender, EventArgs e) { if (chkRelaitvePaths.Checked) { for (int i = 0; i < lbFMArchivePaths.Items.Count; i++) { lbFMArchivePaths.Items[i] = AbsRel.AbsoluteToRelative(lbFMArchivePaths.Items[i].ToString()); } tb7zGexe.Text = AbsRel.AbsoluteToRelative(tb7zGexe.Text); } else { for (int i = 0; i < lbFMArchivePaths.Items.Count; i++) { lbFMArchivePaths.Items[i] = AbsRel.RelativeToAbsolute(lbFMArchivePaths.Items[i].ToString()); } tb7zGexe.Text = AbsRel.RelativeToAbsolute(tb7zGexe.Text); } }