Esempio n. 1
0
        //void new()
        public oWinForm()
        {
            this.forme = new Form();
            this.forme.StartPosition   = FormStartPosition.Manual;
            this.forme.Text            = "CB Tetravex";
            this.forme.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.forme.MaximizeBox     = false;
            this.forme.MinimizeBox     = false;

            this.NewGameButton             = new CbButton2();
            this.NewGameButton.Parent      = this.forme;
            this.NewGameButton.Text        = "New Game";
            this.NewGameButton.Font        = new Font("consolas", 25);
            this.NewGameButton.MouseClick += new MouseEventHandler(this.NewGameButton_MouseClick);

            this.ExitButton             = new CbButton2();
            this.ExitButton.Parent      = this.forme;
            this.ExitButton.Text        = "Exit";
            this.ExitButton.Font        = new Font("consolas", 25);
            this.ExitButton.MouseClick += new MouseEventHandler(this.ExitButton_MouseClick);
        }
        //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();
        }