public KNoteManagmentForm(KNoteManagmentComponent com) { InitializeComponent(); _com = com; _com.Store.ComponentNotification += Store_ComponentNotification; // TODO: options ... for next version menuReports.Visible = false; menuToolsS1.Visible = false; toolPrintReports.Visible = false; toolStripSeparator2.Visible = false; #if DEBUG menuKNoteLab.Visible = true; #endif }
static void Main() { // Old .net versions //Application.SetHighDpiMode(HighDpiMode.SystemAware); //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); // new in .net 6 ApplicationConfiguration.Initialize(); ApplicationContext applicationContext = new ApplicationContext(); Store appStore = new Store(new FactoryViewsWinForms()); #region Splash SplashForm splashForm = new SplashForm(appStore); splashForm.Show(); Application.DoEvents(); #endregion LoadAppStore(appStore); #region Demo & lab // applicationContext.MainForm = new LabForm(appStore); #endregion #region Normal start var knoteManagment = new KNoteManagmentComponent(appStore); knoteManagment.Run(); applicationContext.MainForm = (Form)knoteManagment.View; #endregion splashForm.Close(); Application.Run(applicationContext); }
public NotifyForm(KNoteManagmentComponent com) { InitializeComponent(); _com = com; }
public IViewBase AboutView(KNoteManagmentComponent component) { return(new KNoteAboutForm(component)); }
public IViewBase NotifyView(KNoteManagmentComponent component) { return(new NotifyForm(component)); }
public IViewConfigurableExt View(KNoteManagmentComponent component) { return(new KNoteManagmentForm(component)); }
public KNoteAboutForm(KNoteManagmentComponent com) { InitializeComponent(); _com = com; }