private void LoadData(object sender, EventArgs e) { SingleNumberForm SNF; int MaxKol; if (this.Year % 4 == 0 && this.Year % 100 != 0 || this.Year % 400 == 0) { MaxKol = 366; } else { MaxKol = 365; } if (!ValuesDictionary.ContainsKey(Int32.Parse(((Label)(sender)).Name.Replace(Freq, "").Replace("Label", "")))) { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, true, this.Sygnatura, this.id_cza_syg, "-1", MaxKol); } else { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, false, this.Sygnatura, this.id_cza_syg, id_czasop_nDictionary[((Label)(sender)).Name.Replace(Freq, "").Replace("Label", "")], MaxKol); } SNF.ShowDialog(); GetData(); }
private void LoadData(object sender, EventArgs e) { if (((Label)(sender)).Name.Contains("Indeks")) { this.Freq = "Indeks"; } if (((Label)(sender)).Name.Contains("Spec")) { this.Freq = "Spec"; } SingleNumberForm SNF; if (this.Freq == "Indeks") { if (!IndexExists) { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, true, this.Sygnatura, this.id_cza_syg, "-1", MaxKol); } else { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, false, this.Sygnatura, this.id_cza_syg, id_czasop_nDictionary[((Label)(sender)).Name.Replace(Freq, "").Replace("Label", "")], MaxKol); } } else { if (!ValuesDictionary.ContainsKey(Int32.Parse(((Label)(sender)).Name.Replace(Freq, "").Replace("Label", "")))) { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, true, this.Sygnatura, this.id_cza_syg, "-1", MaxKol); } else { SNF = new SingleNumberForm(Title, Year, ((Label)(sender)).Name.Replace(Freq, "").Replace("Label", ""), AkcesjaCode, CzasopCode, VolumesMode, false, this.Sygnatura, this.id_cza_syg, id_czasop_nDictionary[((Label)(sender)).Name.Replace(Freq, "").Replace("Label", "")], MaxKol); } } SNF.ShowDialog(); GetData("Indeks"); GetData("Spec"); }