示例#1
0
        private void ShowDetails(object sender, MouseButtonEventArgs e)
        {
            ListView  v      = sender as ListView;
            EditLokal elokal = new EditLokal(this, v.SelectedIndex);

            elokal.Show();
        }
示例#2
0
 private void MyImage_MouseUp(object sender, MouseButtonEventArgs e)
 {
     for (int i = 0; i < this.Items.Count; i++)
     {
         Lokal lokal = this.Items[i];
         if (!lokal.XPoint.ContainsKey(this.ActiveMap))
         {
             continue;
         }
         if (lokal.XPoint[this.ActiveMap] - picSize <startPoint.X && lokal.YPoint[this.ActiveMap] + picSize> startPoint.Y)
         {
             if (lokal.XPoint[this.ActiveMap] + picSize > startPoint.X && lokal.YPoint[this.ActiveMap] - picSize < startPoint.Y)
             {
                 EditLokal elokal = new EditLokal(this, i);
                 elokal.Show();
                 break;
             }
         }
     }
 }