예제 #1
0
    private bool SaveCollection()
    {
        StylesheetHelper.StylesheetCollection.Description = descriptionTextBox.Text;

        string fileName = GetFileName();

        if (fileName != null)
        {
            StylesheetHelper.SaveStylesheetCollection(fileName);
            CopyStylesheetCollectionToInitialStylesheetCollection();
            SetChangesMade(false);
            return(true);
        }

        return(false);
    }
예제 #2
0
    public static void SaveSession()
    {
        if (TaskHelper.TaskCollectionFileName == null || TaskHelper.TaskCollectionFileName == GetSessionTaskCollectionFileName())
        {
            TaskHelper.TaskCollectionFileName = GetSessionTaskCollectionFileName();
            TaskHelper.SaveTaskCollection(TaskHelper.TaskCollectionFileName);
        }

        RegistryHandler.SaveToRegistry("TaskCollectionFileName", TaskHelper.TaskCollectionFileName);

        if (StylesheetHelper.StylesheetCollectionFileName == null || StylesheetHelper.StylesheetCollectionFileName == GetSessionStylesheetCollectionFileName())
        {
            StylesheetHelper.StylesheetCollectionFileName = GetSessionStylesheetCollectionFileName();
            StylesheetHelper.SaveStylesheetCollection(StylesheetHelper.StylesheetCollectionFileName);
        }

        RegistryHandler.SaveToRegistry("StylesheetCollectionFileName", StylesheetHelper.StylesheetCollectionFileName);
    }