Esempio n. 1
0
        private void Settings_Load(object sender, EventArgs e)
        {
            stCurrent = new csSettings();

            //initialize components
            aTxBx_Save.Text          = stCurrent.SaveLoc;
            aTxBx_Root.Text          = stCurrent.RootLoc;
            CmbBx_ImageViewer.Text   = stCurrent.CustomProgram;
            Nud_Intv.Value           = stCurrent.ReadInterval;
            picBx_Colour.BackColor   = stCurrent.BackColour;
            chkGridlines.Checked     = stCurrent.ShowGrid;
            chkDate.Checked          = stCurrent.ShowDate;
            chkLoadCovers.Checked    = stCurrent.ShowCovers;
            chkRemoveAddenda.Checked = stCurrent.RemoveAddenda;

            lvIgnoredPaths.BeginUpdate();
            for (int i = 0; i < stCurrent.SearchIgnore.Length; i++)
            {
                lvIgnoredPaths.Items.Add(new ListViewItem(stCurrent.SearchIgnore[i]));
            }
            lvIgnoredPaths.SortRows();
            lvIgnoredPaths.EndUpdate();

            lvIgnoredTags.BeginUpdate();
            for (int i = 0; i < stCurrent.TagIgnore.Length; i++)
            {
                lvIgnoredTags.Items.Add(new ListViewItem(stCurrent.TagIgnore[i]));
            }
            lvIgnoredTags.SortRows();
            lvIgnoredTags.EndUpdate();

            Btn_Save.FlatAppearance.BorderColor = Color.Green;
        }
Esempio n. 2
0
		private void Settings_Load(object sender, EventArgs e)
		{
			stCurrent = new csSettings();

			//initialize components
			aTxBx_Save.Text = stCurrent.SaveLoc;
			aTxBx_Root.Text = stCurrent.RootLoc;
			CmbBx_ImageViewer.Text = stCurrent.CustomProgram;
			Nud_Intv.Value = stCurrent.ReadInterval;
			picBx_Colour.BackColor = stCurrent.BackColour;
			chkGridlines.Checked = stCurrent.ShowGrid;
			chkDate.Checked = stCurrent.ShowDate;
			chkRemoveAddenda.Checked = stCurrent.RemoveAddenda;

			lvIgnoredPaths.BeginUpdate();
			for (int i = 0; i < stCurrent.SearchIgnore.Length; i++) {
				lvIgnoredPaths.Items.Add(new ListViewItem(stCurrent.SearchIgnore[i]));
			}
			lvIgnoredPaths.SortRows();
			lvIgnoredPaths.EndUpdate();

			lvIgnoredTags.BeginUpdate();
			for (int i = 0; i < stCurrent.TagIgnore.Length; i++) {
				lvIgnoredTags.Items.Add(new ListViewItem(stCurrent.TagIgnore[i]));
			}
			lvIgnoredTags.SortRows();
			lvIgnoredTags.EndUpdate();

			Btn_Save.FlatAppearance.BorderColor = Color.Green;
		}
Esempio n. 3
0
        private void Settings_Load(object sender, EventArgs e)
        {
            stCurrent = new csSettings();

              //initialize components
              aTxBx_Save.Text = stCurrent.SaveLoc;
              aTxBx_Root.Text = stCurrent.RootLoc;
              CmbBx_ImageViewer.Text = stCurrent.CustomProgram;
              Nud_Intv.Value = stCurrent.ReadInterval;
              picBx_Colour.BackColor = stCurrent.BackColour;
              ChkBx_Gridlines.Checked = stCurrent.ShowGrid;
              ChkBx_Date.Checked = stCurrent.ShowDate;

              ckLbx_Ign.SuspendLayout();
              for (int i = 0; i < stCurrent.SearchIgnore.Length; i++) {
            ckLbx_Ign.Items.Add(stCurrent.SearchIgnore[i], true);
              }
              ckLbx_Ign.ResumeLayout();

              Btn_Save.FlatAppearance.BorderColor = Color.Green;
        }