コード例 #1
0
        private void lblIfIsnt_Click(object sender, EventArgs e)
        {
            Composition c;

            fac = new FAddComp();
            fac.ShowDialog(this);
            if (fac.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                c = new Composition(fac.NameComp, fac.album, fac.ImageName);
                List <Performer> perfs = fac.Performers;

                foreach (var performer in fac.Performers)
                {
                    new CompositionPerformer(c, (Performer)performer);
                }
            }
            ListBoxRefresh();
        }
コード例 #2
0
ファイル: FSongs.cs プロジェクト: bldgk/MIDI-Editor
 private void lblAdd_Click(object sender, EventArgs e)
 {
     try
     {
         FAs = new FAddComp();
         Composition c;
         FAs.ShowDialog(this);
         if (FAs.DialogResult == DialogResult.OK)
         {
             c = new Composition(FAs.NameComp, FAs.album, FAs.ImageName);
             List <Performer> perfs = FAs.Performers;
             label_album_comp.Text = c.Album;
             pb_comp.Image         = Image.FromFile(c.Imagename);
             foreach (var performer in FAs.Performers)
             {
                 new CompositionPerformer(c, (Performer)performer);
             }
         }
         ListBoxRefresh();
         Invalidate();
         FSongs.ActiveForm.Update();
     }
     catch { }
 }