Exemple #1
0
        private void ButWinErrorH_Click(object sender, EventArgs e)
        {
            WinErrorInfo wei;

            try
            {
                wei = new WinErrorInfo();
            }
            catch (Exception excp)
            {
                MessageBox.Show(this, excp.Message, "Windows Error Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            FormErrorList frm = new FormErrorList(wei);

            frm.ShowDialog(this);
            frm.Dispose();
        }
Exemple #2
0
 public FormErrorList(WinErrorInfo wei)
 {
     InitializeComponent();
     m_WEI           = wei;
     m_SelectedIndex = -1;
     CbLang.BeginUpdate();
     foreach (var item in WErrorItem.EnumLocales())
     {
         try
         {
             CbLang.Items.Add(item.ToString() + " - " + CultureInfo.GetCultureInfo((int)item).DisplayName);
         }
         catch
         {
         }
     }
     CbLang.SelectedIndex = 0;
 }
Exemple #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            WinErrorInfo wei;

            try
            {
                wei = new WinErrorInfo();
            }
            catch (Exception excp)
            {
                MessageBox.Show(excp.Message, "Windows Error Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            FormErrorList frm = new FormErrorList(wei);

            Application.Run(frm);
        }