public Land(Data.MvProject mvProject) { this.MvProject = mvProject; this.PageMargin = new PointD(this.MvProject.LandInfo.MarginRight, this.MvProject.LandInfo.MarginBottom); foreach (DataRow row in this.MvProject.GroupTable.Rows) { Data.MvGroup group = new Data.MvGroup(this.MvProject, row); DataRow[] feederRows = this.MvProject.FeederTable.Select("GroupID = '" + group.GroupID + "'", "PanelX ASC"); this._macroFolder = Data.Location.Front(false, this.MvProject.ModelName, group.Rating); List <Data.MvFeeder> feederList = new List <Data.MvFeeder>(); foreach (DataRow feederRow in feederRows) { Data.MvFeeder feeder = new Data.MvFeeder(feederRow); string macroPath = this._macroFolder + feeder.FeederType + ".ema"; feeder.Width = (int)Util.eplan.GetWidth(this.MvProject.Project, macroPath); feederList.Add(feeder); } if (!group.LeftToRight) { feederList.Reverse(); } this.SetSplit(group.IncomingType, feederList); this.pageDescription = "PANEL DIMENSIONS(FRONT)"; this.Create("FRONT", group.GroupNo, group.Rating, feederList, group.BusDuctExists); this.pageDescription = "PANEL DIMENSIONS(BOTTOM)"; this.Create("BOTTOM", group.GroupNo, group.Rating, feederList, group.BusDuctExists); } }
public Ship(Data.MvProject mvProject) { this.MvProject = mvProject; this.Project = MvProject.Project; this.PageMargin = new PointD(this.MvProject.ShipInfo.MarginRight, this.MvProject.ShipInfo.MarginBottom); _macroFolder = Data.Location.Front(true, this.MvProject.ModelName, ""); foreach (DataRow row in this.MvProject.GroupTable.Rows) { Data.MvGroup group = new Data.MvGroup(this.MvProject, row); DataRow[] feederRows = MvProject.FeederTable.Select("GroupID = '" + group.GroupID + "'", "PanelX ASC"); List <Data.MvFeeder> feederList = new List <Data.MvFeeder>(); foreach (DataRow feederRow in feederRows) { Data.MvFeeder feeder = new Data.MvFeeder(feederRow); if (feeder.PanelName2.Trim().Length > 0) { _panelName2Exists = true; } feeder.Width = (int)Util.eplan.GetWidth(Project, this._macroFolder + feeder.FeederType + ".ema"); _totalWidth += feeder.Width; feederList.Add(feeder); } if (!group.LeftToRight) { feederList.Reverse(); } this.Create(feederList); } }
public MvButton(Data.MvProject mvProject, DataRow row) { try { this.MvProject = mvProject; LocationOnGroupBox = new Point(5, 15); Info = new MvFeeder(row); SetButtonSize(); this.BackColor = Color.Aquamarine; this.Location = LocationOnGroupBox; string value = row["IsSelected"].ToString(); this.TextAlign = ContentAlignment.TopLeft; this.SetButtonText(); this.MouseDown += new MouseEventHandler(Feeder_MouseDown); this.MouseMove += new MouseEventHandler(Feeder_MouseMove); this.MouseUp += new MouseEventHandler(Feeder_MouseUp); this.MouseDoubleClick += new MouseEventHandler(MvButton_MouseDoubleClick); } catch (Exception ex) { MessageBox.Show(ex.Message + "\n" + ex.StackTrace); } }
public DrawingFactory(Data.MvProject mvProject) { this.MvProject = mvProject; foreach (DataRow groupRow in this.MvProject.GroupTable.Rows) { Data.MvGroup group = new Data.MvGroup(this.MvProject, groupRow); this.SingleMacroFolder = Data.Location.Single(this.MvProject.IsShip, this.MvProject.ModelName, group.Rating); this.FolderList = Util.CSharp.GetDirectoryList(this.SingleMacroFolder); DataRow[] feederRows = this.MvProject.FeederTable.Select("GroupID = '" + group.GroupID.ToString() + "'", "PanelX ASC"); List <Data.MvFeeder> feederList = new List <Data.MvFeeder>(); foreach (DataRow feederRow in feederRows) { Data.MvFeeder feeder = new Data.MvFeeder(feederRow); feederList.Add(feeder); } if (this.MvProject.IsShip) { this.CreateShipSingleLine(feederList); } else { this.CreateLandSingleLine(group.GroupNo, group.Rating, feederList); } } }
public PartArrange(Data.MvProject mvProject) { InitializeComponent(); this.MvProject = mvProject; this.panel_Graphics.MouseWheel += new MouseEventHandler(panel_Graphics_MouseWheel); this.panel_Symbol.Tag = 0; }
public Finder(Data.MvProject mvProject, DataGridViewRow row) { this.Project = mvProject.Project; this.IsShip = mvProject.IsShip; DataRowView rowView = row.DataBoundItem as DataRowView; this.Feeder = new Data.MvFeeder(rowView.Row); }
public Spec(Data.MvProject mvProject, UserControl uc) { this.MvProject = mvProject; this.MacroPath = Data.Location.Macro(this.MvProject.IsShip); if (mvProject.IsShip) { this.CreateShipSpec(mvProject.Project, uc); } else { this.CreateLandSpec(mvProject.Project, uc); } }
public FeederFactory(Data.MvProject mvProject) { string folder; if (mvProject.IsShip) { folder = Data.Location.Front(mvProject.IsShip, mvProject.ModelName, null); } else { folder = Data.Location.Front(mvProject.IsShip, mvProject.ModelName, mvProject.LandInfo.Rating); } this.ReadFiles(folder, "*.ema"); }
public FeederInfo(Data.MvProject mvProject) { InitializeComponent(); this.MvProject = mvProject; _feederNameList = new List <string>(); Data.Feeder.FeederFactory factory = new Data.Feeder.FeederFactory(this.MvProject); foreach (Data.Feeder.FeederType feederType in factory.FeederTypes) { if (!_feederNameList.Contains(feederType.Name)) { _feederNameList.Add(feederType.Name); } } }
public Cover(Data.MvProject mvProject) { this.MvProject = mvProject; foreach (Placement p in this.MvProject.Project.Pages[0].AllGraphicalPlacements) { p.Remove(); } this.MacroFolder = Data.Location.Macro(this.MvProject.IsShip); if (this.MvProject.IsShip) { this.CreateShip(this.MvProject.Project.Pages[0]); } else { this.CreateLand(this.MvProject.Project.Pages[0]); } }
public Door(Data.MvProject mvProject) { this.MvProject = mvProject; this.Create(); }
public ProjectInfo(Data.MvProject mvProject) { InitializeComponent(); this.MvProject = mvProject; }
public Layout(Data.MvProject mvProject) { InitializeComponent(); this.MvProject = mvProject; }
public FeederFactory(Data.MvProject mvProject, string groupRating) { string folder = Data.Location.Front(mvProject.IsShip, mvProject.ModelName, groupRating); this.ReadFiles(folder, "*.ema"); }
public MvGroup(Data.MvProject mvProject, DataRow row) : this(row) { this.MvProject = mvProject; }