コード例 #1
0
        public WorkspaceEditorWindow()
        {
            InitializeComponent();
            CurrentWorkspace = SessionManager.GetSession().CurrentWorkspace;

            if (CurrentWorkspace == null)
            {
                CurrentWorkspace = new Workspace();
            }

            displayWorkspaceValues();
        }
コード例 #2
0
 public static void Close(Workspace workspace)
 {
     workspace = null;
 }
コード例 #3
0
 public static void Save(string filename, Workspace workspace)
 {
     XmlSerializer xmlSerializer = new XmlSerializer(typeof(Workspace));
     TextWriter writer = new StreamWriter(filename);
     xmlSerializer.Serialize(writer, workspace);
     writer.Close();
 }