Пример #1
0
 public Form2(ListView listView, IOController controller, int index)
 {
     InitializeComponent();
     this.controller = controller;
     this.view       = listView;
     this.index      = index;
 }
Пример #2
0
        public Form1()
        {
            InitializeComponent();
            controller = new IOController(catalog);
            ImageList myimagelist = new ImageList();

            myimagelist.Images.Add(Image.FromFile("dir.png"));
            myimagelist.Images.Add(Image.FromFile("file.png"));
            catalog.SmallImageList = myimagelist;
            catalog.View           = View.Details;
            catalog.Columns.Add("文件名");
            catalog.Columns.Add("类型");
            catalog.Columns.Add("大小");
            catalog.Columns.Add("修改时间");
        }
Пример #3
0
 public Form3(IOController controller)
 {
     InitializeComponent();
     this.controller   = controller;
     richTextBox1.Text = controller.readFile();
 }