示例#1
0
 public PaperProperties(EntityDrawningCore core, My_Paper paper)
 {
     InitializeComponent();
     this.core                    = core;
     this.paper                   = paper;
     colorDialogBG.Color          = paper.BGColor;
     colorDialogLine.Color        = paper.LineColor;
     colorDialogSelectColor.Color = EntityDrawningCore.SelectedColor;
     labelBGColor.Text            = paper.BGColor.ToKnownColor().ToString();
     labelLineColor.Text          = paper.LineColor.ToKnownColor().ToString();
     labelSelectColor.Text        = EntityDrawningCore.SelectedColor.ToKnownColor().ToString();
     checkBoxShowBorder.Checked   = paper.DrawBorder;
     checkBoxShowGrid.Checked     = paper.DrawGrig;
 }
示例#2
0
        public EntityDrawningCore(EntityDrawningForm form)
        {
            this.form       = form;
            Lock            = false;
            picture         = new My_Picture(this);
            history         = new My_History(this);
            selectedFigures = new List <My_Figure>();
            group_selector  = new GroupSelector(this);
            paper           = new My_Paper(this);

            //Загрузка настроек по-умолчанию
            paper.BGColor    = Schematix.CommonProperties.Configuration.CurrentConfiguration.EntityDrawningOptions.BGColor;
            paper.LineColor  = Schematix.CommonProperties.Configuration.CurrentConfiguration.EntityDrawningOptions.BorderColor;
            paper.DrawBorder = Schematix.CommonProperties.Configuration.CurrentConfiguration.EntityDrawningOptions.ShowBorder;
            paper.DrawGrig   = Schematix.CommonProperties.Configuration.CurrentConfiguration.EntityDrawningOptions.ShowGrid;
            SelectedColor    = Schematix.CommonProperties.Configuration.CurrentConfiguration.EntityDrawningOptions.SelectColor;

            UpdateHistory += new UpdateHistoryDelegate(EntityDrawningCore_UpdateHistory);
        }