예제 #1
0
        private static void CreateVersionDbWindow()
        {
            CreateDialog dlg = new CreateDialog(null, "files", "versiondb");

            dlg.ShowDialogEx();
            HTree.CallRefreshRoot();
        }
예제 #2
0
 public override bool SaveAs()
 {
     if (!Directory.Exists(Core.ChartsDirectory))
     {
         Directory.CreateDirectory(Core.ChartsDirectory);
     }
     saveFileDialog1.InitialDirectory = Core.ChartsDirectory;
     saveFileDialog1.CustomPlaces.Add(Core.ChartsDirectory);
     if (saveFileDialog1.ShowDialogEx() == DialogResult.OK)
     {
         m_file = new DiskFile(saveFileDialog1.FileName);
         ChangedWinId();
         Save();
         UpdateTitle();
         m_modified = false;
         if (!IOTool.RelativePathTo(Core.ScriptsDirectory, saveFileDialog1.FileName).StartsWith(".."))
         {
             HTree.CallRefreshRoot();
         }
         return(true);
     }
     return(false);
 }