Пример #1
0
 private static void ViewClosedHandler(object sender, EventArgs e)
 {
     OnSongDisplayed(null);
       _this = null; // delete link to closed View
 }
Пример #2
0
        public static void ShowSong(ISong song, ITranslation trans, GUI owner, ListBox navigate)
        {
            if (_this == null)
              {
            _this = new View();
            _this._richTextBox1.ScrollDataChanged += OnRichTextBox1OnScrollDataChanged;
              }

              _this._song = song;
              _this._menuItem1.Visible = false;
              _this._owner = owner;
              _this.navigate = navigate;
              _this._menuItem6.Checked = Util.SHOWRIGHT;

              if (trans != null)
              {
            _this.RefreshSong(song, trans);
              }
              else
              {
            _this.RefreshSong(song);
              }
              _this._richTextBox1.Focus();
              _this.pos = navigate.Items.IndexOf(_this._song);
              _this.Show();
        }
Пример #3
0
 public static void ShowSong(ISong song, ITranslation 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();
 }
Пример #4
0
 public MenuItem GetTransMenu(View view)
 {
     this.view = view;
       return this.transMenu;
 }
Пример #5
0
 private void View_Closed(object sender, EventArgs e)
 {
     _this = null; // delete link to closed View
 }