示例#1
0
 private void lvSupps_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!internalSelect && SupplementSelected != null && lvSupps.SelectedIndices.Count > 0)
     {
         TIntArgs args = new TIntArgs();
         args.value = lvSupps.SelectedIndices[0];
         SupplementSelected.Invoke(sender, args);
     }
 }
示例#2
0
        private void lvSupps_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!internalSelect && SupplementSelected != null)
            {
                TreePath       selPath;
                TreeViewColumn selCol;
                lvSupps.GetCursor(out selPath, out selCol);

                TIntArgs args = new TIntArgs();
                args.value = selPath.Indices[0];
                SupplementSelected.Invoke(sender, args);
            }
        }
示例#3
0
        private void LvSupps_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (!internalSelect && SupplementSelected != null)
                {
                    TreePath       selPath;
                    TreeViewColumn selCol;
                    lvSupps.GetCursor(out selPath, out selCol);

                    TIntArgs args = new TIntArgs();
                    args.Value = selPath.Indices[0];
                    if (SupplementSelected != null)
                    {
                        SupplementSelected.Invoke(sender, args);
                    }
                }
            }
            catch (Exception err)
            {
                ShowError(err);
            }
        }