Esempio n. 1
0
        public FindReplaceForm()
        {
            InitializeComponent();

            m_Selection = new ObjectId[0];

            m_PosList        = new SortedDictionary <string, List <ObjectId> >();
            m_CountList      = new SortedDictionary <string, List <ObjectId> >();
            m_DiameterList   = new SortedDictionary <string, List <ObjectId> >();
            m_SpacingList    = new SortedDictionary <string, List <ObjectId> >();
            m_NoteList       = new SortedDictionary <string, List <ObjectId> >();
            m_MultiplierList = new SortedDictionary <int, List <ObjectId> >();
            m_ShapeList      = new SortedDictionary <string, List <ObjectId> >();

            m_PosProperties = new Dictionary <string, SelectedPos>();

            m_FindShape     = string.Empty;
            m_ReplaceShape  = string.Empty;
            m_FindFields    = 0;
            m_ReplaceFields = 0;

            psvFind.BackColor    = DWGUtility.ModelBackgroundColor();
            psvReplace.BackColor = DWGUtility.ModelBackgroundColor();

            init = false;
        }
Esempio n. 2
0
        public PosShapesForm()
        {
            InitializeComponent();

            m_Copies = new List <PosShape>();
            posShapeView.BackColor = DWGUtility.ModelBackgroundColor();
        }
Esempio n. 3
0
        public MultiPosShapeView()
        {
            if (IsDesigner)
            {
                this.CellBackColor = System.Drawing.SystemColors.Control;
            }
            else
            {
                this.CellBackColor = DWGUtility.ModelBackgroundColor();
            }
            mSelectedShape  = string.Empty;
            mCellSize       = new Size(475, 150);
            mSelectionColor = SystemColors.Highlight;

            this.Name = "MultiPosShapeView";
            this.Size = new System.Drawing.Size(900, 450);
            this.SuspendLayout();

            this.layoutPanel               = new FlowLayoutPanel();
            this.layoutPanel.Dock          = DockStyle.Fill;
            this.layoutPanel.FlowDirection = FlowDirection.LeftToRight;
            this.layoutPanel.AutoScroll    = true;
            this.Controls.Add(layoutPanel);

            this.ResumeLayout(false);

            mSelectedShape = string.Empty;

            pieceLengths = new Dictionary <int, List <string> >();

            init     = false;
            disposed = false;
        }
Esempio n. 4
0
        public TableStyleForm()
        {
            InitializeComponent();

            m_Copies     = new List <TableStyleCopy>();
            m_Styles     = new List <string>();
            m_TextStyles = new Dictionary <string, ObjectId>();

            tableView.BackColor = DWGUtility.ModelBackgroundColor();
        }
Esempio n. 5
0
        public EditPosForm()
        {
            InitializeComponent();

            m_Pos               = ObjectId.Null;
            m_Shape             = string.Empty;
            m_StandardDiameters = new List <int>();
            boundDimensions     = new List <ObjectId>();

            posShapeView.BackColor = DWGUtility.ModelBackgroundColor();
        }
Esempio n. 6
0
        public void SetShapes(string current, IEnumerable <string> inshapes)
        {
            m_Current = current;

            shapesView.SetShapes(inshapes);
            shapesView.CellBackColor  = DWGUtility.ModelBackgroundColor();
            shapesView.CellSize       = new Size(190, 70);
            shapesView.SelectedShape  = m_Current;
            shapesView.ShowShapeNames = true;
            shapesView.ShapeClick    += new MultiPosShapeViewClickEventHandler(posShapeView_Click);
        }
Esempio n. 7
0
        public GroupForm()
        {
            InitializeComponent();
            Width = 340;

            bool allowCustomMarkers = true;

            pnlCustomize.Enabled       = pnlCustomize.Visible = allowCustomMarkers;
            btnDisplayStandard.Enabled = btnDisplayStandard.Visible = allowCustomMarkers;
            btnDisplayBS.Enabled       = btnDisplayBS.Visible = allowCustomMarkers;

            mCopy       = new GroupCopy();
            mTextStyles = new Dictionary <string, ObjectId>();

            posStylePreview.BackColor = DWGUtility.ModelBackgroundColor();
        }
Esempio n. 8
0
        public DrawingPreview()
        {
            items = new List <Drawable>();

            if (IsDesigner)
            {
                this.BackColor = System.Drawing.SystemColors.Control;
            }
            else
            {
                this.BackColor = DWGUtility.ModelBackgroundColor();
            }
            this.ForeColor = System.Drawing.SystemColors.ControlText;
            this.Name      = "DrawingPreview";
            this.Size      = new System.Drawing.Size(600, 400);

            m_Selected       = false;
            m_SelectionColor = SystemColors.Highlight;

            init      = false;
            disposed  = false;
            suspended = false;
        }