Skip to content

Commit

Permalink
fill right-hand form when user selects a link
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas O'Connor committed May 31, 2016
1 parent 9a06eb3 commit 9baf074
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 35 deletions.
68 changes: 34 additions & 34 deletions TilandisGUI/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion TilandisGUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ private void clbk_linksel(object sender, EventArgs e) {
}

ListViewItem lvi_curitem = lst_links.SelectedItems[0];
MessageBox.Show(lvi_curitem.Text);

JObject prop_linksettings = (JObject) json_links.Value<JObject>(lvi_curitem.Text);

edt_linkname.Text = lvi_curitem.Text;
edt_pathname.Text = prop_linksettings.Value<string>("path");
edt_workdir.Text = prop_linksettings.Value<string>("workdir");
edt_args.Text = prop_linksettings.Value<string>("args");
cbx_asadmin.Checked = prop_linksettings.Value<bool>("asadmin");
}

private void func_reloadjson() {
Expand Down

0 comments on commit 9baf074

Please sign in to comment.