static void InputButtonClicked (object obj, EventArgs args) { if (inputDialog == null) { inputDialog = new InputDialog (); inputDialog.SaveButton.Hide (); inputDialog.CloseButton.Clicked += new EventHandler(InputDialogClose); inputDialog.DeleteEvent += new DeleteEventHandler(InputDialogDelete); } inputDialog.Present (); }
static void InputButtonClicked(object obj, EventArgs args) { if (inputDialog == null) { inputDialog = new InputDialog(); inputDialog.SaveButton.Hide(); inputDialog.CloseButton.Clicked += new EventHandler(InputDialogClose); inputDialog.DeleteEvent += new DeleteEventHandler(InputDialogDelete); } inputDialog.Present(); }