public static void CreateMessageBox(string title, comfirmDelegate onComfirm, cancelDelegate onCancel) { MessageWindow messageWindow = CreateInstance <MessageWindow>(); messageWindow.TitleText = title; messageWindow.Comfirm = onComfirm; messageWindow.Cancel = onCancel; messageWindow.Show(); }
void executeCancel(cancelDelegate cancel) { cancel(this); }