private void Properties_PropertyClicked(PropertyPage props, ClickType click, int propIdx, int rowIdx, int colIdx)
 {
     if (saveMode)
     {
         var idx = dialog.Properties.GetSelectedIndex(0);
         if (idx >= 0 && idx < userProjects.Count - 1)
         {
             PlatformUtils.MessageBoxAsync("Delete project?", "Delete", MessageBoxButtons.YesNo, (r) =>
             {
                 if (r == DialogResult.Yes)
                 {
                     File.Delete(GetUserProjectFilename(userProjects[idx]));
                     userProjects.RemoveAt(idx);
                     props.UpdateRadioButtonList(0, userProjects.ToArray(), userProjects.Count - 1);
                     props.SetPropertyEnabled(1, true);
                     props.SetPropertyEnabled(2, false);
                     PlatformUtils.ShowToast("Project Deleted!");
                 }
             });
         }
     }
     else
     {
         // HACK : We dont support nested activities right now, so return
         // this special code to signal that we should open from storage.
         storageFilename = "///STORAGE///";
         dialog.CloseWithResult(DialogResult.OK);
     }
 }
Exemple #2
0
 public void Close()
 {
     MainThread.InvokeOnMainThreadAsync(() =>
     {
         dialog.CloseWithResult(DialogResult.OK);
     });
 }