Esempio n. 1
0
 private void Main_Load(object sender, EventArgs e)
 {
     try
     {
         _assembly         = Assembly.GetExecutingAssembly();
         _textStreamReader = new StreamReader(@"\\sisc-erelim\4_Printing\Romyr\ReportCard\days.txt");
         String[] read = _textStreamReader.ReadLine().Split(',');
         T1Tb.Text = read[0];
         T2Tb.Text = read[1];
         T3Tb.Text = read[2];
         _textStreamReader.Close();
     }
     catch
     {
         MessageBox.Show("Error accessing resources!");
     }
     //Register this view with the frontcontroller
     FrontController.getInstance().registerView(this);
     //String myFullPath = Path.GetFullPath("days.txt");
     //StreamReader reader = new StreamReader(myFullPath);
     //MessageBox.Show(reader.ReadLine());
 }