コード例 #1
0
        private void ChangeDescription()
        {
            var composer = new Composer {
                Title = "Description", Text = _model.Description
            };

            composer.NewComment(this, () => {
                var text           = composer.Text;
                _model.Description = text;
                composer.CloseComposer();
            });
        }
コード例 #2
0
ファイル: Composer.cs プロジェクト: envy4s/Gistacular
            public ComposerView (RectangleF bounds, Composer composer) : base (bounds)
            {
                textView = new UITextView (RectangleF.Empty) {
                    Font = UIFont.SystemFontOfSize (18),
                };
                
                // Work around an Apple bug in the UITextView that crashes
                if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
                    textView.AutocorrectionType = UITextAutocorrectionType.No;

                AddSubview (textView);
            }
コード例 #3
0
            public ComposerView(RectangleF bounds, Composer composer) : base(bounds)
            {
                textView = new UITextView(RectangleF.Empty)
                {
                    Font = UIFont.SystemFontOfSize(18),
                };

                // Work around an Apple bug in the UITextView that crashes
                if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
                {
                    textView.AutocorrectionType = UITextAutocorrectionType.No;
                }

                AddSubview(textView);
            }
コード例 #4
0
 private void ChangeDescription()
 {
     var composer = new Composer { Title = "Description", Text = _model.Description };
     composer.NewComment(this, () => {
         var text = composer.Text;
         _model.Description = text;
         composer.CloseComposer();
     });
 }