コード例 #1
0
    public MainClass(string[] args)
    {
        DateTime startTimestamp;
        startTimestamp = DateTime.Now;
        Console.WriteLine (startTimestamp);

        Gtk.Application.Init ();

        Glade.XML gxml = new Glade.XML (null, "TimeManager.gui.glade", "topWindow", null);

        TimePeriodAdderView tpv = new TimePeriodAdderView (gxml);
        TimePeriodAdderModel tpm = new TimePeriodAdderModel (tpv);
        TimePeriodAdderController tpc = new TimePeriodAdderController (gxml, tpm, tpv);
        ScreenshotViewerView nvv = new ScreenshotViewerView (gxml);

        ScreenshotViewerModel ssViewerModel = new ScreenshotViewerModel (nvv, tpm, startTimestamp);
        tpm.setNVM (ssViewerModel);

        ScreenshotViewerController screenshotViewerController =
         new ScreenshotViewerController (gxml, ssViewerModel);

        TmEventHandler eventHandler = new TmEventHandler (gxml);

        Gtk.Application.Run ();
    }
コード例 #2
0
 public TimePeriodAdderModel(TimePeriodAdderView tpv)
 {
     this.tpv = tpv;
 }