コード例 #1
0
ファイル: View.cs プロジェクト: ogirard/lyra2
 private static void ViewClosedHandler(object sender, EventArgs e)
 {
     OnSongDisplayed(null);
       _this = null; // delete link to closed View
 }
コード例 #2
0
ファイル: View.cs プロジェクト: ogirard/lyra2
        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
ファイル: View.cs プロジェクト: BackupTheBerlios/lyra2-svn
 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
ファイル: Song.cs プロジェクト: ogirard/lyra2
 public MenuItem GetTransMenu(View view)
 {
     this.view = view;
       return this.transMenu;
 }
コード例 #5
0
ファイル: View.cs プロジェクト: BackupTheBerlios/lyra2-svn
 private void View_Closed(object sender, EventArgs e)
 {
     _this = null; // delete link to closed View
 }