protected override void Run() { base.Run(); dlgDatabaseConfiguration dlgDbConfig = new dlgDatabaseConfiguration(); dlgDbConfig.Response += dialogResponde; dlgDbConfig.Run(); dlgDbConfig.Destroy(); }
protected void OnButton17Clicked(object sender, System.EventArgs e) { dlgDatabaseConfiguration d = new dlgDatabaseConfiguration(); d.Response += delegate { MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Info, ButtonsType.Close, "Test succeeded"); md.Run(); md.Destroy(); }; d.Run(); d.Destroy(); }