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"; } } }
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(); } } } }
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 = "ເບິ່ງຂໍ້ມູນ"; } }
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(); } }
private void FrmEditEntry_Load(object sender, EventArgs e) { modifiedByTextBox.Text = My.MyProject.Forms.FrmLoginWindow._employeeName; clockInTimePicker.Value = DateTime.Now; clockOutTimePicker.Value = DateTime.Now; int selectedItem = My.MyProject.Forms.FrmTimeSheet.detailsBunifuDataGridView.CurrentCell.RowIndex; string dateE; string startTimeStr; { var withBlock = My.MyProject.Forms.FrmTimeSheet; dateE = Conversions.ToString(withBlock.detailsBunifuDataGridView.Rows[selectedItem].Cells[0].Value); startTimeStr = Conversions.ToString(withBlock.detailsBunifuDataGridView.Rows[selectedItem].Cells[1].Value); } var startTime = Convert.ToDateTime(dateE + " " + startTimeStr); clockInTimePicker.Value = startTime; Panel2.Show(); MdlTimeManagement.populateWorks(workDoneListView); }
private void Label1_Click_1(object sender, EventArgs e) { Panel2.Show(); }
private void Label1_Click(System.Object sender, System.EventArgs e) { Panel2.Show(); }
private void BTN1_Click(object sender, EventArgs e) { Panel1.Hide(); Panel2.Show(); }