private void HideShow_Load(object sender, EventArgs e)
        {
            FillProgsList();

            string tempPath = Environment.GetEnvironmentVariable("Temp");
            tempFilename = System.IO.Path.Combine(tempPath, "tempOutPutSave");

            if (System.IO.File.Exists(tempFilename))
            {
                List<HiddenDialog> hiddenDialogs = new List<HiddenDialog>();

                ObjectToSerialize objectToSerialize = new ObjectToSerialize();
                objectToSerialize.HiddenDialogs = hiddenDialogs;
                Serializer serializer = new Serializer();
                objectToSerialize = serializer.DeSerializeObject(tempFilename);
                hiddenDialogs = objectToSerialize.HiddenDialogs;
                foreach (HiddenDialog h in hiddenDialogs)
                {
                    ProgListHidden.Items.Add(h.getTitle());
                    ProgListHiddenHandle.Add(h.gethWnd());
                }
            }
        }
 private void SerializeHiddenDialogs()
 {
     List<HiddenDialog> hiddenDialogs = new List<HiddenDialog>();
     for (int i = 0; i < ProgListHidden.Items.Count; i++)
     {
         hiddenDialogs.Add(new HiddenDialog((string)ProgListHidden.Items[i], (int)ProgListHiddenHandle[i]));
     }
     ObjectToSerialize objectToSerialize = new ObjectToSerialize();
     objectToSerialize.HiddenDialogs = hiddenDialogs;
     Serializer serializer = new Serializer();
     serializer.SerializeObject(tempFilename, objectToSerialize);
 }