private void checkedListBoxControlGroups_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (_init) return;
			SelectedGroups.Clear();
			foreach (CheckedListBoxItem item in checkedListBoxControlGroups.CheckedItems)
				SelectedGroups.Add(item.Value.ToString());
			if (FilterChanged != null)
				FilterChanged(this, new EventArgs());
		}
Example #2
0
		private void checkedListBoxControlQuotes_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (e.State == CheckState.Checked)
			{
				foreach (CheckedListBoxItem item in checkedListBoxControlQuotes.Items)
				{
					if (item.Value != checkedListBoxControlQuotes.Items[e.Index].Value && item.CheckState == CheckState.Checked)
					{
						item.CheckState = CheckState.Unchecked;
					}
				}
			}
		}
 private void checkedListBoxControlWebsite_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     _container.RaiseDataChanged();
 }
 private void languagesToTranslateCheckListBox_ItemCheck(
     object sender,
     DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     UpdateUI();
 }
Example #5
0
 private void fileGroupsListBox_ItemCheck(
     object sender,
     DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     UpdateUI();
 }
Example #6
0
 private void clbColumns_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     _columnNames[e.Index].ReadOnly = !(e.State == System.Windows.Forms.CheckState.Checked);
 }
Example #7
0
/// <summary>
/// When check state changes update the display to reflect
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

        private void ItemList_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
        {
            if (InSetup)
            {
                return;
            }

            InSetup = true;
            ItemList.BeginUpdate();

            CheckedListBoxItemCollection items = ItemList.Items;
            string txt       = items[e.Index].Description;
            bool   isChecked = (e.State == CheckState.Checked);

            if (txt == "(All)")             // check/uncheck everything
            {
                foreach (CheckedListBoxItem i in items)
                {
                    i.CheckState = e.State;
                }
            }

            else if (txt == "(Non blanks)")
            {
                foreach (CheckedListBoxItem i in items)
                {
                    if (i.Description == "(All)" || i.Description == "(Blanks)")
                    {
                        continue;
                    }
                    i.CheckState = e.State;
                }
            }

            else if (e.State == CheckState.Unchecked)             // turned item off; turn off All & Non blanks as well
            {
                items[AllPos].CheckState = CheckState.Unchecked;
                if (NonBlanksPos >= 0 && txt != "(Blanks)")
                {
                    items[NonBlanksPos].CheckState = CheckState.Unchecked;
                }
            }

            if (BlanksPos >= 0)             // if blanks allowed set (All) based on Blanks/Non blanks settings
            {
                if (items[BlanksPos].CheckState == CheckState.Checked &&
                    items[NonBlanksPos].CheckState == CheckState.Checked)
                {
                    items[AllPos].CheckState = CheckState.Checked;
                }
                else
                {
                    items[AllPos].CheckState = CheckState.Unchecked;
                }
            }

            ItemList.EndUpdate();
            InSetup = false;

// Generate new criteria from set of checks

            QueryColumn qc = ColInfo.Qc;

            if (items[AllPos].CheckState == CheckState.Checked)             // everything
            {
                qc.SecondaryCriteria        = qc.MetaColumn.Name + " in ('(All)')";
                qc.SecondaryCriteriaDisplay = qc.ActiveLabel + " in list (All)";
            }

            //else if (NonBlanksPos >= 0 && items[NonBlanksPos].CheckState == CheckState.Checked)
            //{ // just non-null
            //  qc.SecondaryCriteria = qc.MetaColumn.Name + " is not null";
            //  qc.SecondaryCriteriaDisplay = qc.ActiveLabel + " is not null";
            //}

            else             // build list of checked items possibly including "(Blanks)" and "(Non blanks)"
            {
                int itemsChecked = 0;
                qc.SecondaryCriteria = qc.MetaColumn.Name + " in (";

                foreach (CheckedListBoxItem i in items)
                {
                    string normalizedString;

                    if (i.CheckState != CheckState.Checked)
                    {
                        continue;
                    }

                    if (itemsChecked > 0)
                    {
                        qc.SecondaryCriteria += ", ";
                    }

                    normalizedString = i.Description;
                    if (i.Description == "(All)" || i.Description == "(Blanks)" || i.Description == "(Non blanks)")
                    {
                    }                       // these are always ok as is
                    else if (qc.MetaColumn.DataType == MetaColumnType.CompoundId ||
                             qc.MetaColumn.DataType == MetaColumnType.Date)
                    {                     // store these in internal format
                        MobiusDataType mdt = MobiusDataType.New(qc.MetaColumn.DataType, i.Description);
                        normalizedString = mdt.FormatForCriteria();
                    }
                    qc.SecondaryCriteria += Lex.AddSingleQuotes(normalizedString);
                    itemsChecked++;
                }

                qc.SecondaryCriteria       += ")";
                qc.SecondaryCriteriaDisplay = qc.ActiveLabel + " in list";
            }

            qc.SecondaryFilterType = FilterType.CheckBoxList;

            QueryManager.QueryResultsControl.UpdateFiltering(ColInfo);
            FilterBasicCriteriaControl.SyncBaseQuerySecondaryCriteria(qc);             // sync any base query

            return;
        }
Example #8
0
 private void destinationLanguagesListBox_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     UpdateUI();
 }
Example #9
0
        //When A check box is clicked: Load Report

        private void checkBox_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
        {
            LoadReport();
            LoadGRNFReport();
        }
Example #10
0
 private void checkedListBoxControl1_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     dic_con(e.Index, e.State == System.Windows.Forms.CheckState.Checked);
 }
Example #11
0
 private void OnCheckedListBoxControlItemCheck(object sender, ItemCheckEventArgs e)
 {
     OnEditValueChanged(sender, e);
 }
		private void checkedListBoxControl_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (!_allowToSave) return;
			UpdateOutputState();
			SettingsNotSaved = true;
		}
		private void checkedListBoxControlUserFilterGroups_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (_userFilterInit) return;
			_userFilterSelectedGroups.Clear();
			foreach (CheckedListBoxItem item in checkedListBoxControlUserFilterGroups.CheckedItems)
				_userFilterSelectedGroups.Add(item.Value.ToString());
			FilterUsers();
		}
Example #14
0
 private void checkedListBoxControl1_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     StartChangeOperation();
 }
		private void checkedListBoxControl_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (!_allowToSave) return;
			SlideContainer.RaiseDataChanged();
		}
Example #16
0
 private void chkListColumns_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     _Changed = true;
 }
Example #17
0
 private void CB_YLIST_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     CreatChart();
     RaiseMenuChanged();
 }
		public void checkedListBoxControlSharePageSquare_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			var publicationControl = xtraTabControlPublications.SelectedTabPage as PrintProductControl;
			if (publicationControl != null && _allowToSave)
			{
				_allowToSave = false;
				foreach (CheckedListBoxItem item in Controller.Instance.PrintProductSharePageSquare.Items)
					if (item.Description != Controller.Instance.PrintProductSharePageSquare.Items[e.Index].Description)
						item.CheckState = CheckState.Unchecked;
				_allowToSave = true;
				SetSizeOptions(publicationControl);
				SettingsNotSaved = true;
			}
		}
Example #19
0
 private void chkLstDataProviderStatus_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     SaveSettings();
 }
 private void chklistItems_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     Items = chklistItems.CheckedItems.Cast <CheckedListBoxItem>().Select(i => i.Value.ToString()).ToList();
     Plot();
 }
Example #21
0
 private void clbYearMonth_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     GetDataSource(winExplorerView.GetFocusedDataSourceRowIndex());
     btnCustomerUnCheckAll_Click(sender, e);
 }
Example #22
0
 private void checkedListBoxControl1_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     this.bool_0 = true;
 }
Example #23
0
		private void checkedListBoxControlSections_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (e.State == CheckState.Checked && !_useMultiLineSection)
			{
				ckSection.Checked = false;
				foreach (CheckedListBoxItem item in checkedListBoxControlSections.Items)
				{
					if (item != checkedListBoxControlSections.Items[e.Index] && item.CheckState == CheckState.Checked)
					{
						item.CheckState = CheckState.Unchecked;
					}
				}
			}
			UpdateSectionState();
		}
Example #24
0
		private void checkedListBoxControlDeadline_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			if (e.State == CheckState.Checked)
			{
				ckDeadline.Checked = false;
				foreach (CheckedListBoxItem item in checkedListBoxControlDeadline.Items)
				{
					if (item != checkedListBoxControlDeadline.Items[e.Index] && item.CheckState == CheckState.Checked)
					{
						item.CheckState = CheckState.Unchecked;
					}
				}
			}
			UpdateDeadlineState();
		}
Example #25
0
 private void chkListRender_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     this.bool_1 = true;
 }
Example #26
0
 private void lst_Subject_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     btn_ThucHien.Enabled = true;
 }
Example #27
0
 private void listBox_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
 {
     OnIgnoreSelected();
 }
		private void checkedListBoxAdNotes_ItemCheck(object sender, ItemCheckEventArgs e)
		{
			SaveAdNotes();
		}
Example #29
0
        private void resourcesCheckedListBoxControl1_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            ListSemanas.Enabled = false;
            var      semanas = Base.Usuario.UsuarioConectado.Usuario.CantidadSemanasCalentarioCompartido;
            DateTime desde   = DateTime.Now.AddDays((semanas * 7) * -1);
            DateTime hasta   = DateTime.Now.AddDays(Convert.ToInt32(semanas * 7));

            if (HtUsuariosCalendariosCargados == null)
            {
                HtUsuariosCalendariosCargados = new Hashtable();
            }

            if (e.State.Equals(CheckState.Checked))
            {
                var timer     = System.Diagnostics.Stopwatch.StartNew();
                var item      = resourcesCheckedListBoxControl1.Items[e.Index];
                var resource  = (ResourceCheckedListBoxItem)item.Value;
                var idUsuario = Convert.ToInt64(resource.Resource.Id);
                if (HtUsuariosCalendariosCargados.ContainsKey(idUsuario.ToString()))
                {
                    return;
                }

                HtUsuariosCalendariosCargados.Add(idUsuario.ToString(), "1");

                IList <clsVisita> visitas = clsCalendarios.ListarVisitas(desde, hasta,
                                                                         Convert.ToInt16(Enums.VisitaEstado.Todas),
                                                                         idUsuario, -1, HtUsuarios);
                var newlistVisitas = new List <clsVisita>();
                foreach (var v in visitas.Where(v => !ListaVisitas.Contains(v)))
                {
                    ListaVisitas.Add(v);
                    newlistVisitas.Add(v);
                }
                //ListaVisitas.AddRange(visitas);

                //schedulerStorage1.Appointments.Items.BeginUpdate();

                foreach (var v in newlistVisitas)
                {
                    var foo = schedulerStorage1.CreateAppointment(AppointmentType.Normal);
                    foo.ResourceId  = v.Id;
                    foo.Subject     = v.Cliente.ToString();
                    foo.Location    = v.Ubicacion;
                    foo.Description = v.Descripcion;
                    foo.Start       = v.FechaHoraComienzo;
                    var fechaTermino = v.FechaHoraTermino;
                    if (fechaTermino < v.FechaHoraComienzo)
                    {
                        fechaTermino = v.FechaHoraComienzo;
                    }
                    foo.End      = fechaTermino;
                    foo.StatusId = v.StatusUsuario;
                    foo.CustomFields["IdVisita"] = v.Id;
                    foo.LabelId = (Int32)v.EstadoVista;

                    //foo.LabelId = 11;
                    schedulerStorage1.Appointments.Items.Add(foo);
                }

                Int64 IdVisita = 0;
                AppointmentCollection appointments = schedulerStorage1.Appointments.Items;
                foreach (var appointment in appointments)
                {
                    var flag = false;
                    IdVisita = Convert.ToInt64(appointment.CustomFields["IdVisita"].ToString());
                    foreach (var v in visitas)
                    {
                        if (IdVisita == v.Id32)
                        {
                            flag = true;
                        }
                    }

                    if (flag && IdVisita > 0)
                    {
                        clsVisita visita;

                        visita = ListaVisitas.Find(delegate(clsVisita var1) {
                            return(var1.Id == IdVisita);
                        });

                        if (visita == null)
                        {
                            break;
                        }
                        appointment.ResourceIds.Clear();
                        foreach (var asisCraft in visita.AsistentesCraft)
                        {
                            appointment.ResourceIds.Add(asisCraft.Usuario.Id);
                        }
                        if (visita.UsuarioOrganizador != null && !appointment.ResourceIds.Contains(visita.UsuarioOrganizador.Id))
                        {
                            appointment.ResourceIds.Add(visita.UsuarioOrganizador.Id);
                        }
                    }
                }
                //schedulerStorage1.RefreshData();
                ClsLogPerformance.Save(new LogPerformance(Base.Usuario.UsuarioConectado.Usuario, timer.Elapsed.TotalSeconds));
            }
            else
            {
                var flag = true;
                foreach (CheckedListBoxItem item in resourcesCheckedListBoxControl1.Items)
                {
                    if (item.CheckState == CheckState.Checked)
                    {
                        flag = false;
                    }
                }

                if (flag)
                {
                    ClearFormulario();
                }
            }
            Cursor.Current = Cursors.Default;
        }