private void voidnew() { InitializeComponent(); this.EditorSplitContainer.SplitterWidth = 8; //cree un project vierge de base this.TheProject = new oPowerPointProject(); //ajoute une slide par default oSlide slide1 = new oSlide(); this.TheProject.listSlide.Add(slide1); //cree le edit context this.TheEContext = new oEditContext(this.TheProject); this.SlideViewer = new uioProjectSlideListView(this.TheProject, this.TheEContext); this.SlideViewer.Parent = this.MainSplitContainer.Panel1; this.TheSelectPanel = new uioEditerObjectSelectPanel(this.TheProject, this.TheEContext); this.TheSelectPanel.Parent = this.EditorSplitContainer.Panel1; this.TheSelectPanel.Location = new Point(1, 1); this.TheSelectPanel.Width = this.EditorSplitContainer.Panel1.Width - this.TheSelectPanel.Left - 10; this.TheSelectPanel.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; this.TheSlideEditer = new uioProjectSlideEditer(this.TheProject, this.TheEContext); this.TheSlideEditer.Parent = this.EditorSplitContainer.Panel1; this.TheSlideEditer.Top = this.TheSelectPanel.Top + this.TheSelectPanel.Height + 2; this.TheSlideEditer.Left = 0; this.TheSlideEditer.Width = this.EditorSplitContainer.Panel1.Width - this.TheSlideEditer.Left - 2; this.TheSlideEditer.Height = this.EditorSplitContainer.Panel1.Height - this.TheSlideEditer.Top - 2; this.TheSlideEditer.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; this.TheSlideEditer.BackColor = Color.DimGray; }
//void new() public uiButton(uioProjectSlideListView StartParent) { StartParent.listAllButton.Add(this); }