示例#1
0
        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);
            }
        }
示例#2
0
        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);
        }