public JoinApplications(ref Canvas canvas) { this.canvas = canvas; mainCanvas = CanvasCreator.CreateCanvas(canvas, 620, 410, Color.FromArgb(255, 226, 240, 255), 0, 0); applicationsWithoutGroup = new Canvas() { Width = 600, Height = 300, }; loadingWindow = new LoadingWindow(ref this.canvas); backgroundWorkerLoadingWindow = new BackgroundWorker(); backgroundWorkerLoadingWindow.DoWork += loadingWindow.Load; backgroundWorkerLoadingWindow.RunWorkerAsync(); ScrollViewer sv = ScrollViewerCreator.CreateScrollViewer(mainCanvas, 560, 300, 30, 60, applicationsWithoutGroup); MyLabel labelNonAssignedApplication = new MyLabel(mainCanvas, "Aplikacje bez przypisanej grupy", 370, 38, 18, 30, 10, Color.FromArgb(255, 0, 123, 255), Color.FromArgb(200, 0, 56, 255)); labelNonAssignedApplication.SetFont("Verdana"); buttonCloseCanvas = ButtonCreator.CreateButton(mainCanvas, "Zamknij", 80, 30, 13, 510, 370, Color.FromArgb(255, 0, 123, 255), Color.FromArgb(200, 0, 56, 255), 1); buttonCloseCanvas.MouseLeftButtonDown += buttonCloseCanvas_MouseLeftButtonDown; var backgroundWorkerUpdateContent = new BackgroundWorker(); backgroundWorkerUpdateContent.DoWork += UpdateContent; backgroundWorkerUpdateContent.RunWorkerAsync(); }
public HistoryActivity(ref Canvas canvas) { this.canvas = canvas; allData_db = new AllData_db(); mainCanvas = CanvasCreator.CreateCanvas(canvas, 620, 410, Color.FromArgb(255, 226, 240, 255), 0, 0); contentCanvas = CanvasCreator.CreateCanvas(mainCanvas, 620, 360, Color.FromArgb(255, 236, 236, 236), 0, 50); new MyRectangle(mainCanvas, 620, 1, Color.FromArgb(60, 110, 110, 110), 0, 50); MyLabel l = new MyLabel(mainCanvas, "Historia aktywności", 200, 38, 18, 30, 10, Color.FromArgb(255, 0, 123, 255), Color.FromArgb(200, 0, 56, 255)); l.SetFont("Verdana"); new MyLabel(mainCanvas, "x", 30, 50, 24, 590, 10, Color.FromArgb(255, 70, 70, 70), Color.FromArgb(255, 70, 70, 70), 0); Label buttonCloseActivityHistory = ButtonCreator.CreateButton(mainCanvas, "", 30, 30, 14, 590, 20, Color.FromArgb(0, 155, 155, 155), Color.FromArgb(0, 155, 155, 155), 0); buttonCloseActivityHistory.Background = new SolidColorBrush(Color.FromArgb(180, 215, 215, 215)); buttonCloseActivityHistory.MouseEnter += buttonCloseActivityHistory_MouseEnter; buttonCloseActivityHistory.MouseLeave += buttonCloseActivityHistory_MouseLeave; buttonCloseActivityHistory.MouseLeftButtonDown += buttonCloseActivityHistory_MouseLeftButtonDown; CreateDatePickier(); CreateChart(); }
public ShowActivity(ref Canvas canvas) { this.canvas = canvas; mainCanvas = CanvasCreator.CreateCanvas(canvas, 620, 410, Color.FromArgb(255, 226, 240, 255), 0, 0); this.canvas.KeyDown += mainCanvas_KeyDown; contentCanvas = CanvasCreator.CreateCanvas(mainCanvas, 620, 320, Color.FromArgb(255, 236, 236, 236), 0, 50); new MyRectangle(mainCanvas, 620, 1, Color.FromArgb(30, 110, 110, 110), 0, 50); new MyRectangle(mainCanvas, 620, 1, Color.FromArgb(50, 110, 110, 110), 0, 370); new MyRectangle(contentCanvas, 185, 294, Color.FromArgb(0, 10, 10, 10), 420, 15, 2); new MyRectangle(contentCanvas, 390, 294, Color.FromArgb(0, 10, 10, 10), 15, 15, 2); nameActivity = new MyLabel(mainCanvas, "Nazwa aktywnosci", 300, 36, 16, 15, 15, Color.FromArgb(255, 160, 160, 160), Color.FromArgb(0, 100, 100, 100), horizontalAlignment: HorizontalAlignment.Left); nameActivity.SetFont("Verdana"); namesActivity = NameActivity_db.GetNameActivityDictionary().Values.ToArray(); CreateControlUser(); CreateChart(); CreateListOfAddedApps(); CreateTableWithInformation(); CreateActivityFooter(); index = 0; this.canvas.Focusable = true; this.canvas.Focus(); Update(); }