public MainWindow(BoClass b) { InitializeComponent(); bolayer = b; //notify = new Notify(b); //newtask = new NewTask(b); //task = new SideControl.Task(b); //member = new MemberView(b); //addmbr = new AddMember(b); //profile = new ProfileView(b); set_notify_icon(); bolayer.load_notifications(); notify = new Notify(bolayer); bolayer.load_task_form_server(); bolayer.load_member_form_server(); bolayer.load_notifications(); bolayer.load_files_form_server(); create_Home_Window(); dispatcherTimer = new System.Windows.Threading.DispatcherTimer(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick); dispatcherTimer.Interval = new TimeSpan(0, 0, 1); dispatcherTimer.Start(); mediaElement_new.Play(); }
public ProfileView(BoClass bo) { InitializeComponent(); bolayer = bo; try { properson = bolayer.getpersoninfo(bolayer.mainname); namebox.Text = properson.name; desigbox.Text = properson.designation; emailbox.Text = properson.email; phonebox.Text = properson.contact_no; homebox.Text = properson.adress; roombox.Text = properson.room_no; } catch (Exception) { } profileTimer = new System.Windows.Threading.DispatcherTimer(); profileTimer.Tick += new EventHandler(profileTimer_Tick); profileTimer.Interval = new TimeSpan(0, 0, 1); profileTimer.Start(); }
public EditDescription(BoClass b, string i, string tx) { InitializeComponent(); bo = b; id = i; destextBox.Text = tx; }
public Signin() { InitializeComponent(); var appSettings = ConfigurationSettings.AppSettings; string ip = appSettings["Ip"]; string port = appSettings["Port"]; string username = appSettings["Username"]; string password = appSettings["Password"]; string databaseName = appSettings["DatabaseName"]; string ftpusername = appSettings["Ftpusername"]; string ftppassword = appSettings["Ftppassword"]; string ftpserver = appSettings["Ftpserver"]; EntityClass entitylayer = new EntityClass(ip, port, username, password, databaseName, "login", "member", "task_info", ftpusername, ftppassword, ftpserver); bolayer = new BoClass(entitylayer); //bolayer.create_schema(); bolayer.create_member_table(); bolayer.create_login_table(); bolayer.create_task_info(); MessageBox.Show(bolayer.create_task_info()); bolayer.create_notification(); bolayer.dummy_login(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick); dispatcherTimer.Interval = new TimeSpan(0, 0, 1); mediaElement.Play(); }
public Notify(BoClass b) { InitializeComponent(); bolayer = b; clearbutton.Visibility = Visibility.Hidden; notifytrd = new System.Windows.Threading.DispatcherTimer(); notifytrd.Tick += new EventHandler(notifyTimer_Tick); notifytrd.Interval = new TimeSpan(0, 0, 10); notifytrd.Start(); }
public MemberView(BoClass b) { InitializeComponent(); member_Info_window.Visibility = Visibility.Hidden; bo = b; memberlist = bo.getmemberslist_person(); memberslistbox.ItemsSource = memberlist; member_timer = new System.Windows.Threading.DispatcherTimer(); member_timer.Tick += new EventHandler(member_timer_loop); member_timer.Interval = new TimeSpan(0, 0, 1); member_timer.Start(); }
public NewTask(BoClass b) { InitializeComponent(); bolayer = b; boupoad = new BOftp(b.entitylayer); fileGrid.Visibility = Visibility.Hidden; membersgrid.Visibility = Visibility.Hidden; memberRemove.Visibility = Visibility.Hidden; fileremove.Visibility = Visibility.Hidden; List <string> memberlst = bolayer.getmemberslist(); sendtocombobox.ItemsSource = memberlst; }
public Task(BoClass b) { InitializeComponent(); alltasks = new List <SingleTask>(); bolayer = b; ftp = new BOftp(bolayer.entitylayer); if (bolayer.isadmin) { membercombo.Visibility = Visibility.Visible; membercombo.Items.Add("All Members"); List <string> lst = bolayer.getmemberslist(); for (int i = 0; i < lst.Count; i++) { membercombo.Items.Add(lst[i]); } membercombo.SelectedIndex = 0; editdatebutton.Visibility = Visibility.Visible; editdesbutton.Visibility = Visibility.Visible; } stutuscombo.Items.Add("All Tasks"); stutuscombo.Items.Add("Pending Tasks"); stutuscombo.Items.Add("Done Tasks"); stutuscombo.SelectedIndex = 0; alltasks = bolayer.get_all_task_info(); taskviewgrid.ItemsSource = alltasks; if (!bolayer.isadmin) { deleteButton.Visibility = Visibility.Hidden; } tasktimer = new System.Windows.Threading.DispatcherTimer(); tasktimer.Tick += new EventHandler(task_timer_loop); tasktimer.Interval = new TimeSpan(0, 0, 1); tasktimer.Start(); }
public AddMember(BoClass b) { InitializeComponent(); bolayer = b; }
public EditDate(BoClass b, string i) { InitializeComponent(); bo = b; id = i; }