예제 #1
0
        /// <summary>
        /// odświeżanie pierwszego okna
        /// </summary>
        /// <param name="path"></param>
        private void RefreshListNum1(string path)
        {
            MyDirectory MyDir1 = new MyDirectory(path);

            listBoxNumber1.Items.Clear();
            List <ElementsOfDisc> DiscElementsNum1 = MyDir1.GetAllFilesAndDirectories();

            foreach (ElementsOfDisc discElement in DiscElementsNum1)
            {
                ViewOfListItems discElementView = new ViewOfListItems(discElement);
                listBoxNumber1.Items.Add(discElementView);
                discElementView.refreshlist   += RefreshListAfterDelete;
                discElementView.AfterOpenNum1 += WindowAfterOpen;
                discElementView.CopyFileNum1  += GetPathAfterClick;
            }
        }