//void new() public uioProjectSlideEditer(oPowerPointProject StartProject, oEditContext StartEContext) { this.zzzTheProject = StartProject; this.zzzTheEContext = StartEContext; this.TheEContext.EditingSlideChanged += new EventHandler(this.TheEContext_EditingSlideChanged); this.TheEContext.EditStateChanged += new EventHandler(this.TheEContext_EditStateChanged); this.ImageBox = new PictureBox(); this.ImageBox.BorderStyle = BorderStyle.FixedSingle; this.ImageBox.BackgroundImageLayout = ImageLayout.Center; this.ImageBox.SizeChanged += new EventHandler(this.ImageBox_SizeChanged); this.ImageBox.MouseMove += new MouseEventHandler(this.ImageBox_MouseMove); this.ImageBox.MouseDown += new MouseEventHandler(this.ImageBox_MouseDown); this.ImageBox.MouseUp += new MouseEventHandler(this.ImageBox_MouseUp); this.RefreshSize(); this.RefreshImage(); }
//void new() public uioEditerObjectSelectPanel(oPowerPointProject StartProject, oEditContext StartEContext) { this.zzzTheProject = StartProject; this.zzzTheEContext = StartEContext; this.TheEContext.EditStateChanged += new EventHandler(this.TheEContext_EditStateChanged); this.MainContainer = new GroupBox(); this.MainContainer.Text = "Objet à ajouter"; this.Height = 50; this.CancelButton = new CbButton2(); this.CancelButton.Parent = this.MainContainer; this.CancelButton.Text = "×"; this.CancelButton.Size = new Size(23, 23); this.CancelButton.Top = 18; this.CancelButton.Left = 3; this.CancelButton.Font = new Font("consolas", 20f); this.CancelButton.BackColor = Color.Crimson; this.CancelButton.ForeColor = Color.White; this.CancelButton.Click += new EventHandler(this.CancelButton_Click); //les button int bheight = this.Height - this.ButtonTop - 5; this.ButtonAddText = new CbButton2(); this.ButtonAddText.Parent = this.MainContainer; this.ButtonAddText.Top = this.ButtonTop; this.ButtonAddText.Left = 30; this.ButtonAddText.Height = bheight; this.ButtonAddText.Text = "texte"; this.ButtonAddText.Click += new EventHandler(this.ButtonAddText_Click); this.RefreshEnabled(); }
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 uioProjectSlideListView(oPowerPointProject StartProject, oEditContext StartEContext) { this.zzzTheProject = StartProject; this.zzzTheEContext = StartEContext; this.TheProject.SlideAdded += new EventHandler(this.TheProject_SlideAdded); this.TheProject.SlideRemoved += new EventHandler(this.TheProject_SlideRemoved); this.TheEContext.EditingSlideChanged += new EventHandler(this.TheEContext_EditingSlideChanged); this.ImageBox = new PictureBox(); this.ImageBox.BorderStyle = BorderStyle.FixedSingle; this.ImageBox.BackColor = Color.LightGray; // Gainsboro this.ImageBox.SizeChanged += new EventHandler(this.ImageBox_SizeChanged); this.ImageBox.MouseWheel += new MouseEventHandler(this.ImageBox_MouseWheel); this.ImageBox.MouseDown += new MouseEventHandler(this.ImageBox_MouseDown); this.ImageBox.MouseUp += new MouseEventHandler(this.ImageBox_MouseUp); this.ImageBox.MouseMove += new MouseEventHandler(this.ImageBox_MouseMove); this.ImageBox.MouseLeave += new EventHandler(this.ImageBox_MouseLeave); //end this.CreateScroll(); this.RefreshAddButton(); }
//void new() public oEditContext(oPowerPointProject StartProject) { this.zzzTheProject = StartProject; }