public WmsgSend() { controlrequest = new ControlRequest(); datamng = DataManager.getInstance(); recvform = RecvMsgs.getInstance(); recvform.MainTextBox = string.Empty; recvform.Show(); InitializeComponent(); }
public static RecvMsgs getInstance() { mutex.WaitOne(); if (instance == null) { instance = new RecvMsgs(); } mutex.ReleaseMutex(); return(instance); }