private void Button_Click_1(object sender, RoutedEventArgs e) { var scm = new Smc(Smc.ServiceProviderEnum.DES); var jd = new journal_contentData(); jd.CodeOborude = codeOborude.Text; jd.Date = DateTime.Now.ToShortDateString(); jd.Description = descriptionText.Text; jd.ModifyDate = DateTime.Now.ToShortDateString(); jd.Enable = true; jd.Family = familyText.Text; jd.NameOborude = nameText.Text; jd.Smena = smenaText.Text; jd.Status = statusText.Text; jd.ID = EntryID; JournalPacket metadata = new JournalPacket(jd); string metatype = metadata.GetType().FullName; Client.Instance.SendCommand(Client.Instance.ServerIp, (EntryID != -1 ? OpcoDes.CMSG_SEND_JOURNAL_ENTRY : OpcoDes.CMSG_SEND_JOURNAL_ENTRY), metatype, metadata); }