Removed the PictureBox from the Surface, meaning that the Surface is now just a Control, this should simplify the event stack and other logic and give us more control.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2099 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-09-26 12:51:01 +00:00
commit 7bb187ce71
2 changed files with 50 additions and 32 deletions

View file

@ -94,8 +94,8 @@ namespace Greenshot {
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
this.ManualLanguageApply = true;
InitializeComponent();
this.ManualLanguageApply = true;
InitializeComponent();
updateUI();
this.Load += delegate {
@ -162,11 +162,11 @@ namespace Greenshot {
ApplyLanguage();
// Fix title
if (surface != null && surface.CaptureDetails != null && surface.CaptureDetails.Title != null) {
this.Text = surface.CaptureDetails.Title + " - " + Language.GetString(LangKey.editor_title);
}
}
// Fix title
if (surface != null && surface.CaptureDetails != null && surface.CaptureDetails.Title != null) {
this.Text = surface.CaptureDetails.Title + " - " + Language.GetString(LangKey.editor_title);
}
}
/// <summary>
/// Get all the destinations and display them in the file menu and the buttons