Ejemplo n.º 1
0
 public override void ObjectParse(object sender, ConvertEventArgs e)
 {
     if ((sender as Binding).DataSource is ReportAttribute)
     {
         ReportAttribute attr         = (sender as Binding).DataSource as ReportAttribute;
         ComboBoxEdit    comboBoxEdit = ((sender as Binding).BindableComponent as ComboBoxEdit);
         e.Value = new Font(comboBoxEdit.SelectedItem.ToString(), attr.Font.Size, attr.Font.Style);
     }
     else
     {
         TextAttibute attr         = (sender as Binding).DataSource as TextAttibute;
         ComboBoxEdit comboBoxEdit = ((sender as Binding).BindableComponent as ComboBoxEdit);
         e.Value = new Font(comboBoxEdit.SelectedItem.ToString(), attr.Font.Size, attr.Font.Style);
     }
 }
Ejemplo n.º 2
0
        public void ReInit()
        {
            texts         = new Texts(this);
            columns       = new ReportColumns(this);
            reportReader  = new ReadOldRPT(this);
            reportWriter  = new WriteRpt(this);
            attributes    = new ReportAttribute(this);
            drawManager   = new ReportDrawManager(this);
            DataAnalyse   = new DataAnalyse(this);
            bands         = new Bands();
            propertyValid = false;
            data          = null;

            //projectDataManager = null;
        }