コード例 #1
0
ファイル: StonesView.cs プロジェクト: gitter-badger/GS
        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();
                }
            }
        }
コード例 #2
0
ファイル: StonesView.cs プロジェクト: gitter-badger/GS
 static void stack_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2)
     {
         StonesView.EditStoneItem();
     }
 }