Пример #1
0
 // -------------------------------------------------
 public PersonalInfoView_LTP (string nm, Size sizeClient, Point ptinf, TextM tm, CommentedControlLTP_Data [] comds)
 {
     name = nm;
     size = sizeClient;
     ptInfo = ptinf;
     txm = tm;
     dccs = comds;
 }
Пример #2
0
 // -------------------------------------------------        FromRegistry
 public static PersonalInfoView_LTP FromRegistry (Form form, RegistryKey regkey, string strNum)
 {
     string [] strs = (string []) regkey .GetValue (namePIV + strNum);
     if (strs .Length >= 6)
     {
         Size sizeClient = Auxi_Convert .IntoSize (strs, 1);
         Point pt = Auxi_Convert .IntoPoint (strs, 3);
         int nDats = Convert .ToInt32 (strs [5]);
         TextM tm = TextM .FromRegistry (form, regkey, "MovText_" + strNum);
         CommentedControlLTP_Data [] comds = new CommentedControlLTP_Data [nDats];
         for (int i = 0; i < nDats; i++)
         {
             comds [i] = CommentedControlLTP_Data .FromRegistry (regkey, "DataCCL_" + strNum + i .ToString ());
         }
         return (new PersonalInfoView_LTP (strs [0], sizeClient, pt, tm, comds));
     }
     else
     {
         return (null);
     }
 }
Пример #3
0
 // -------------------------------------------------
 public PersonalInfoView_LTP (string nm, Size sizeClient, Point ptinf, TextM tm, CommentedControlLTP [] coms)
 {
     name = nm;
     size = sizeClient;
     ptInfo = ptinf;
     txm = tm;
     dccs = new CommentedControlLTP_Data [coms .Length];
     for (int i = 0; i < coms .Length; i++)
     {
         dccs [i] = new CommentedControlLTP_Data (coms [i]);
     }
 }