ndow () ;. Show ();
}
{. Show ( Login error );
}
}
} void ButtonUserClick (object sender, RoutedEventArgs e)
{stdWnd=new StudentWindow () ;. Show ();
} void CustomTimer ()
{cult=new CultureInfo ( uk-UA ); (true)
{. Dispatcher.Invoke (new Action (()= gt;
{. Content=String.Format ( {0: d/M/yyyy HH: mm: ss} raquo ;, DateTime.Now);//.ToString ( {0: d/M/yyyy HH: mm: ss} raquo ;, cult);
})) ;. Sleep (1000);
}
} void buttonDEL_Click (object sender, RoutedEventArgs e)
{. Clear ();
} void buttonBack_Click (object sender, RoutedEventArgs e)
{
} void Button_Click (object sender, RoutedEventArgs e)
{. Password +=((Button) sender) .Content;
} void loginTextBox_MouseDown (object sender, MouseButtonEventArgs e)
{
} void passwordTextBox_GotFocus (object sender, RoutedEventArgs e)
{
} void loginTextBox_GotFocus (object sender, RoutedEventArgs e)
{
} void Window_Loaded_1 (object sender, RoutedEventArgs e)
{();
} void SerializationAdmin ()
{xml=new XmlSerializer (typeof (Admin)); (var fStream=new FileStream ( Admin.xml raquo ;, FileMode.Create, FileAccess.Write, FileShare.None))
{. Serialize (fStream, _Admin);
}
} void DeserializationAdmin ()
{xml=new XmlSerializer (typeof (Admin)); (var fStream=new FileStream ( Admin.xml raquo ;, FileMode.Open, FileAccess.Read, FileShare.None))
{
_ Admin=(Admin) xml.Deserialize (fStream);
}
} void Window_Closing_1 (object sender, System.ComponentModel.CancelEventArgs e)
{();
} void Button_Click_1 (object sender, RoutedEventArgs e)
{();
}
}
}
Додаток Б
System;System.Collections.Generic;System.Collections.ObjectModel;System.ComponentModel;System.Linq;System.Text;System.Windows;System.Windows.Controls;System.Windows.Data;System.Windows.Documents;System.Windows.Input;System.Windows.Media;System.Windows.Media.Imaging;System.Windows.Shapes;Administration
{partial class AdministrationWindow: Window
{_ dataManager=SQLDataManager.GetInstance; List lt; Shedule gt; myList=new List lt; Shedule gt; (); string [] teachers=null; int _LessonNum=1; AdministrationWindow ()
{();
_ dataManager.EventChangedGroups +=new MyEventHandler (GetInstance_EventChangedGroups);
_ dataManager.EventChangeLessons +=new MyEventHandler (GetInstance_EventChangeLessons);
_ dataManager.EventChangeInstitute +=new MyEventHandler (GetInstance_EventChangeInstitute);
_ dataManager.EventChangeSpeciality +=new MyEventHandler (GetInstance_EventChangeSpeciality); ();
} void GetInstance_EventChangeSpeciality ()
{();
} void GetInstance_EventChangeInstitute ()
{();
} void GetInstance_EventChangeLessons ()
{(ComboBoxGroup.SelectedItem!=null)
{(ComboBoxGroup.SelectedItem.ToString ());
}
} void SetGrid (string groupName)
{= _dataManager.GetShedule (groupName); view=CollectionViewSource.GetDefaultView (myList) ;. GroupDescriptions.Add (new PropertyGroupDescription ( DayName )) ;. ItemsSource=view;
} void GetInstance_EventChangedGroups ()
{();
} void ComboBoxInstitute_SelectionChanged (object sender, SelectionChangedEventArgs e)
{();
} void ComboBoxSpeciality_SelectionChanged (object sender, SelectionChangedEventArgs e)
{(); (ComboBoxSpeciality.SelectedItem!=null)
{. IsEnabled=true; .IsEnabled=true; .IsEnabled=true;
}
{
{. IsEnabled=false; .IsEnabled=fals...