Exemple #1
0
        public void OpenExistingBuilder(AMap theMap)
        {
            this.KeyPreview = true;
            //if (frmBuilder == null)
            //{
            frmBuilder           = new FrmDesigner();
            frmBuilder.MdiParent = this;
            frmBuilder.SetParentForm(this);
            frmBuilder.LoadUserMap(theMap);

            SetFormProperties(frmBuilder);
            SetSizeManually(frmBuilder, frmBuilder.GetSize());
            frmBuilder.Show();
            frmBuilder.BringToFront();
        }
Exemple #2
0
        public void OpenNewBuilder(Point newDimensions)
        {
            //if (frmBuilder == null)
            //{
            frmBuilder           = new FrmDesigner();
            frmBuilder.MdiParent = this;
            frmBuilder.SetParentForm(this);
            frmBuilder.Init(newDimensions);

            SetFormProperties(frmBuilder);
            SetSizeManually(frmBuilder, frmBuilder.GetSize());
            frmBuilder.Show();
            frmBuilder.BringToFront();

            /*}
             * else
             * {
             *  frmBuilder.Init(newDimensions);
             *  SetSizeManually(frmBuilder, frmBuilder.GetSize());
             *  frmBuilder.Show();
             *  frmBuilder.BringToFront();
             * }*/
        }
Exemple #3
0
        public void OpenNewBuilder(Point newDimensions)
        {
            //if (frmBuilder == null)
            //{
                frmBuilder = new FrmDesigner();
                frmBuilder.MdiParent = this;
                frmBuilder.SetParentForm(this);
                frmBuilder.Init(newDimensions);

                SetFormProperties(frmBuilder);
                SetSizeManually(frmBuilder, frmBuilder.GetSize());
                frmBuilder.Show();
                frmBuilder.BringToFront();

            /*}
            else
            {
                frmBuilder.Init(newDimensions);
                SetSizeManually(frmBuilder, frmBuilder.GetSize());
                frmBuilder.Show();
                frmBuilder.BringToFront();
            }*/
        }
Exemple #4
0
        public void OpenExistingBuilder(AMap theMap)
        {
            this.KeyPreview = true;
            //if (frmBuilder == null)
            //{
                frmBuilder = new FrmDesigner();
                frmBuilder.MdiParent = this;
                frmBuilder.SetParentForm(this);
                frmBuilder.LoadUserMap(theMap);

                SetFormProperties(frmBuilder);
                SetSizeManually(frmBuilder, frmBuilder.GetSize());
                frmBuilder.Show();
                frmBuilder.BringToFront();
        }