private void btnNew_Click(object sender, EventArgs e) { var f = new frmGradientEdit(); if (f.ShowDialog(this) == DialogResult.OK) { ReloadList(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (NoneSelected()) { return; } var f = new frmGradientEdit(); f.LoadData(GetSelectedNode()); if (f.ShowDialog(this) == DialogResult.OK) { ReloadList(); } }