public LoginForm() { InitializeComponent(); userController = new UserController(); pathHelper = new CustomPathHelper(); //MessageBox.Show("" + userController.getAppConfigs().APP_COLOR); //theming linePanel.BackColor = System.Drawing.ColorTranslator.FromHtml(userController.getAppConfigs().APP_COLOR); appNameLbl.Text = userController.getAppConfigs().APP_NAME; //logo Image image = Image.FromFile(pathHelper.get_app_images_path() + "logo.png"); this.loginPictureBox.Image = image; string partialEncRes = GKI.DecryptString("/+FZz97af/uxtjeRHDTG/RXj/6jp3Z3ZmIB4rspiSFfZ+hZkRDnlj/iB0U8O3mne", "duka.plus.gmtech"); if (GKI.getRemainDays() < 15 && GKI.getRemainDays() > 0) { expiryReminderLbl.Text = GKI.getRemainDays() + " days remained!"; expiryReminderLbl.Visible = true; } else if (GKI.getRemainDays() == 0) { expiryReminderLbl.Text = "TODAY IS THE END-DATE!!"; expiryReminderLbl.Visible = true; } else if (GKI.getRemainDays() < -15) { expiryReminderLbl.Text = "EXPIRED SINCE " + GKI.getEndDate(); expiryReminderLbl.Visible = true; //hide login btn loginBtn.Visible = false; } else if (GKI.getRemainDays() < 0 && GKI.getRemainDays() >= -15) { expiryReminderLbl.Text = "EXPIRED SINCE " + GKI.getEndDate() + " - CLOSE ANYTIME"; expiryReminderLbl.Visible = true; } else { expiryReminderLbl.Text = GKI.getRemainDays() + " days remained!"; expiryReminderLbl.Visible = false; } }
public ProductFinderControl() { InitializeComponent(); productController = new ProductController(); SoundHelper = new CustomSoundHelper(); PathHelper = new CustomPathHelper(); currentListOfProducts = new List <MDB_ProductModel>(); storeItemsDataGridView.DoubleBuffered(true); currentUser = productController.getCurrentUser(); currentUserLbl.Text = currentUser.full_name; //logo Image image = Image.FromFile(PathHelper.get_app_images_path() + "logo.png"); this.goToDashBoardBtn.BackgroundImage = image; }