Пример #1
0
		public FilterWindow(ref Filtro filtro)
			{
			InitializeComponent();
			
			this.filtro = filtro;

			foreach (Riga.Tipo x in Enum.GetValues(typeof(Riga.Tipo)))
				{
				cbTipo.Items.Add(x);
				}
			foreach (Filtro.Condizione x in Enum.GetValues(typeof(Filtro.Condizione)))
				{
				cbCondizione.Items.Add(x);
				}
			cbCondizione.SelectedItem = Filtro.Condizione.AND;
			cbTipo.SelectedItem = Riga.Tipo.P;
			chkVerificato.IsThreeState = true;
			chkConsuntivo.IsThreeState = true;
			btAnnulla.IsCancel = true;
			btOK.IsDefault = true;

			ClearWindow();

			SetWindow();
			}
Пример #2
0
		public Operazioni()
			{
			LeggiConfigurazione();

			opTotali = new ObservableCollection<Operazione>();
			opVisibili = new ObservableCollection<Operazione>();
			opVisibiliChangedEventEnabled = true;
			opVisibili.CollectionChanged += opChanged;
			cntTotali = new ObservableCollection<Conto>();
			cntTotali.CollectionChanged += cntChanged;
			opStdTotali = new ObservableCollection<OpStandard>();
			opStdTotali.CollectionChanged += opsChanged;

			empty = new List<Consuntivo>();

			dicConsuntivi = new Dictionary<int, List<Consuntivo>>();
			dicConsuntivi.Add(0, empty);
			consTotali = dicConsuntivi[0];

			filename = "";
			readwriteCripted = false;
			readwritePassword = "";
			lstLog = new List<string>();
			lstErr = new List<string>();
			LogAbilitato = false;

			filtro = new Filtro();
			encriptor = new Encryption();
			
			}