private void sendFileBtn_Click(object sender, EventArgs e) { if (MiddleController.getInstance().fileShareController.isTransactionGoing()) { return; } using (OpenFileDialog o = new OpenFileDialog()) { o.Filter = "All Files (*.*)|*.*"; o.Multiselect = true; if (o.ShowDialog() == System.Windows.Forms.DialogResult.OK) { tempSelectedFile = o; controlMessage.sendFileCommingSignal(ipTokenInChat); sendTempFile(); } } }