Esempio n. 1
0
 private void underdevItem_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         HttpWebRequest  request   = (HttpWebRequest)WebRequest.Create(underdevPath);
         HttpWebResponse response  = (HttpWebResponse)request.GetResponse();
         Stream          resStream = response.GetResponseStream();
         string          underdev;
         using (StreamReader sr = new StreamReader(resStream))
         {
             underdev = sr.ReadToEnd();
         }
         ClosedlistWindow cw = new ClosedlistWindow("LANGFILES UNDER DEVELOPMENT",
                                                    underdev.Replace(":", ": "));
         cw.ShowDialog();
     }
     catch
     {
         MessageBox.Show("Failed to fetch #underdev.");
     }
 }
Esempio n. 2
0
 private void closedlistItem_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         HttpWebRequest  request   = (HttpWebRequest)WebRequest.Create(closedlistPath);
         HttpWebResponse response  = (HttpWebResponse)request.GetResponse();
         Stream          resStream = response.GetResponseStream();
         string          closedlist;
         using (StreamReader sr = new StreamReader(resStream))
         {
             closedlist = sr.ReadToEnd();
         }
         ClosedlistWindow cw = new ClosedlistWindow("CURRENT CLOSEDLIST",
                                                    closedlist.Replace(":", ": "));
         cw.ShowDialog();
     }
     catch
     {
         MessageBox.Show("Failed to fetch #closedlist.");
     }
 }