Beispiel #1
0
 public EmployeesWindow(User user, Conexiune connection)
 {
     InitializeComponent();
     this.connection = connection;
     this.user = user;
     unknown = DowMediaApplication.Properties.Resources.unknown as Image;
 }
Beispiel #2
0
 public ProjectSelect(Conexiune conexiune)
 {
     InitializeComponent();
     selectButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     listaProiecte = conexiune.AllProjects(false);
     listBox.DataSource = listaProiecte;
     listBox.DisplayMember = "Name";
 }
Beispiel #3
0
 public WorkWindow(User user, LoginWindow logWin, Conexiune conn)
 {
     InitializeComponent();
     SetColors();
     this.connection = conn;
     this.loginWindow = logWin;
     this.user = user;
     toolTip = new ToolTip();
     toolTip.IsBalloon = true;
     manageLabel.Visible = (user.Type == (int)UserType.Admin);
     myActButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     teamActButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     projectsButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     taskButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     InitializePanelNo1();//activitatile mele
     InitializePanelNo2();//activitatile echipei
     InitializePanelNo3();//proiecte
     InitializePanelNo4();//task-uri
     InitializePanelNo5();//profil
     ChangeColorShowPanel(1);//selectez primul panel cand se deschide forma
     /*-----preluare setari-----*/
     int inactiv = 300;//default
     bool show = true;//default
     if (File.Exists("settings.ini"))
     {
         StreamReader fin = new StreamReader("settings.ini");
         string line;
         while ((line = fin.ReadLine()) != null)
         {
             int poz = line.IndexOf('=');
             if (line.Contains(settings[0]))
                 inactiv = Convert.ToInt32(line.Substring(poz + 1));
             else if (line.Contains(settings[1]))
                 show = Convert.ToBoolean(line.Substring(poz + 1));
         }
         fin.Close();
     }
     empWindow = new EmployeesWindow(user, connection);
     empWindow.Show();
     showEmpWindowCheckBox.Checked = show;
     inactivTimeValue = inactiv;
     this.BringToFront();
     this.Focus();
 }
Beispiel #4
0
        public ManageWindow(Conexiune connection, NotifyIcon notifyIcon)
        {
            InitializeComponent();
            this.connection = connection;
            this.notifyIcon = notifyIcon;
            ToolTip toolTip = new ToolTip();
            toolTip.IsBalloon = true;
            toolTip.SetToolTip(statusComboBox, "Permite modificarea statusului proiectului.");
            toolTip.SetToolTip(changeProjectNameTextBox, "Permite modificarea numelui proiectului.");
            contTeamComboBox.DataSource = connection.AllTeams();
            contTeamComboBox.DisplayMember = "Name";
            adminRadioButton.Checked = true;
            contNameTextBox.Focus();

            contAddButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            contDeleteButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            addProjectButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            modifyButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            deleteProjectButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
        }
Beispiel #5
0
        public TaskWindow(int userId, NotifyIcon notifyIcon, Conexiune connection)
        {
            InitializeComponent();
            this.userId = userId;
            this.notifyIcon = notifyIcon;
            this.connection = connection;

            createdTaskBox = new TaskBox(TaskType.Created);
            createdTaskBox.Location = new Point(5, 5);
            createdTaskBox.Parent = tabPage0;
            tabPage0.Controls.Add(createdTaskBox.ShowControl);

            receivedTaskBox = new TaskBox(TaskType.Received);
            receivedTaskBox.Location = new Point(5, 5);
            receivedTaskBox.Parent = tabPage1;
            tabPage1.Controls.Add(receivedTaskBox.ShowControl);

            Init(TaskType.Created);
            LoadTask(TaskType.Created);
        }
Beispiel #6
0
 public LoginWindow()
 {
     InitializeComponent();
     this.emailTextBox.Text = "*****@*****.**";
     this.parolaTextBox.Text = "ion";
     conexiune = new Conexiune();
     ColorConverter conv = new ColorConverter();
     //CornerRounder.Round(emailTextBox);
     //CornerRounder.Round(parolaTextBox);
     //CornerRounder.Round(logareButton);
     //CornerRounder.Round(iesireButton);
     logareButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     iesireButton.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
     img = new Image[8];
     img[0] = DowMediaApplication.Properties.Resources.Rotate0 as Image;
     img[1] = DowMediaApplication.Properties.Resources.Rotate1 as Image;
     img[2] = DowMediaApplication.Properties.Resources.Rotate2 as Image;
     img[3] = DowMediaApplication.Properties.Resources.Rotate3 as Image;
     img[4] = DowMediaApplication.Properties.Resources.Rotate4 as Image;
     img[5] = DowMediaApplication.Properties.Resources.Rotate5 as Image;
     img[6] = DowMediaApplication.Properties.Resources.Rotate6 as Image;
     img[7] = DowMediaApplication.Properties.Resources.Rotate7 as Image;
 }