コード例 #1
0
ファイル: Form1.cs プロジェクト: thainhan/Nhom7
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Lyric ly = new Lyric();

                lyricdata a = new lyricdata(ly.getly);
                titledata b = new titledata(ly.getti);

                a(this.textBox1);
                b(this.textBox2);
                ly.Show();
            }
            catch { }
        }
コード例 #2
0
ファイル: Lyric.cs プロジェクト: thainhan/Nhom7
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         DialogResult saveVar;
         saveVar = MessageBox.Show("Bạn Muốn Save Không ?", "Lưu", MessageBoxButtons.YesNoCancel);
         if (DialogResult.Yes == saveVar)
         {
             save();
             textBox1.Text = "";
             this.Text = "";
             current = 0;
             Lyric ly = new Lyric();
             ly.Show();
             this.Visible = false;
         }
         if (DialogResult.No == saveVar)
         {
             textBox1.Text = "";
             this.Text = "";
             current = 0;
             Lyric ly = new Lyric();
             ly.Show();
             this.Visible = false;
         }
     }
     catch { }
 }