private void SendMessage_Click(object sender, RoutedEventArgs e) { var core = new CoreFunc(); core.SendMessage( this.Info, this.Diagnosis, this.Patient, new Guid("1A239C9B-E404-4AF3-A7BD-8D1C4925781D"), //user_id new Guid("5A239C9B-E404-4AF3-A7BD-8D1C4925781D"), //to_id this.ImagePath1.Content.ToString(), this.ImagePath2.Content.ToString(), this.ImagePath3.Content.ToString(), this.ImagePath4.Content.ToString(), this.ImagePath5.Content.ToString()); this.DialogResult = true; }