Example #1
0
        public static void PreformDeleteOfStone(string file)
        {
            //string filename = Path.GetFileNameWithoutExtension(file);
              //  string ext = Path.GetExtension(file);
               //     string newfilename = Microsoft.VisualBasic.Interaction.InputBox("Enter a new filename for the current stone", "Rename the stone", filename);

            if (File.Exists(file))
            {
                File.Delete(file);

                StonesRepository rep = new StonesRepository(CurrentPath);
                rep.DeleteStone(Path.GetFileName(file));

                RefreshView();

            }
        }