コード例 #1
0
        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
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: afumfer/KNote
    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);
    }
コード例 #3
0
ファイル: NotifyForm.cs プロジェクト: afumfer/KNote
 public NotifyForm(KNoteManagmentComponent com)
 {
     InitializeComponent();
     _com = com;
 }
コード例 #4
0
 public IViewBase AboutView(KNoteManagmentComponent component)
 {
     return(new KNoteAboutForm(component));
 }
コード例 #5
0
 public IViewBase NotifyView(KNoteManagmentComponent component)
 {
     return(new NotifyForm(component));
 }
コード例 #6
0
 public IViewConfigurableExt View(KNoteManagmentComponent component)
 {
     return(new KNoteManagmentForm(component));
 }
コード例 #7
0
 public KNoteAboutForm(KNoteManagmentComponent com)
 {
     InitializeComponent();
     _com = com;
 }