Beispiel #1
0
        public FileManager()
        {
            InitializeComponent();
            presenter = new Presenter(this);

            presenter.ClearReport();
            presenter.ReportHeader();
            listView1.MouseDoubleClick += ListView1_MouseDoubleClick;
            listView2.MouseDoubleClick += ListView2_MouseDoubleClick;
            listView1.Enter            += ListView1_Enter;
            listView2.Enter            += ListView2_Enter;
            drives = Environment.GetLogicalDrives();
            for (int i = 0; i < drives.Length; i++)
            {
                comboBox1.Items.Add(drives[i]);
                comboBox2.Items.Add(drives[i]);
            }
            comboBox1.Text = drives[0];
            comboBox2.Text = drives[0];
            presenter.Refresh(listView1, @drives[0]);
            presenter.Refresh(listView2, @drives[0]);
            comboBox1.SelectedIndexChanged += ComboBox1_SelectedIndexChanged;
            comboBox2.SelectedIndexChanged += ComboBox2_SelectedIndexChanged;
        }