openVisN.SettingsManagement.MakeNew C# (CSharp) Метод

MakeNew() приватный Метод

private MakeNew ( ) : void
Результат void
        private void MakeNew()
        {
            MyData = new DataSet("openVisN");
            MyData.Tables.Add("Measurements");
            MyData.Tables.Add("Terminals");
            MyData.Tables.Add("Settings");

            DataTable table = MyData.Tables["Measurements"];
            table.Columns.Add("PointID", typeof(long));
            table.Columns.Add("SignalID", typeof(Guid));
            table.Columns.Add("DeviceName", typeof(string));
            table.Columns.Add("SignalAcronym", typeof (string));
            table.Columns.Add("Description", typeof(string));

            table = MyData.Tables["Terminals"];
            table.Columns.Add("GroupName", typeof(string));
            table.Columns.Add("NominalVoltage", typeof(double));
            table.Columns.Add("CurrentMagnitude", typeof(long));
            table.Columns.Add("CurrentAngle", typeof(long));
            table.Columns.Add("VoltageMagnitude", typeof(long));
            table.Columns.Add("VoltageAngle", typeof(long));
            table.Columns.Add("DFDT", typeof(long));
            table.Columns.Add("Frequency", typeof(long));
            table.Columns.Add("Status", typeof(long));

            table = MyData.Tables["Settings"];
            table.Columns.Add("Name", typeof(string));
            table.Columns.Add("Value", typeof(string));

            Save();
        }