private void CheckButton_Click(object sender, EventArgs e) { if (FunctionList.SelectedItems.Count == 0) { return; } var func = itemToOffset[FunctionList.SelectedItems[0]]; var dialog = new SelectTreeDialog(ActiveObject.Resource); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { SetCheck(func, dialog.ResultID); } }
private void CheckButton_Click(object sender, EventArgs e) { if (FunctionList.SelectedItems.Count == 0) return; var func = itemToOffset[FunctionList.SelectedItems[0]]; var dialog = new SelectTreeDialog(ActiveObject.Resource); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) SetCheck(func, dialog.ResultID); }