private void CreateCheckBoxes() { MyRectangle r = new MyRectangle(filterCanvas, 20, 20, Color.FromArgb(0, 244, 244, 255), 200, 15, 1); r.Opacity(0.5); ifActivity = new MyLabel(filterCanvas, "x", 25, 40, 20, 197, 3, Color.FromArgb(255, 255, 255, 255), Color.FromArgb(255, 70, 70, 70)); ifActivity.Visibility = System.Windows.Visibility.Visible; buttonChooseActivity = ButtonCreator.CreateButton(filterCanvas, " Aktywności", 120, 34, 16, 196, 8, Color.FromArgb(255, 255, 255, 255), Color.FromArgb(205, 205, 205, 205)); buttonChooseActivity.MouseEnter += buttonChooseActivity_MouseEnter; buttonChooseActivity.MouseLeave += buttonChooseActivity_MouseLeave; buttonChooseActivity.MouseLeftButtonDown += buttonChooseActivity_MouseLeftButtonDown; MyRectangle r2 = new MyRectangle(filterCanvas, 20, 20, Color.FromArgb(0, 244, 244, 255), 200, 50, 1); r2.Opacity(0.5); ifTitleApplication = new MyLabel(filterCanvas, "x", 25, 40, 20, 197, 38, Color.FromArgb(255, 255, 255, 255), Color.FromArgb(255, 70, 70, 70)); ifTitleApplication.Visibility = System.Windows.Visibility.Hidden; buttonChooseTitleApplication = ButtonCreator.CreateButton(filterCanvas, " Tytuły aplikacji", 150, 34, 16, 196, 43, Color.FromArgb(255, 205, 205, 205), Color.FromArgb(205, 205, 205, 205)); buttonChooseTitleApplication.MouseEnter += buttonChooseTitleApplication_MouseEnter; buttonChooseTitleApplication.MouseLeave += buttonChooseTitleApplication_MouseLeave; buttonChooseTitleApplication.MouseLeftButtonDown += buttonChooseTitleApplication_MouseLeftButtonDown; }
private void CreateCheckBox() { MyRectangle r = new MyRectangle(addConfigurationCanvas, 30, 30, Color.FromArgb(0, 244, 244, 255), 400, 70, 1); r.Opacity(0.5); ifActivity = new MyLabel(addConfigurationCanvas, "x", 30, 50, 24, 400, 60, Color.FromArgb(255, 0, 155, 0), Color.FromArgb(255, 70, 70, 70), 0); ifActivity.Visibility = System.Windows.Visibility.Hidden; buttonChangeActivity = ButtonCreator.CreateButton(addConfigurationCanvas, " Aktywna", 120, 30, 14, 400, 70, Color.FromArgb(255, 155, 155, 155), Color.FromArgb(255, 155, 155, 155)); buttonChangeActivity.MouseEnter += buttonChangeActivity_MouseEnter; buttonChangeActivity.MouseLeave += buttonChangeActivity_MouseLeave; buttonChangeActivity.MouseLeftButtonDown += buttonChangeActivity_MouseLeftButtonDown; MyRectangle r2 = new MyRectangle(addConfigurationCanvas, 30, 30, Color.FromArgb(0, 244, 244, 255), 400, 130, 1); r2.Opacity(0.5); treatAsOne = new MyLabel(addConfigurationCanvas, "x", 30, 50, 24, 400, 120, Color.FromArgb(255, 0, 155, 0), Color.FromArgb(255, 70, 70, 70), 0); treatAsOne.Visibility = System.Windows.Visibility.Hidden; buttonTreatAsOne = ButtonCreator.CreateButton(addConfigurationCanvas, " Jako applikacja", 160, 30, 14, 400, 130, Color.FromArgb(255, 155, 155, 155), Color.FromArgb(255, 155, 155, 155)); buttonTreatAsOne.MouseEnter += buttonChangeTreatAsOne_MouseEnter; buttonTreatAsOne.MouseLeave += buttonChangeTreatAsOne_MouseLeave; buttonTreatAsOne.MouseLeftButtonDown += buttonChangeTreatAsOne_MouseLeftButtonDown; }