示例#1
0
        private void ChildBloons_Button_Click(object sender, EventArgs e)
        {
            if (Panel3.Visible == true)
            {
                Panel3.Hide();
                if (SwitchPanel.Text == "Page 2")
                {
                    Panel1.Show();
                }
                else if (SwitchPanel.Text == "Page 1")
                {
                    Panel2.Show();
                }

                ChildBloons_Button.Text = "Child Bloons";
            }
            else
            {
                Panel1.Hide();
                Panel2.Hide();
                Panel3.Show();

                if (SwitchPanel.Text == "Page 2")
                {
                    ChildBloons_Button.Text = "Page 1";
                }
                else if (SwitchPanel.Text == "Page 1")
                {
                    ChildBloons_Button.Text = "Page 2";
                }
            }
        }
示例#2
0
 private void reasonNewEntryComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (reasonNewEntryComboBox.SelectedItem.Equals("Other"))
     {
         Panel1.Show();
     }
     else
     {
         Panel1.Hide();
     }
 }
示例#3
0
 private void DateMode_CheckedChanged(object sender, EventArgs e)
 {
     if (TimeStrip.Checked)
     {
         this.Width = 436;
         Panel1.Show();
     }
     else
     {
         this.Width = 236;
         Panel1.Hide();
     }
 }
 private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (xxx == 0)
     {
         Panel1.Hide();
         LinkLabel1.Text = "إظهار القائمة";
         xxx++;
     }
     else
     {
         Panel1.Show();
         LinkLabel1.Text = "إخفاء القائمة";
         xxx             = 0;
     }
 }
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     if (xxx == 0)
     {
         Panel1.Hide();
         LinkLabel1.Text = "إظهار القائمة";
         xxx++;
     }
     else
     {
         Panel1.Show();
         LinkLabel1.Text = "إخفاء القائمة";
         xxx             = 0;
     }
 }
示例#6
0
    private void LoadDetailData(string ID, string kind)//加载明细信息
    {
        string    basesql = "";
        DataTable dt;

        if (kind.Trim() == "已引用")
        {
            basesql = "select h.h_number,h.h_content,h.h_consequences,h.m_standards,h.m_measures,h.regulatorymeasures,h.risk_typesnumber,h.accident_typenumber,ho.risk_evelnumber,ho.m_objectnumber,ho.m_personnumber,ho.directlyresponsiblepersonsnumb,ho.regulatorypartnersnumber,ho.processingmode,ho.punishmentstandard,ho.note,ho.h_bm,ho.levelid,ho.SCORES,ho.sw_bm,ho.sw_levelid,ho.sw_scores,ho.SW_PUNISHMENTSTANDARD from hazards h inner join hazards_ore ho on h.h_number=ho.h_number where ho.h_bjw='引用' and ho.deptnumber='" + SessionBox.GetUserSession().DeptNumber + "'";
            dt      = OracleHelper.Query(basesql + " and h.HAZARDSID=" + ID).Tables[0];
        }
        else
        {
            basesql = "select h.h_number,h.h_content,h.h_consequences,h.m_standards,h.m_measures,h.regulatorymeasures,h.risk_typesnumber,h.accident_typenumber,ho.risk_evelnumber,ho.m_objectnumber,ho.m_personnumber,ho.directlyresponsiblepersonsnumb,ho.regulatorypartnersnumber,ho.processingmode,ho.punishmentstandard,ho.note,ho.h_bm,ho.levelid,ho.SCORES,ho.sw_bm,ho.sw_levelid,ho.sw_scores,ho.SW_PUNISHMENTSTANDARD  from hazards h inner join hazards_ore ho on h.h_number=ho.h_number where ho.h_bjw='通用'";
            dt      = OracleHelper.Query(basesql + " and h.HAZARDSID=" + ID).Tables[0];
        }
        Panel1.Show();
        SetControlValue(dt);
    }
示例#7
0
        private void PictureBox2_Click(object sender, EventArgs e)
        {
            // boton inicio por medio de la variable se pone en falso y muestra  los modulo y si la variable es verdara oculta los modulos
            if (pn_principal.Visible == true)
            {
                pn_principal.Controls.RemoveAt(0);

                pn_principal.Hide();
                if (pasar == true)
                {
                    Panel1.Show();
                    pn_empleados.Show();
                    Pn_pagos.Show();
                    Panel4.Show();
                    Panel5.Show();
                    pn_configuracion.Show();
                }
                else
                {
                    Panel1.Show();
                    Panel4.Show();
                }
                paso = false;
            }

            if (paso == true)
            {
                if (pasar == true)
                {
                    Panel1.Hide();
                    pn_empleados.Hide();
                    Pn_pagos.Hide();
                    Panel4.Hide();
                    Panel5.Hide();
                    pn_configuracion.Hide();
                }
                else
                {
                    Panel1.Hide();
                    Panel4.Hide();
                }
                paso = false;
            }
            else
            {
                if (pasar == true)
                {
                    Panel1.Show();
                    pn_empleados.Show();
                    Pn_pagos.Show();
                    Panel4.Show();
                    Panel5.Show();
                    pn_configuracion.Show();
                }
                else
                {
                    Panel1.Show();
                    Panel4.Show();
                }

                paso = true;
            }
        }