コード例 #1
0
 private void menuItem6_Click(object sender, EventArgs e)
 {
     if (m_oAbout == null)
     {
         m_oAbout = new AboutBifurcation(HighLevel.getSBWVersion());
     }
     var num = (int)m_oAbout.ShowDialog();
 }
コード例 #2
0
 private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
 {
     try
     {
         if ((string)e.Button.Tag == "clear")
         {
             zedGraphControl1.GraphPane.CurveList.Clear();
         }
         else if ((string)e.Button.Tag == "+")
         {
             zedGraphControl1.GraphPane.YAxis.MaxAuto = false;
             YAxis  yaxis = zedGraphControl1.GraphPane.YAxis;
             double num   = yaxis.Max * 2.0;
             yaxis.Max = num;
         }
         else if ((string)e.Button.Tag == "-")
         {
             zedGraphControl1.GraphPane.YAxis.MaxAuto = false;
             if (zedGraphControl1.GraphPane.YAxis.Max != 0.0 && zedGraphControl1.GraphPane.YAxis.Max > 1E-15)
             {
                 YAxis  yaxis = zedGraphControl1.GraphPane.YAxis;
                 double num   = yaxis.Max / 2.0;
                 yaxis.Max = num;
             }
         }
         else if ((string)e.Button.Tag == "SBW")
         {
             oSBWMenu.Show(e.Button.Parent, e.Button.Rectangle.Location);
         }
         else if ((string)e.Button.Tag == "on/off")
         {
             if (!e.Button.Pushed)
             {
                 zedGraphControl1.GraphPane.PaneFill = new Fill(Color.WhiteSmoke);
                 zedGraphControl1.GraphPane.AxisFill = new Fill(Color.White);
             }
             else
             {
                 zedGraphControl1.GraphPane.PaneFill = new Fill(Color.WhiteSmoke, Color.Lavender, 0.0f);
                 zedGraphControl1.GraphPane.AxisFill = new Fill(Color.White,
                                                                Color.FromArgb(byte.MaxValue, byte.MaxValue, 166), 90f);
             }
         }
         else if ((string)e.Button.Tag == "[]")
         {
             zedGraphControl1.GraphPane.YAxis.MaxAuto = true;
         }
         else if ((string)e.Button.Tag == "About")
         {
             if (m_oAbout == null)
             {
                 m_oAbout = new AboutBifurcation(HighLevel.getSBWVersion());
             }
             var num = (int)m_oAbout.ShowDialog();
         }
         zedGraphControl1.AxisChange();
         zedGraphControl1.Refresh();
     }
     catch (Exception ex)
     {
         var num =
             (int)
             MessageBox.Show(
                 "Error displaying the graph in this resolution. Please increase the scale, or let the scale be determined automatically.",
                 "Error displaying graph");
     }
 }