Пример #1
0
 private void tsbtEdit_Click(object sender, EventArgs e)
 {
     if (0 == metroGridTitle.SelectedCells.Count)
     {
         tsbtEdit.Checked = false;
         return;
     }
     if (tsbtEdit.Checked)
     {
         Animate.AnimateWindow(metroGridTitle.Handle, 200, Animate.AW_SLIDE + Animate.AW_HOR_NEGATIVE + Animate.AW_HIDE);
         textBoxWithTitle.Title   = (string)metroGridTitle.SelectedCells[0].Value;
         textBoxWithTitle.Content = (string)metroGridTitle.SelectedCells[0].Tag;
     }
     else
     {
         Animate.AnimateWindow(metroGridTitle.Handle, 200, Animate.AW_SLIDE + Animate.AW_HOR_POSITIVE);
         metroGridTitle.SelectedCells[0].Value = textBoxWithTitle.Title;
         metroGridTitle.SelectedCells[0].Tag   = textBoxWithTitle.Content;
     }
 }