Exemple #1
0
        private void NewCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            string fileName;

            if (SystemDialogs.SaveFile(this, string.Empty, out fileName))
            {
                hyperlinkInterface.CreateNewFile(fileName);
                recentProjectMenu.Notify(fileName);
                Search();
                UpdateStatusInfo();
            }
        }
Exemple #2
0
 private bool LoadLastProject()
 {
     try
     {
         string lastProject = ConfigSettings.LastProject;
         if (!string.IsNullOrEmpty(lastProject))
         {
             syncProject.Load(lastProject);
             ListviewHelper.ReloadListview(listView1, imageList, syncProject.SyncItems);
             recentProjectMenu.Notify(lastProject);
             recentProjectMenu.CurrentlyOpenedFile = lastProject;
             this.Text = WindowCaption();
             EnableControls();
             return(true);
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(this, exception.Message, ConfigSettings.ApplicationTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     return(false);
 }