/// <summary> /// Click event callback : composition UI setting button /// </summary> /// <param name="_sender"></param> /// <param name="_e"></param> private void OnSettingClick(object _sender, RoutedEventArgs _e) { compSettingWindow = new CompSettingWindow(); compSettingWindow.SetComposition(compUIList[GetEventSource(_sender)].Composition); compSettingWindow.ShowDialog(); compUIList[GetEventSource(_sender)].Composition = compSettingWindow.New_composition; DrawView(); }
/// <summary> /// Click event callback : project menu > new composition /// </summary> /// <param name="_sender"></param> /// <param name="_e"></param> private void Button_NewComposition_Click(object _sender, RoutedEventArgs _e) { compSettingWindow = new CompSettingWindow(); compSettingWindow.ShowDialog(); compUIList.Add(new CompUI(compSettingWindow.New_composition, GetIndexValue(compUIList.Count - 1))); compUIList[compUIList.Count - 1].Button_Composite.Click += OnCompositeClick; compUIList[compUIList.Count - 1].Button_Pause.Click += OnPauseClick; compUIList[compUIList.Count - 1].Button_Wide.Click += OnWideClick; compUIList[compUIList.Count - 1].Button_Play.Click += OnPlayClick; compUIList[compUIList.Count - 1].Button_Setting.Click += OnSettingClick; compUIList[compUIList.Count - 1].Grid_Header.MouseDown += OnCompClick; compSettingWindow = null; ClearView(); DrawView(); }