а хранится эта информация в ресурсах
...}
catch (Exception exc)
{
System.Windows.Forms.MessageBox.Show(exc.Message);
Console.WriteLine(">>>"+exc.Message.ToString());
if (br != null)
br.Close();
}
static public void WriteParam()
{
BinaryWriter bw;
string path = new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName + "\\noticeprogramdata.dat";
try
{
bw = new BinaryWriter(new FileStream(path, FileMode.Create, FileAccess.Write));
bw.Write(newStart);
bw.Write(wD1);
bw.Write(wD2);
bw.Write(wD3);
bw.Write(wD4);
bw.Write(eD1);
bw.Write(eD2);
bw.Write(eD3);
bw.Write(eD4);
bw.Write(dayToday);
bw.Write(String.Format(CultureInfo.InvariantCulture, "{0:g}", dateTimeOld));
bw.Write(schedule.Locale);
bw.Write((int)schedule.SortDirection);
if (schedule.ItemsAvailable)
{
foreach (ScheduleCell cell in schedule)
{
bw.Write(cell.cell1);
bw.Write(cell.cell2);
}
}
bw.Close();
}
catch (Exception exc)
{
System.Windows.Forms.MessageBox.Show(exc.Message);
Console.WriteLine(">>>" + exc.Message.ToString());
if (bw != null)
bw.Close();
}
}
непонятно что Вы делаете