private void ShareItem(MyItem item) { InputBox inputBox = new InputBox("Send to email:"); inputBox.Answered += InputBox_Answered; }
private void ShareButton_Click(object sender, RoutedEventArgs e) { MyItem item = (MyItem)((Image)sender).Tag; ShareItem(item); }
private void Image_MouseUp(object sender, MouseButtonEventArgs e) { MyItem item = (MyItem)((Image)sender).Tag; ShareItem(item); }