diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 50 |
1 files changed, 27 insertions, 23 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 092e9b7de..005ac9b6c 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -313,10 +313,9 @@ namespace Handbrake lbl_encode.Text = "Encoding in Progress";
btn_start.Text = "Stop";
+ btn_start.ToolTipText = "Stop the encoding process. \nWarning: This may break your file. Press ctrl-c in the CLI window if you wish it to exit cleanly.";
btn_start.Image = Properties.Resources.stop;
}
-
-
}
private void btn_add2Queue_Click(object sender, EventArgs e)
{
@@ -506,36 +505,43 @@ namespace Handbrake }
private void drop_chapterStart_SelectedIndexChanged(object sender, EventArgs e)
{
- calculateDuration();
+ int c_start, c_end = 1;
- drop_chapterStart.BackColor = Color.White;
- if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
- {
- int chapterFinish, chapterStart = 0;
- int.TryParse(drop_chapterFinish.Text, out chapterFinish);
- int.TryParse(drop_chapterStart.Text, out chapterStart);
+ if (drop_chapterFinish.Text == "Auto" && drop_chapterFinish.Items.Count != 0)
+ drop_chapterFinish.SelectedIndex = drop_chapterFinish.Items.Count-1;
+
+ int.TryParse(drop_chapterStart.Text, out c_start);
+ int.TryParse(drop_chapterFinish.Text, out c_end);
- if (chapterFinish < chapterStart)
- drop_chapterStart.BackColor = Color.LightCoral;
+ if (c_end != 0)
+ {
+ if (c_start > c_end)
+ drop_chapterFinish.Text = c_start.ToString();
}
+
+ calculateDuration();
+
// Run the Autonaming function
hb_common_func.autoName(this);
}
private void drop_chapterFinish_SelectedIndexChanged(object sender, EventArgs e)
{
- calculateDuration();
+ int c_start, c_end = 1;
- drop_chapterFinish.BackColor = Color.White;
- if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
- {
- int chapterFinish, chapterStart = 0;
- int.TryParse(drop_chapterFinish.Text, out chapterFinish);
- int.TryParse(drop_chapterStart.Text, out chapterStart);
+ if (drop_chapterStart.Text == "Auto" && drop_chapterStart.Items.Count >= 1)
+ drop_chapterStart.SelectedIndex = 1;
+
+ int.TryParse(drop_chapterStart.Text, out c_start);
+ int.TryParse(drop_chapterFinish.Text, out c_end);
- if (chapterFinish < chapterStart)
- drop_chapterFinish.BackColor = Color.LightCoral;
+ if (c_start != 0)
+ {
+ if (c_end < c_start)
+ drop_chapterFinish.Text = c_start.ToString();
}
+ calculateDuration();
+
// Run the Autonaming function
hb_common_func.autoName(this);
}
@@ -1846,6 +1852,7 @@ namespace Handbrake }
lbl_encode.Text = "Encoding Finished";
btn_start.Text = "Start";
+ btn_start.ToolTipText = "Start the encoding process";
btn_start.Image = Properties.Resources.Play;
}
public Boolean isEncoding()
@@ -1894,9 +1901,6 @@ namespace Handbrake }
#endregion
-
-
-
// This is the END of the road ------------------------------------------------------------------------------
}
}
\ No newline at end of file |