예제 #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);
            }
        }