Ejemplo n.º 1
0
        public EventChain Create(string name)
        {
            if (Directory.Exists(GetEventPath() + name))
            {
                Directory.Delete(GetEventPath() + name, true);
            }

            Directory.CreateDirectory(GetEventPath() + name);

            var eventChain = new EventChain(name);

            _EventChains.Add(eventChain);

            EventAdd?.Invoke(eventChain);

            return(eventChain);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 发送选中学生
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Button_Add_Click(object sender, RoutedEventArgs e)
 {
     EventAdd?.Invoke(StudentList[0] as DataSystem.DB.Student);
     Combobox_StudentList.Text = "";
 }