Esempio n. 1
0
        public void consultardetalle()
        {
            try
            {
                if (UIID.Text == "")
                {
                    UIGRIDCONTROL_DETA.DataSource            = null;
                    UIGRIDVIEW_DETA.OptionsBehavior.Editable = false;
                    return;
                }

                //lista_deta = new System.ComponentModel.BindingList<V_INV_DETA_DESP>((from u in _datasistema.ContextoInventario.V_INV_DETA_DESP where u.ID_DESP == int.Parse(UIID.Text) select u
                //    ).ToList());

                lista_deta = new System.ComponentModel.BindingList <V_INV_DETA_DESP>(manejadorDetalleDespacho.consultarVistaPorIdEnca(int.Parse(UIID.Text)));

                lista_deta.AddingNew += list_AddinDeta;

                UIGRIDCONTROL_DETA.DataSource = lista_deta;
            }
            catch (Exception e)
            {
                MetodosForm.mensajeErrorDefault(e.Message, _datasistema);
            }
        }
Esempio n. 2
0
        public void consultardetalle()
        {
            try
            {
                if (UIID.Text == "")
                {
                    UIGRIDCONTROL_DETA.DataSource                  = null;
                    UIGRIDVIEW_DETA.OptionsBehavior.Editable       = false;
                    UIGRIDVIEW_DETA.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None;
                    return;
                }
                _datasistema.conectarInventario();
                //lista_deta = new System.ComponentModel.BindingList<V_INV_DETA_AJUS>((from u in _datasistema.ContextoInventario .V_INV_DETA_AJUS where u.ID_AJUS  == int.Parse(UIID.Text) select u
                //    ).ToList());

                lista_deta = new System.ComponentModel.BindingList <V_INV_DETA_AJUS>(manejadorDetalleAjuste.consultarVistaPorIdEnca(int.Parse(UIID.Text)));

                lista_deta.AddingNew += list_AddinDeta;

                UIGRIDCONTROL_DETA.DataSource = lista_deta;
            }
            catch (Exception e)
            {
                MetodosForm.mensajeErrorDefault(e.Message, _datasistema);
            }
        }
Esempio n. 3
0
 internal SearchService(SearchService original)
 {
     this.RestrictedSites = new System.ComponentModel.BindingList <Uri>();
     if (original != null)
     {
         this.Index = original.Index;
         this.Count = original.Count;
         this.Query = original.Query;
         if (original.Culture != null)
         {
             this.Culture = original.Culture.CloneStrict();
         }
         else
         {
             this.Culture = null;
         }
         if (original.RestrictedSites != null)
         {
             foreach (Uri siteRest in original.RestrictedSites)
             {
                 this.RestrictedSites.Add(siteRest);
             }
         }
     }
 }
Esempio n. 4
0
        public void consultarCategoria()
        {
            try
            {
                int grupo = 0;
                if (UIGRIDVIEWGRUPO.FocusedRowHandle >= 0)
                {
                    try
                    {
                        grupo = (int)(UIGRIDVIEWGRUPO.GetFocusedRowCellValue("ID"));
                    }
                    catch (Exception)
                    {
                    }
                }
                // lista_categoria = new System.ComponentModel.BindingList<INV_CATEGORIA >((from u in _datasistema.ContextoInventario.INV_CATEGORIA  where u.ID_EMPRESA == _datasistema.empresa.ID && u.ID_GRUPO  == grupo select u
                //  ).ToList());
                lista_categoria = new System.ComponentModel.BindingList <INV_CATEGORIA>(manejadorCategoria.consultarPorIdEmpresaPorGrupo(_datasistema.empresa.ID, grupo));

                lista_categoria.AddingNew += list_AddinCategoria;

                UIGRIDCONTROLCATEGORIA.DataSource = lista_categoria;
            }
            catch (Exception ex)
            {
                MetodosForm.mensajeErrorDefault(ex.Message, _datasistema);
            }
        }
Esempio n. 5
0
        public void consultarGrupo()
        {
            try
            {
                int fam = 0;
                if (UIGRIDVIEWFAMILIA.FocusedRowHandle >= 0)
                {
                    try
                    {
                        fam = (int)(UIGRIDVIEWFAMILIA.GetFocusedRowCellValue("ID"));
                    }
                    catch (Exception)
                    {
                    }
                }
                //lista_grupo  = new System.ComponentModel.BindingList<INV_GRUPO >((from u in _datasistema.ContextoInventario.INV_GRUPO where u.ID_EMPRESA == _datasistema.empresa.ID &&  u.ID_FAMILIA == fam select u
                //).ToList());
                lista_grupo = new System.ComponentModel.BindingList <INV_GRUPO>(manejadorGrupo.consultarPorIdEmpresayIdFamilia(_datasistema.empresa.ID, fam));

                lista_grupo.AddingNew += list_AddinGrupo;

                UIGRIDCONTROLGRUPO.DataSource = lista_grupo;
                consultarCategoria();
            }
            catch (Exception ex)
            {
                MetodosForm.mensajeErrorDefault(ex.Message, _datasistema);
            }
        }
Esempio n. 6
0
        void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            BindingList <DownloadLevelCfg> bindingList =
                new System.ComponentModel.BindingList <DownloadLevelCfg>(downloadLevelCfgs);

            this.dataGridViewLevel.DataSource = bindingList;

            this.buttonOK.Enabled = true;
        }
Esempio n. 7
0
        void Form1_stationListUpdated(GenericDeviceState state)
        {
            if (this.stationsListBox.InvokeRequired)
            {
                StateUpdated d = new StateUpdated(Form1_stationListUpdated);
                this.Invoke(d, new object[] { state });
            }
            else
            {
                if (state is OnkyoState)
                {
                    OnkyoState st = (OnkyoState)state;
                    stationsListBox.Items.Clear();
                    stationsListBox.Items.AddRange(st.CurrentList);
                    seekLabel.Text   = st.CurrentSeekPosition;
                    volumeLabel.Text = st.CurrentVolume.ToString();
                    powerLabel.Text  = st.CurrentPowerState ? "On" : "Off";
                }
                if (state is HeatmiserState)
                {
                    HeatmiserState st = (HeatmiserState)state;
                    tempValueLabel.Text         = st.CurrentAirTemp.ToString().Insert(2, ".") + "C";
                    setTempValueLabel.Text      = st.SetRoomTemp.ToString() + "C";
                    hotWaterValueLabel.Text     = st.IsHotWater ? "Yes" : "No";
                    heatingValueLabel.Text      = st.IsHeating ? "Yes" : "No";
                    holidayValueLabel.Text      = st.IsOnHoliday ? "Yes" : "No";
                    rateOfChangeValueLabel.Text = st.RateOfChange.ToString() + "Min";
                }
                if (state is PCState)
                {
                    if (((PCState)state).PCName == "StudyPC")
                    {
                        studyPCOnOffLabel.Text = ((PCState)state).IsOn ? "On" : "Off";
                    }
                    else if (((PCState)state).PCName == "LoungePC")
                    {
                        mediaCenterOnOffLabel.Text = ((PCState)state).IsOn ? "On" : "Off";
                    }
                }
                if (state is HolidayManagerState)
                {
                    HolidayManagerState st = (HolidayManagerState)state;

                    //DialogResult dr = DialogResult.Yes;
                    //if (holidaysDataGrid.DataSource != null) {
                    //    dr = MessageBox.Show("Holiday list updated. Refresh the screen?", "Holidays Updated", MessageBoxButtons.YesNo);
                    //}

                    //if (dr == DialogResult.Yes) {
                    List <PlannedHoliday> copy = st.PlannedHolidays.ToList <PlannedHoliday>();
                    System.ComponentModel.BindingList <PlannedHoliday> bl = new System.ComponentModel.BindingList <PlannedHoliday>(copy);
                    bl.AllowNew = bl.AllowRemove = bl.AllowEdit = true;
                    holidaysDataGrid.DataSource = bl;
                    //}
                }
            }
        }
Esempio n. 8
0
        //清除
        private void button5_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < downloadLevelCfgs.Count; ++i)
            {
                downloadLevelCfgs[i].IsChecked = false;
            }
            BindingList <DownloadLevelCfg> bindingList =
                new System.ComponentModel.BindingList <DownloadLevelCfg>(downloadLevelCfgs);

            this.dataGridViewLevel.DataSource = bindingList;
        }
Esempio n. 9
0
 private void InitializeObjects()
 {
     this.cmbTable.SelectedIndexChanged      += new EventHandler(cmbTable_SelectedIndexChanged);
     this.dgvResultSet.MultiSelect            = false;
     this.dgvResultSet.SelectionMode          = DataGridViewSelectionMode.FullRowSelect;
     this.dgvResultSet.SelectionChanged      += new EventHandler(dgvResultSet_SelectionChanged);
     this.pgrItemEditor.PropertyValueChanged += new PropertyValueChangedEventHandler(pgrItemEditor_PropertyValueChanged);
     this._messages                = new System.ComponentModel.BindingList <string>();
     this._unsavedItems            = new List <object>();
     this.cmbComparison.DataSource = Enum.GetNames(typeof(FilterCondition.FilterOperator));
 }
Esempio n. 10
0
        public BaseObjects(IBaseObject parent)
            : base(parent)
        {
            m_InternalList                        = new BindingList <T>();
            m_InternalList.AllowNew               = false;
            m_InternalList.AllowEdit              = true;
            m_InternalList.AllowRemove            = true;
            m_InternalList.RaiseListChangedEvents = true;
            m_InternalList.ListChanged           += new ListChangedEventHandler(m_InternalList_ListChanged);

            this.Parent = parent;
        }
Esempio n. 11
0
        } //end

        //清除Tracking信息
        public void clearTrackInfo()
        {
            if (trackingDataList == null)
            {
                trackingDataList = new System.ComponentModel.BindingList<designerDebugTrackingData>();
            }
            else
            {
                trackingDataList.Clear();
            }
            System.Activities.Presentation.WorkflowFileItem fileItem = designer.Context.Items.GetValue(typeof(System.Activities.Presentation.WorkflowFileItem)) as System.Activities.Presentation.WorkflowFileItem;
            designer.DebugManagerView.CurrentLocation = new SourceLocation(fileItem.LoadedFile, 1, 1, 1, 10);
        }
Esempio n. 12
0
        } //end

        //清除Tracking信息
        public void clearTrackInfo()
        {
            if (trackingDataList == null)
            {
                trackingDataList = new System.ComponentModel.BindingList <designerDebugTrackingData>();
            }
            else
            {
                trackingDataList.Clear();
            }
            System.Activities.Presentation.WorkflowFileItem fileItem = designer.Context.Items.GetValue(typeof(System.Activities.Presentation.WorkflowFileItem)) as System.Activities.Presentation.WorkflowFileItem;
            designer.DebugManagerView.CurrentLocation = new SourceLocation(fileItem.LoadedFile, 1, 1, 1, 10);
        }
Esempio n. 13
0
        //  Method GetTableList
        public static BindingList <TableItem> GetTableList(string dtb, string user)
        {
            BindingList <TableItem> bl = new System.ComponentModel.BindingList <TableItem>();

            foreach (KeyValuePair <string, string> item in GetUsableCodeList(dtb, user, ref _dcLookup))
            {
                TableItem ti     = new TableItem(item.Key, item.Value);
                string    lookup = "";
                if (_dcLookup != null && _dcLookup.TryGetValue(item.Key, out lookup))
                {
                    ti.Lookup = lookup;
                }
                bl.Add(ti);
            }
            return(bl);
        }
Esempio n. 14
0
        internal static MapDefinition CreateDefault()
        {
            return(new MapDefinition()
            {
                Name = string.Empty,
                CoordinateSystem = string.Empty,
                Extents = new Box2DType()
                {
                    MaxX = 0.0, MaxY = 0.0, MinX = 0.0, MinY = 0.0
                },
                BackgroundColor = Color.White,
                MapLayer = new System.ComponentModel.BindingList <MapLayerType>(),
                MapLayerGroup = new System.ComponentModel.BindingList <MapLayerGroupType>(),
#if MDF_240
                Watermarks = new BindingList <OSGeo.MapGuide.ObjectModels.WatermarkDefinition.v2_4_0.WatermarkType>()
#elif MDF_230
                Watermarks = new BindingList <OSGeo.MapGuide.ObjectModels.WatermarkDefinition.v2_3_0.WatermarkType>()
#endif
            });
Esempio n. 15
0
        public void consultar()
        {
            try
            {
                _datasistema.conectarInventario();
                lista_familia = new System.ComponentModel.BindingList <INV_FAMILIA>((from u in _datasistema.ContextoInventario.INV_FAMILIA   where u.ID_EMPRESA == _datasistema.empresa.ID select u
                                                                                     ).ToList());

                lista_familia = new System.ComponentModel.BindingList <INV_FAMILIA>(manejadorFamilia.consultarPorIdEmpresa(_datasistema.empresa.ID));

                lista_familia.AddingNew += list_AddinFamilia;

                UIGRIDCONTROLFAMILIA.DataSource = lista_familia;
                consultarGrupo();
            }
            catch (Exception ex)
            {
                MetodosForm.mensajeErrorDefault(ex.Message, _datasistema);
            }
        }
Esempio n. 16
0
        public void consultardetalle()
        {
            try
            {
                if (UIID.Text == "")
                {
                    UIGRIDCONTROL_DETA.DataSource                  = null;
                    UIGRIDVIEW_DETA.OptionsBehavior.Editable       = false;
                    UIGRIDVIEW_DETA.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None;
                    return;
                }
                lista_deta = new System.ComponentModel.BindingList <CONT_DETA_PART_BORR>(manejadorDetallePartidaBorrador.consultarPorIdEnca(int.Parse(UIID.Text)));

                lista_deta.AddingNew += list_AddinDeta;

                UIGRIDCONTROL_DETA.DataSource = lista_deta;
            }
            catch (Exception e)
            {
                MetodosForm.mensajeErrorDefault(e.Message, _datasistema);
            }
        }
Esempio n. 17
0
        public Form2(OfferVersionGroup obj, SalesOfferEntities SOE)
        {
            InitializeComponent();
            //SOEOI = new SalesOfferEntities();
            this.SOEOI = SOE;


            IList <OfferItem> oi = new System.ComponentModel.BindingList <OfferItem>();

            oi = SOE.OfferItem.Local.ToBindingList();
            // offerItemBindingSource = new BindingSource();
            offerItemBindingSource.DataSource = oi.Where(offi => offi.OfferVersionGroupId == obj.Id).ToList();


            offerBindingSource.DataSource = obj.OfferVersion.Offer;

            offerVersionBindingSource = new BindingSource();

            var qovid = ((from ov in SOEOI.OfferVersion
                          where ov.OfferId == obj.OfferVersion.OfferId
                          select ov.IssueDate)).SingleOrDefault();

            DateTime ovid;

            if (DateTime.TryParse(qovid.ToString(), out ovid))
            {
                labIssueDate.Text = ovid.ToString("yyyy/MM/dd");
            }
            else
            {
                labIssueDate.Text = null;
            }



            //offerVersionBindingSource.DataSource = SOEOI.OfferVersion.Local.ToBindingList().Where(ov => ov.OfferId == obj.OfferVersion.OfferId);
        }
Esempio n. 18
0
        private void InitializeObjects()
        {
            this.cmbDynamicEntities.SelectedIndexChanged += new EventHandler(cmbDynamicEntities_SelectedIndexChanged);
            this.lstFields.SelectedIndexChanged          += new EventHandler(lstFields_SelectedIndexChanged);
            this.cmbFieldType.SelectedIndexChanged       += new EventHandler(cmbFieldType_SelectedIndexChanged);
            this.cmbFieldType.DataSource = Enum.GetNames(typeof(System.Data.DbType));
            DynamicEntityInfo.CanChangeDefinitionsAtRuntime = true;
            this._unregistered_entities               = new List <EntityInfo>();
            this.cmbComparison.DataSource             = Enum.GetNames(typeof(FilterCondition.FilterOperator));
            this._unsaved_items                       = new List <DynamicEntity>();
            this.dgvDynamicEntities.MultiSelect       = false;
            this.dgvDynamicEntities.SelectionMode     = DataGridViewSelectionMode.FullRowSelect;
            this.dgvDynamicEntities.SelectionChanged += new EventHandler(dgvDynamicEntities_SelectionChanged);
            this.pgrItemEditor.PropertyValueChanged  += new PropertyValueChangedEventHandler(pgrItemEditor_PropertyValueChanged);
            this._messages = new BindingList <string>();

            var entity = new DynamicEntityInfo("demo_entity", null, null, KeyScheme.GUID);

            entity.AddField("pk", DbType.Guid, 0, true, true, FieldOrder.Ascending);
            entity.AddField("numfield", DbType.Int32, 0, false, false, FieldOrder.Ascending);
            entity.AddField("textfield", DbType.String, 20, false, false, FieldOrder.None);
            entity.AddField("uniquefield", DbType.String, 10, false, true, FieldOrder.None);
            this._unregistered_entities.Add(entity);
        }
Esempio n. 19
0
        public void consultardetalle()
        {
            try
            {
                if (UIID.Text == "")
                {
                    UIGRIDCONTROL_DETA.DataSource                  = null;
                    UIGRIDVIEW_DETA.OptionsBehavior.Editable       = false;
                    UIGRIDVIEW_DETA.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.None;
                    return;
                }
                _datasistema.conectarVentas();
                lista_deta = new System.ComponentModel.BindingList <V_FAC_DETA_VENTA>((from u in _datasistema.ContextoVentas.V_FAC_DETA_VENTA  where u.ID_VENTA == int.Parse(UIID.Text) select u
                                                                                       ).ToList());

                lista_deta.AddingNew += list_AddinDeta;

                UIGRIDCONTROL_DETA.DataSource = lista_deta;
            }
            catch (Exception e)
            {
                MetodosForm.mensajeErrorDefault(e.Message, _datasistema);
            }
        }
Esempio n. 20
0
 private void InitializeObjects()
 {
     this.cmbTable.SelectedIndexChanged += new EventHandler(cmbTable_SelectedIndexChanged);
     this.dgvResultSet.MultiSelect = false;
     this.dgvResultSet.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     this.dgvResultSet.SelectionChanged += new EventHandler(dgvResultSet_SelectionChanged);
     this.pgrItemEditor.PropertyValueChanged += new PropertyValueChangedEventHandler(pgrItemEditor_PropertyValueChanged);
     this._messages = new System.ComponentModel.BindingList<string>();
     this._unsavedItems = new List<object>();
     this.cmbComparison.DataSource = Enum.GetNames(typeof(FilterCondition.FilterOperator));
 }
Esempio n. 21
0
 public SearchDownloadSettings()
 {
     this.Services   = new System.ComponentModel.BindingList <SearchService>();
     mConsumerKey    = string.Empty;
     mConsumerSecret = string.Empty;
 }
Esempio n. 22
0
 internal SearchService()
 {
     this.RestrictedSites = new System.ComponentModel.BindingList <Uri>();
 }
Esempio n. 23
0
 private void XtraFormLogging_Load(object sender, EventArgs e)
 {
     bLoggers = new BindingList <Logger>(Logger.Loggers);
     realTimeSource1.DataSource = bLoggers;
     GridView1.Invalidate();
 }
Esempio n. 24
0
        /// <summary>
        /// salvataggio del documento nella directory del definitivo
        /// </summary>
        /// <param name="LocalFilePath"></param>
        /// <param name="Storage"></param>
        /// <param name="StorageArea"></param>
        /// <param name="Document"></param>
        /// <param name="attributeValue"></param>
        /// <returns></returns>
        /// <remarks>piuttosto di trovarsi in situazioni, che non dovrebbero succedere, di documenti
        /// nel transito aventi lo stesso nome di documenti nel definitivo e l'impossibilità di sovrascriverli,
        /// viene permesso la sovrascrittura
        /// </remarks>
        protected override long SaveDocument(string LocalFilePath, DocumentStorage Storage, DocumentStorageArea StorageArea, Document Document, System.ComponentModel.BindingList <DocumentAttributeValue> attributeValue)
        {
            //string saveFileName = GetStorageDir(Document.Storage, Document.StorageArea) + GetFileName(Document);
            string[] pathAndPort = Storage.MainPath.Split(new string[] { ":" }, StringSplitOptions.RemoveEmptyEntries);
            string   path        = pathAndPort.FirstOrDefault();
            string   port        = pathAndPort.LastOrDefault();
            long     bytes       = -1;

            if (!string.IsNullOrEmpty(port) && !string.IsNullOrEmpty(path))
            {
                logger.Debug(path + " (port" + port + ")");
                logger.Debug("filepath: " + LocalFilePath + " , StorageAreaPath: " + StorageArea.Path);

                FTPFactory fact = new FTPFactory();
                fact.setRemoteUser(Storage.AuthenticationKey);
                fact.setRemotePass(Storage.AuthenticationPassword);
                fact.setRemoteHost(path);
                fact.setRemotePath(StorageArea.Path);
                fact.setRemotePort(int.Parse(port));

                fact.login();
                fact.upload(LocalFilePath);

                //long bytes = FtpWrite(LocalFilePath, saveFileName, Storage.AuthenticationKey, Storage.AuthenticationPassword);
                bytes = new FileInfo(LocalFilePath).Length;
                logger.Debug(bytes + " writed...");
            }
            return(bytes);
        }
Esempio n. 25
0
 public ClientHandler(Socket client, System.ComponentModel.BindingList <Zaposleni> zaposlenis)
 {
     this.client     = client;
     this.zaposlenis = zaposlenis;
 }
Esempio n. 26
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public System.ComponentModel.IBindingList CreateMainBindList(IList dataList)
 {
     System.ComponentModel.BindingList <T> bindingList = MB.WinBase.Binding.BindingSourceHelper.Instance.CreateBindingList <T>(dataList);
     return(bindingList);
 }
Esempio n. 27
0
 public SearchDownloadSettings()
 {
     this.Services = new System.ComponentModel.BindingList<SearchService>();
     mConsumerKey = string.Empty;
     mConsumerSecret = string.Empty;
 }
Esempio n. 28
0
 private void applyHolidaysButton_Click(object sender, EventArgs e)
 {
     System.ComponentModel.BindingList <PlannedHoliday> bl = (System.ComponentModel.BindingList <PlannedHoliday>)holidaysDataGrid.DataSource;
     simulator.UpdateHolidays(bl.ToList <PlannedHoliday>());
 }
Esempio n. 29
0
 internal SearchService()
 {
     this.RestrictedSites = new System.ComponentModel.BindingList<Uri>();
 }
Esempio n. 30
0
        /// <summary>
        /// salvataggio del documento nella directory del definitivo
        /// </summary>
        /// <param name="LocalFilePath"></param>
        /// <param name="Storage"></param>
        /// <param name="StorageArea"></param>
        /// <param name="Document"></param>
        /// <param name="attributeValue"></param>
        /// <returns></returns>
        /// <remarks>piuttosto di trovarsi in situazioni, che non dovrebbero succedere, di documenti
        /// nel transito aventi lo stesso nome di documenti nel definitivo e l'impossibilità di sovrascriverli,
        /// viene permesso la sovrascrittura
        /// </remarks>
        protected override long SaveDocument(string LocalFilePath, DocumentStorage Storage, DocumentStorageArea StorageArea, Document Document, System.ComponentModel.BindingList <DocumentAttributeValue> attributeValue)
        {
            string saveFileName = Path.Combine(GetStorageDir(Document.Storage, Document.StorageArea), GetFileName(Document));

            File.Copy(LocalFilePath, saveFileName, true);
            FileInfo     fInfo = new FileInfo(saveFileName);
            FileSecurity fSec  = null;

            if (Document.Permissions != null)
            {
                fSec = fInfo.GetAccessControl();
                AuthorizationRuleCollection fileRoles = fSec.GetAccessRules(true, true, typeof(NTAccount));
                foreach (AuthorizationRule item in fileRoles)
                {
                    fSec.RemoveAuditRuleAll(new FileSystemAuditRule(item.IdentityReference.ToString(), FileSystemRights.FullControl, AuditFlags.Success));
                }
                //
                foreach (var item in Document.Permissions)
                {
                    fSec.AddAccessRule(new FileSystemAccessRule(item.Name, FileSystemRights.Read, AccessControlType.Allow));
                }
                fInfo.SetAccessControl(fSec);
            }
            //Write attributes on file system
            WriteAttributes(Document);
            if (!fInfo.Exists)
            {
                throw new Exception();
            }

            return(fInfo.Length);
        }
        private void InitializeObjects()
        {
            this.cmbDynamicEntities.SelectedIndexChanged += new EventHandler(cmbDynamicEntities_SelectedIndexChanged);
            this.lstFields.SelectedIndexChanged += new EventHandler(lstFields_SelectedIndexChanged);
            this.cmbFieldType.SelectedIndexChanged += new EventHandler(cmbFieldType_SelectedIndexChanged);
            this.cmbFieldType.DataSource = Enum.GetNames(typeof(System.Data.DbType));
            DynamicEntityInfo.CanChangeDefinitionsAtRuntime = true;
            this._unregistered_entities = new List<EntityInfo>();
            this.cmbComparison.DataSource = Enum.GetNames(typeof(FilterCondition.FilterOperator));
            this._unsaved_items = new List<DynamicEntity>();
            this.dgvDynamicEntities.MultiSelect = false;
            this.dgvDynamicEntities.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            this.dgvDynamicEntities.SelectionChanged += new EventHandler(dgvDynamicEntities_SelectionChanged);
            this.pgrItemEditor.PropertyValueChanged += new PropertyValueChangedEventHandler(pgrItemEditor_PropertyValueChanged);
            this._messages = new BindingList<string>();

            var entity = new DynamicEntityInfo("demo_entity", null, null, KeyScheme.GUID);
            entity.AddField("pk", DbType.Guid, 0, true, true, FieldOrder.Ascending);
            entity.AddField("numfield", DbType.Int32, 0, false, false, FieldOrder.Ascending);
            entity.AddField("textfield", DbType.String, 20, false, false, FieldOrder.None);
            entity.AddField("uniquefield", DbType.String, 10, false, true, FieldOrder.None);
            this._unregistered_entities.Add(entity);
        }
Esempio n. 32
0
 public SuppressListChangedEvents(System.ComponentModel.BindingList <T> bindingList)
 {
     this.bindingList = bindingList;
     raiseEvents      = this.bindingList.RaiseListChangedEvents;
     this.bindingList.RaiseListChangedEvents = false;
 }
Esempio n. 33
0
 public ClientHandler(Socket client, System.ComponentModel.BindingList <User> users)
 {
     this.client = client;
     this.users  = users;
 }
Esempio n. 34
0
 internal SearchService(SearchService original)
 {
     this.RestrictedSites = new System.ComponentModel.BindingList<Uri>();
     if (original != null)
     {
         this.Index = original.Index;
         this.Count = original.Count;
         this.Query = original.Query;
         if (original.Culture != null)
         {
             this.Culture = original.Culture.CloneStrict();
         }
         else
         {
             this.Culture = null;
         }
         if (original.RestrictedSites != null)
         {
             foreach (Uri siteRest in original.RestrictedSites)
             {
                 this.RestrictedSites.Add(siteRest);
             }
         }
     }
 }
 public virtual void ExibirTarefas(System.ComponentModel.BindingList <CronogramaTarefaGridItem> tarefas)
 {
     //Implementar caso haja necessidade nos testes unitários
 }