private void ShowCustomerForm(int id) { frmCustomer frm = new frmCustomer(); frm.OnDisplayRecord(id); frm.ControlBox = true; frm.FormBorderStyle = FormBorderStyle.Fixed3D; frm.MaximizeBox = false; frm.ShowDialog(); }
//public static string DownloadRecordingFile(string FolderPath, string BaseURL, string ClientUserName, string UniqueID, string CallerId) //{ // try // { // string fileName = UniqueID + "_" + CallerId + ".wav"; // string FileUrl = BaseURL.Trim().TrimEnd('/') + "/" + ClientUserName + "/" + fileName; // //string FloderPath = System.IO.Directory.GetCurrentDirectory() + "\\" + "Recordings"; // if (!System.IO.Directory.Exists(FolderPath)) // { // System.IO.Directory.CreateDirectory(FolderPath); // } // using (WebClient wc = new WebClient()) // { // //wc.DownloadProgressChanged += wc_DownloadProgressChanged; // wc.DownloadFile( // // Param1 = Link of file // new System.Uri(FileUrl), // // Param2 = Path to save // FolderPath + "\\" + fileName // ); // } // return FolderPath + "\\" + fileName; // } // catch (Exception exe) // { // } // return string.Empty; //} private void ShowCustomerForm(string phoneNumber) { try { frmCustomer frm = new frmCustomer(phoneNumber); frm.ControlBox = true; frm.FormBorderStyle = FormBorderStyle.Fixed3D; frm.MaximizeBox = false; frm.ShowDialog(); frm.Dispose(); } catch (Exception ex) { } }