Skip to content

Commit

Permalink
Release 1.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueltilly committed Apr 9, 2021
1 parent 1227110 commit 0338eb1
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 37 deletions.
119 changes: 84 additions & 35 deletions MTC Timecode for Companion/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions MTC Timecode for Companion/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public Form1()

private void Form1_Load(object sender, EventArgs e)
{
//GUI
splitContainer1.SplitterDistance = 45;
splitContainer1.FixedPanel = FixedPanel.Panel1;


nextEvent.Hour = 99;
nextEvent.Minute = 99;
nextEvent.Second = 99;
Expand Down Expand Up @@ -279,5 +284,27 @@ private void WarningFlashTimer_Tick(object sender, EventArgs e)
{
timecode_lbl.ForeColor = ((timecode_lbl.ForeColor == Color.Red) ? Color.Black : Color.Red);
}

private void deleteSelectedItemInListToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
string box_msg = ("Do you want to DELETE this row from the cue list?");
string box_title = "Are you sure?";
DialogResult result = MessageBox.Show(box_msg, box_title, MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.Yes)
{

data.TimecodeEventList.RemoveAt(dataGridView1.CurrentCell.RowIndex);
ReloadDataGridView();


}
}
catch
{
MessageBox.Show("No row was selected, or there was a problem deleting the row.", "No row selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
}
Loading

0 comments on commit 0338eb1

Please sign in to comment.