private void Button_Add_Click(object sender, RoutedEventArgs e) { if (mUVAnim == null) { return; } mUVAnim.AddFrame(); ListBox_Frames.Items.Add(KeyFrameWord + (mUVAnim.Frames.Count - 1)); ImagePanel.AddFrame(); }