コード例 #1
0
 public void TryToApplySignature(DataGridViewSelectedRowCollection selectedRows, oFunctionList functionList)
 {
     DialogResult showDialog = ShowDialog();
     if (showDialog == DialogResult.OK)
     {
         foreach (ListViewItem item in listSignatures.Items)
         {
             if (item.Checked)
             {
                 EntpackSignature(item.SubItems[1].Text);
                 if (!BuildIndex()) return;
                 foreach (DataGridViewRow selectedRow in selectedRows)
                 {
                     oFunction function = functionList.getFunction(selectedRow.Index);
                     string functionName = GetFunctionName(function.getSignature());
                     if (functionName != string.Empty)
                         function.name = functionName;
                 }
             }
         }
     }
 }