private void mainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //Model Init
            rlModel = new RLModel();
            rlModel.playStrBoard          = (Storyboard)this.Resources["playSB"];
            rlModel.playStrBoard.Duration = TimeSpan.FromSeconds(600);

            lastIndex = 0;
            UpdateRLModel();
            // Interface Init
            editMode  = new EditMode();
            editMode  = EditMode.Hand;
            trgObject = TargetObject.None;
            trgIndex  = -1;
            selObject = new SelObject();
            modelScrollViewer.ScrollToHorizontalOffset((modelCanvas.Width - modelScrollViewer.ViewportWidth) / 2);
            modelScrollViewer.ScrollToVerticalOffset((modelCanvas.Height - modelScrollViewer.ViewportHeight) / 2);
            playMode = new PlayMode();
            playMode = PlayMode.Stop;
            chUsdAry = new bool[consts.MAX_CDG_CHN];
            for (int i = 0; i < consts.MAX_CDG_CHN; i++)
            {
                chUsdAry[i] = false;
            }

            // Files Init
            crtDirectory = "%HOME%";
        }
 public void FileNew_Click(object sender, RoutedEventArgs e)
 {
     rlModel = new RLModel();
     UpdateAnim();
     UpdateRLModel();
 }