예제 #1
0
파일: MyDocument.cs 프로젝트: garuma/Macboy
 public override void EncodeRestorableState(NSCoder coder)
 {
     base.EncodeRestorableState (coder);
     if (!string.IsNullOrEmpty (currentNoteID))
         coder.Encode (new NSString (currentNoteID), "savedNoteId");
 }
예제 #2
0
		public override void EncodeRestorableState (NSCoder coder)
		{
			base.EncodeRestorableState (coder);
			coder.Encode (new NSString (string.IsNullOrEmpty (currentUrl) ? string.Empty : currentUrl), "monodoc.currentUrl");
		}
		public void Encode (NSCoder coder)
		{
			coder.Encode ((NSString)_name, "name");
			coder.Encode (_data, "data");
		}