-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,344 additions
and
106 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// This file has been autogenerated from a class added in the UI designer. | ||
|
||
using System; | ||
|
||
using Foundation; | ||
using AppKit; | ||
using System.Drawing; | ||
|
||
namespace MemcardRex | ||
{ | ||
public partial class CommentDialogController : NSViewController | ||
{ | ||
#region Private Variables | ||
private string _dialogTitle = ""; | ||
private string _comment = ""; | ||
private NSViewController _presentor; | ||
#endregion | ||
|
||
#region Computed Properties | ||
public string DialogTitle | ||
{ | ||
get { return _dialogTitle; } | ||
set { _dialogTitle = value; } | ||
} | ||
|
||
public string Comment | ||
{ | ||
get { return _comment; } | ||
set { _comment = value; } | ||
} | ||
|
||
public NSViewController Presentor | ||
{ | ||
get { return _presentor; } | ||
set { _presentor = value; } | ||
} | ||
#endregion | ||
|
||
public CommentDialogController (IntPtr handle) : base (handle) | ||
{ | ||
} | ||
|
||
#region Override Methods | ||
public override void ViewWillAppear() | ||
{ | ||
base.ViewWillAppear(); | ||
|
||
this.View.Window.Title = DialogTitle; | ||
|
||
CommentTextInput.StringValue = Comment; | ||
|
||
|
||
//Disable resizing of modal dialog | ||
this.View.Window.StyleMask &= ~NSWindowStyle.Resizable; | ||
} | ||
#endregion | ||
|
||
#region Events | ||
public EventHandler DialogAccepted; | ||
|
||
internal void RaiseDialogAccepted() | ||
{ | ||
if (this.DialogAccepted != null) | ||
this.DialogAccepted(this, EventArgs.Empty); | ||
} | ||
#endregion | ||
|
||
[Export("ConfirmDialog:")] | ||
void AcceptDialog(NSObject sender) | ||
{ | ||
//Save changes | ||
Comment = CommentTextInput.StringValue; | ||
|
||
RaiseDialogAccepted(); | ||
Presentor.DismissViewController(this); | ||
} | ||
|
||
[Export("CancelDialog:")] | ||
void CancelDialoga(NSObject sender) | ||
{ | ||
Presentor.DismissViewController(this); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.