Example #1
0
 public static void ShowSong(Song song, Translation trans, GUI owner, ListBox navigate)
 {
     if(_this == null)
     {
         _this = new View();
     }
     _this.menuItem1.Visible = false;
     _this.owner = owner;
     _this.navigate = navigate;
     _this.menuItem6.Checked = Util.SHOWRIGHT;
     _this.richTextBox1.Font = Util.FONT;
     _this.richTextBox2.Font = Util.FONT;
     if (trans != null)
     {
         _this.refresh(song, trans);
     }
     else
     {
         _this.refresh(song);
     }
     _this.richTextBox1.Focus();
     _this.pos = navigate.Items.IndexOf(_this.song);
     _this.Show();
 }
Example #2
0
 private void View_Closed(object sender, EventArgs e)
 {
     _this = null; // delete link to closed View
 }
Example #3
0
 public MenuItem GetTransMenu(View view)
 {
     this.view = view;
     return this.transMenu;
 }