Exemple #1
0
 void Serializer(DynamicBlock data)
 {
     using (FileStream fileStream = new FileStream("Data.bin", FileMode.OpenOrCreate))
     {
         binaryFormatter.Serialize(fileStream, data);
     }
 }
Exemple #2
0
 void SetBase(DynamicBlock data)
 {
     Database.BName           = data.BName;
     Database.BPhone          = data.BPhone;
     Database.BPalataNum      = data.BPalataNum;
     Database.VFIO            = data.VFIO;
     Database.VSpecialize     = data.VSpecialize;
     Database.VSpecializeList = data.VSpecializeList;
     Database.From            = data.From;
     Database.Sex             = data.Sex;
     Database.Diag            = data.Diag;
     Database.Reason          = data.Reason;
     Database.FIO             = data.FIO;
     Database.Pol             = data.Pol;
     Database.NomerPolisa     = data.NomerPolisa;
     Database.DataBirth       = data.DataBirth;
     Database.Diagnoz         = data.Diagnoz;
     Database.BolFrom         = data.BolFrom;
     Database.BolVrach        = data.BolVrach;
     Database.DataReg         = data.DataReg;
     Database.Bolnitsa        = data.Bolnitsa;
     Database.DataVipiski     = data.DataVipiski;
     Database.PrichinaVipiski = data.PrichinaVipiski;
     Database.OnPlace         = data.OnPlace;
     ComboUpdates();
     ReturnMainTab();
 }
Exemple #3
0
 DynamicBlock FillBlock(DynamicBlock data)
 {
     data.BName           = Database.BName;
     data.BPhone          = Database.BPhone;
     data.BPalataNum      = Database.BPalataNum;
     data.VFIO            = Database.VFIO;
     data.VSpecialize     = Database.VSpecialize;
     data.VSpecializeList = Database.VSpecializeList;
     data.From            = Database.From;
     data.Sex             = Database.Sex;
     data.Diag            = Database.Diag;
     data.Reason          = Database.Reason;
     data.FIO             = Database.FIO;
     data.Pol             = Database.Pol;
     data.NomerPolisa     = Database.NomerPolisa;
     data.DataBirth       = Database.DataBirth;
     data.Diagnoz         = Database.Diagnoz;
     data.BolFrom         = Database.BolFrom;
     data.BolVrach        = Database.BolVrach;
     data.DataReg         = Database.DataReg;
     data.Bolnitsa        = Database.Bolnitsa;
     data.DataVipiski     = Database.DataVipiski;
     data.PrichinaVipiski = Database.PrichinaVipiski;
     data.OnPlace         = Database.OnPlace;
     return(data);
 }