public SendMessageWindow(VKontakteApiWrapper wrapper, UserInfos info, UserMessage msgToReply) { InitializeComponent(); if (!msgToReply.IsNull()) { UsrMsg = msgToReply; txtSubect.Text = this.UsrMsg.MessageTitle; } if (info != null) this.userInfos = info; if (wrapper != null) this.wrapper = wrapper; }
private void CleanUp() { if (!userInfos.IsNull()) userInfos = null; if (wrapper != null) wrapper = null; if (UsrMsg != null) UsrMsg = null; GC.Collect(0); }