Exemplo n.º 1
0
 public int SaveTask(JiraTask task)
 {
     if (task.ID != 0) {
         base.Update (task);
         return task.ID;
     } else {
         return base.Insert (task);
     }
 }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button> (Resource.Id.myButton);
            _task.Name = "srihari";
            _task.Notes = "this is sample";
            button.Click += delegate {
                TaskJira.Core.JiraTaskManager.SaveTask(_task);
                this._task = TaskJira.Core.JiraTaskManager.GetTask(1);
                string s = this._task.Name;
                string a = this._task.Notes;
            };
        }
Exemplo n.º 3
0
 public static int SaveTask(JiraTask item)
 {
     return _me._db.SaveTask (item);
 }