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 executeComfirm(comfirmDelegate comfirm)
 {
     comfirm(this);
 }