コード例 #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 showHideWorkDone()
        {
            int selectedRow;

            if (createEntyDataGrid.SelectedRows.Count > 0)
            {
                selectedRow = createEntyDataGrid.CurrentRow.Index;
                string employeeType = Conversions.ToString(createEntyDataGrid.Rows[selectedRow].Cells[4].Value);
                if (shiftTypeComboBox.SelectedIndex > -1)
                {
                    if (employeeType.Equals("Crew") & shiftTypeComboBox.SelectedItem.Equals("Piece Work"))
                    {
                        Panel2.Show();
                    }
                    else if (employeeType.Equals("Crew") & shiftTypeComboBox.SelectedItem.Equals("Hourly") & clockOutCheckBox.Checked)
                    {
                        Panel2.Show();
                    }
                    else
                    {
                        Panel2.Hide();
                    }
                }
            }
        }
コード例 #3
0
 public void ButtonX2_Click(object sender, EventArgs e)
 {
     if (ButtonX2.Text == "ເບິ່ງຂໍ້ມູນ")
     {
         Panel2.Show();
         Timer1.Start();
         ButtonX2.Text = "ພັບໄວ້";
     }
     else if (ButtonX2.Text == "ພັບໄວ້")
     {
         Panel2.Hide();
         Panel2.Height = 0;
         ButtonX2.Text = "ເບິ່ງຂໍ້ມູນ";
     }
 }
コード例 #4
0
 private void UpdateMetrics()
 {
     if (bLogVisible)
     {
         IsSplitterFixed = false;
         SplitterWidth   = CaptionFont.Height + (CaptionPadding * 2) + 4;
         Panel2MinSize   = 50;
         Panel2.Show();
     }
     else
     {
         IsSplitterFixed = true;
         Panel2MinSize   = 0;
         SplitterWidth   = CaptionFont.Height + CaptionPadding + 4;
         Panel2.Hide();
     }
 }
コード例 #5
0
 private void clockOutCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (clockOutCheckBox.Checked)
     {
         clockOutTimePicker.Show();
         clockoOutDateTimePicker.Show();
         int selectedEntry = My.MyProject.Forms.FrmTimeSheet.summaryBunifuDataGridView.CurrentCell.RowIndex;
         // Dim selectedItemS As Integer = FrmTimeSheet.summaryListView.FocusedItem.Index
         string typeWorker = Conversions.ToString(My.MyProject.Forms.FrmTimeSheet.summaryBunifuDataGridView.Rows[selectedEntry].Cells[7].Value);
         if (shiftTypeComboBox.SelectedItem.Equals("Hourly") & typeWorker.Equals("Crew"))
         {
         }
     }
     else
     {
         clockOutTimePicker.Hide();
         clockoOutDateTimePicker.Hide();
         Panel2.Hide();
     }
 }
コード例 #6
0
ファイル: Xbox.cs プロジェクト: WooZoo86/Tallus
 private void timer1_Tick(object sender, EventArgs e)
 {
     Panel2.Hide();
 }
コード例 #7
0
 public void dgvEmployee_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     Panel2.Hide();
     Panel2.Height = 0;
     ButtonX2.Text = "ເບິ່ງຂໍ້ມູນ";
 }
コード例 #8
0
        private void Btn2_Click(object sender, EventArgs e)

        {
            Panel2.Hide();
            Panel3.Show();
        }