static public void EditStoneItem() { Stone stone = StonesView.GetCurrentSelectedStone(); if (stone != null) { if (stone.MediaType == 1) { NewStone newstone = new NewStone(); newstone.CurrentStone = stone; newstone.EditMode = true; newstone.FolderUponCaptureEvent = StonesView.CurrentPath; newstone.ShowDialog(); } else if (stone.MediaType == 2) { NewStomeMovie newstonemovie = new NewStomeMovie(); newstonemovie.CurrentStone = stone; newstonemovie.EditMode = true; newstonemovie.FolderUponCaptureEvent = StonesView.CurrentPath; newstonemovie.ShowDialog(); } } }
static void stack_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2) { StonesView.EditStoneItem(); } }