private void btnAddForm_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ConfigForm.DrawDataChooseForm configform = new ConfigForm.DrawDataChooseForm();
     List<MPPO.Protocol.Interface.IMdiDataForm<DataRow>> forms = new List<MPPO.Protocol.Interface.IMdiDataForm<DataRow>>();
     MPPO.Protocol.Interface.IMdiDataForm<DataRow> form;
     int i;
     Form[] mdiforms = this.MdiParent.MdiChildren;
     for(i = 0;i< mdiforms.Length; ++i)
     {
         if((form = mdiforms[i] as MPPO.Protocol.Interface.IMdiDataForm<DataRow>)!= null)
             forms.Add(form);
     }
 }
Exemple #2
0
        private void btnAddForm_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ConfigForm.DrawDataChooseForm configform = new ConfigForm.DrawDataChooseForm();
            List <MPPO.Protocol.Interface.IMdiDataForm <DataRow> > forms = new List <MPPO.Protocol.Interface.IMdiDataForm <DataRow> >();

            MPPO.Protocol.Interface.IMdiDataForm <DataRow> form;
            int i;

            Form[] mdiforms = this.MdiParent.MdiChildren;
            for (i = 0; i < mdiforms.Length; ++i)
            {
                if ((form = mdiforms[i] as MPPO.Protocol.Interface.IMdiDataForm <DataRow>) != null)
                {
                    forms.Add(form);
                }
            }
        }