Exemple #1
0
 public PTabPage(XCommand cmd)
 {
     InitializeComponent();
     pdraw     = new PDraw();
     pdraw.cmd = cmd;
     Controls.Add(pdraw);
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();

            XCommand cmd = new XCommand();

            pDraw1.cmd     = cmd;
            toolBox1.cmd   = cmd;
            mainMenu1.cmd  = cmd;
            toolBar1.cmd   = cmd;
            statusBar1.cmd = cmd;

            cmd.pdraw = pDraw1;
        }