Inheritance: ListViewColumn
コード例 #1
0
ファイル: Main.cs プロジェクト: feg-giessen/videocommander
        public Main()
        {
            this.InitializeComponent();

            this.playlistExtender = new ListViewExtender(this.playlist);

            // extend 2nd column
            var buttonAction = new ListViewButtonColumn(this.playlist.Columns.Count - 1);
            buttonAction.Click += this.PlaySingleAction;
            buttonAction.FixedWidth = true;

            this.playlistExtender.AddColumn(buttonAction);
            this.DragEnter += MainDragEnter;
            this.DragDrop += MainDragDrop;

            this.addDialog = new AddDialog();
            this.settingsDialog = new Settings();

            this.lblVersion.Text = string.Format("Version {0} [[email protected]]", Application.ProductVersion);

            this.settingSerializer = new DisplaySettingSerializer();
            this.playlistSerializer = new PlaylistSerializer();

            this.mouseTimer = new System.Threading.Timer(DisplayMousePosition);

            this.Disposed += Main_Disposed;
        }
コード例 #2
0
        public Main()
        {
            this.InitializeComponent();

            this.playlistExtender = new ListViewExtender(this.playlist);

            // extend 2nd column
            var buttonAction = new ListViewButtonColumn(this.playlist.Columns.Count - 1);

            buttonAction.Click     += this.PlaySingleAction;
            buttonAction.FixedWidth = true;

            this.playlistExtender.AddColumn(buttonAction);
            this.DragEnter += MainDragEnter;
            this.DragDrop  += MainDragDrop;

            this.addDialog      = new AddDialog();
            this.settingsDialog = new Settings();

            this.lblVersion.Text = string.Format("Version {0} [[email protected]]", Application.ProductVersion);

            this.settingSerializer  = new DisplaySettingSerializer();
            this.playlistSerializer = new PlaylistSerializer();

            this.mouseTimer = new System.Threading.Timer(DisplayMousePosition);

            this.Disposed += Main_Disposed;
        }