public ProjectDataBase(WindowMain incomeMain, Panel inWindowContainer, WindowTabControlBase incomeWindow, string incomeTitle, IDataController incomeDataController, IRelation incomeRelation) : base(incomeMain, inWindowContainer, incomeWindow, incomeTitle, incomeDataController, incomeRelation) { windowData = (WindowTabControlDataBase)incomeWindow; dataBase = (DataControllerEPlan)incomeDataController; windowData.ClassWindow = this; }
public WindowMain() { InitializeComponent(); selectedProject = String.Empty; dataBase = new DataControllerEPlan(); ProjectDictionary = new Dictionary <String, ProjectBase>(); ProjectDictionary.Add("Schedule", new ProjectSchedule(this, panelCurrentWindow, new WindowTabControlEProcess(), "Schedule", new DataControllerSchedule(), new RelationSchedule())); ProjectDictionary.Add("EPlan", new ProjectEPlan(this, panelCurrentWindow, new WindowTabControlEPlan(), "EPlan", dataBase, new RelationEPlan())); ProjectDictionary.Add("DataBaseEditing", new ProjectDataBase(this, panelCurrentWindow, new WindowTabControlDataBase(), "DataBaseEditing", dataBase, new RelationDataBase())); CreateItemMenu(); }