Debug AnyCPU {8D8F06ED-7F75-4933-B0C5-829B0FF654D0} Library Properties Tango.Scripting.Formatting Tango.Scripting.Formatting v4.6.1 512 true true full false bin\Debug\ DEBUG;TRACE prompt 4 pdbonly true bin\Release\ TRACE prompt 4 ..\..\packages\ManagedEsent.1.9.4\lib\net40\Esent.Interop.dll ..\..\packages\Microsoft.CodeAnalysis.Common.2.4.0\lib\netstandard1.3\Microsoft.CodeAnalysis.dll ..\..\packages\Microsoft.CodeAnalysis.CSharp.2.4.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.dll ..\..\packages\Microsoft.CodeAnalysis.CSharp.Scripting.2.4.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.Scripting.dll ..\..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.2.4.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.Workspaces.dll ..\..\packages\Microsoft.CodeAnalysis.Scripting.Common.2.4.0\lib\netstandard1.3\Microsoft.CodeAnalysis.Scripting.dll ..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.2.4.0\lib\net46\Microsoft.CodeAnalysis.Workspaces.dll ..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.2.4.0\lib\net46\Microsoft.CodeAnalysis.Workspaces.Desktop.dll ..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll ..\..\packages\System.AppContext.4.3.0\lib\net46\System.AppContext.dll ..\..\packages\System.Collections.Immutable.1.3.1\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll ..\..\packages\System.Composition.AttributedModel.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll ..\..\packages\System.Composition.Convention.1.0.31\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.MachineStudio.Technician.TechItems;
using Tango.Serialization;

namespace Tango.MachineStudio.Technician.Project
{
    public class MachineTechViewProject
    {

#warning This is legacy and should be removed
        public List<TechItem> Items { get; set; }

        public List<MachineTechViewProjectTab> Tabs { get; set; }

        public int SelectedTabIndex { get; set; }

        public MachineTechViewProject()
        {
            Items = new List<TechItem>();
            Tabs = new List<MachineTechViewProjectTab>();
        }

        public void Save(String fileName)
        {
            XmlDataSerializer serializer = new XmlDataSerializer();
            serializer.SerializeToFile(this, fileName);
        }

        public static MachineTechViewProject Load(String fileName)
        {
            XmlDataSerializer serializer = new XmlDataSerializer();
            return serializer.DeserializeFromFile<MachineTechViewProject>(fileName);
        }
    }
}