Пример #1
0
 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (AboutBox ab = new AboutBox(
         m_settings.Proxy,
         m_settings.ProxyPort.ToString(CultureInfo.CurrentCulture),
         m_settings.ProxyUserName,
         m_settings.ProxyPassword))
     {
         ab.StringParameterCallback = new StringParameterHandler(this.UpdateSettings);
         ab.StartPosition = FormStartPosition.CenterParent;
         ab.ShowDialog();
     }
 }
Пример #2
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == WM_SYSCOMMAND)
     {
         switch (m.WParam.ToInt32())
         {
             case ABOUTMENU:
                 using (AboutBox ab = new AboutBox(
                     m_settings.Proxy,
                     m_settings.ProxyPort.ToString(CultureInfo.CurrentCulture),
                     m_settings.ProxyUserName,
                     m_settings.ProxyPassword))
                 {
                     ab.StringParameterCallback = new StringParameterHandler(this.UpdateSettings);
                     ab.StartPosition = FormStartPosition.CenterParent;
                     ab.ShowDialog();
                 }
                 return;
             default:
                 break;
         }
     }
     base.WndProc(ref m);
 }