public AddMember(Controller c, Form parent) { InitializeComponent(); this._controller = c; this._parent = parent; this._isEdit = false; }
public AddShow(Controller c, bool isEdit, int index) { _controller = c; _isEdit = isEdit; _index = index; InitializeComponent(); }
public AddSong(Controller c, AddAlbum parent) { _controller = c; _isEdit = false; _parent = parent; InitializeComponent(); this.removeSong.Visible = false; }
public AddReview(Controller c, Reviewer[] reviewers, bool isEdit) { _controller = c; _isEdit = isEdit; InitializeComponent(); this.reviewerIdComboBox.Items.AddRange(reviewers); }
public AddBand(Controller controller) { InitializeComponent(); this._controller = controller; this.Text = "Add band"; this._rows = new List<MemberRow>(); this._isEdit = false; }
public AlbumRow(Controller c, Album a) { _controller = c; _model = a; InitializeComponent(); this.albumName.Text = _model.getName(); }
public AddReviewer(Controller c, string name, string company, string id) : this(c) { this.nameBox.Text = name; this.companyBox.Text = company; this.idBox.Text = id; _isEdit = true; }
public AddReview(Controller c, Reviewer[] reviewers, bool isEdit, Review r) : this(c, reviewers, isEdit) { foreach(Reviewer rev in reviewers) if(rev.getId().Equals(r.getReviewerId())) this.reviewerIdComboBox.SelectedItem = rev; this.reviewBox.Text = r.getReview(); }
public AddBand(string bandName, Controller controller) { InitializeComponent(); this._controller = controller; this.nameBox.Text = bandName; this.Text = "Edit Band"; this._rows = new List<MemberRow>(); this._isEdit = true; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Controller c = new Controller(); c.addView(new MainMenu(c)); c.run(); }
public AddSong(Controller c, AddAlbum parent, string name, string length) : this(c, parent) { _isEdit = true; this.Text = "Edit Song"; this.removeSong.Visible = true; this.lengthBox.Text = length; this.nameBox.Text = name; }
public ShowRow(Controller c, Show s, string venue, string date) { _controller = c; _model = s; InitializeComponent(); this.venueLabel.Text = venue; this.dateLabel.Text = date; }
public AddMember(string name, string instrument, string joinDate, Controller c, Form parent) { InitializeComponent(); this._controller = c; this._parent = parent; this.nameBox.Text = name; this.instrumentBox.Text = instrument; this.joinBox.Text = joinDate; this._isEdit = true; this.removeButton.Visible = true; }
public SongRow(Controller c, Song s, Album a, AddAlbum view) { _controller = c; _model = s; _parent = a; _view = view; InitializeComponent(); this.songName.Text = _model.getName(); this.lengthLabel.Text = parseTime(_model.getlength()); }
public MemberRow(Member m, Controller c, Form parent, bool canEdit) { InitializeComponent(); this.member.Text = m.getName(); this.instrument.Text = m.getInstrument(); this.join.Text = m.getJoinDate(); this._controller = c; this._model = m; this._parent = parent; if(canEdit) this.Cursor = System.Windows.Forms.Cursors.Hand; }
public MainView(Controller c) { InitializeComponent(); this._controller = c; this.UseWaitCursor = false; this.tabs.Cursor = this.Cursor; this.bandRows = new List<BandRow>(); this.reviewerRows = new List<ReviewerRow>(); this.albumRows = new List<AlbumRow>(); this.showRows = new List<ShowRow>(); this.reviewRows = new List<ReviewRow>(); this.songRows = new List<SongRow>(); }
public ReviewerRow(Reviewer r, Controller controller, Form parent) { _model = r; _controller = controller; _parent = parent; InitializeComponent(); this.nameLabel.Text = r.getName(); if (r.getCompany().Length > 0) this.companyLabel.Text = r.getCompany(); else this.companyLabel.Text = "No Company"; this.idLabel.Text = r.getId(); }
public ReviewRow(Controller c, Review r, Album a, AlbumRow row) { _controller = c; _model = r; _parent = a; _parent_row = row; InitializeComponent(); Reviewer reviewer = _controller.getReviewer(r.getReviewerId()); if (reviewer != null) this.reviewerNameLabel.Text = reviewer.getName(); this.reviewLabel.Text = r.getReview(); }
public AddAlbum(Controller c, Album a, AlbumRow r) { _controller = c; _album = a; _row = r; songRows = new List<SongRow>(); InitializeComponent(); this.nameBox.Text = a.getName(); addSongRows(a.getSongs()); if (a.getSongs().Length > 0) _isEdit = true; else _isEdit = false; }
public OpenBand(Controller c, Band[] bands) { _controller = c; _bands = bands; InitializeComponent(); this.nameBox.Items.AddRange(bands); albums = new List<Album>(); shows = new List<Show>(); foreach (Band b in bands) { albums.AddRange(b.getAlbums()); shows.AddRange(b.getShows()); } this.albumBox.Items.AddRange(albums.ToArray()); foreach (Show s in shows) this.showBox.Items.AddRange(s.getDates()); }
public BandRow(Band b, Controller controller, Form parent, bool canEditMembers) { InitializeComponent(); this._controller = controller; this._model = b; this._parent = parent; this.band.Text = b.getName(); int i = 0; foreach (Member member in b.getMembers()) { MemberRow row = new MemberRow(member, _controller, _parent, canEditMembers); row.Top = row.Height * i + this.Height; this.Controls.Add(row); i++; } //update the height MemberRow temp = new MemberRow(new Member("temp", "temp") , _controller, _parent, canEditMembers); this.Height += i * temp.Height; }
public MainMenu(Controller c) { InitializeComponent(); this.controller = c; }
public AddReviewer(Controller c) { _controller = c; InitializeComponent(); _isEdit = false; }
public AddShow(Controller c, bool isEdit, int index, string date, string venue) : this(c, isEdit, index) { this.dateBox.Text = date; this.venueBox.Text = venue; }