예제 #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();
 }