示例#1
0
 public My_Paper(EntityDrawningCore core)
 {
     this.core = core;
     if (core.Form != null)
     {
         this.form    = core.Form;
         this.BGColor = form.BackColor;
     }
     else
     {
         this.BGColor = Color.Black;
     }
     this.scale = 1;
     DrawBorder = true;
     DrawGrig   = true;
     LineColor  = Color.Green;
 }
示例#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);
        }