Пример #1
0
    public SketchWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build ();

        m_app = new App();
        m_app.Refresh = this.Refresh;
        m_app.IsBusy = sketchcontrol1.IsBusy;

        sketchcontrol1.App = m_app;

        var advisor = new FrameAdvisor(m_app);
        advisor.Do(FrameAdvisor.Event.Loading);
    }
Пример #2
0
 protected void OnGotoFirstActionActivated(object sender, EventArgs e)
 {
     var advisor = new FrameAdvisor(m_app);
     advisor.Do(FrameAdvisor.Event.GotoFirstFrame);
 }
Пример #3
0
 protected void OnGoBackActionActivated(object sender, EventArgs e)
 {
     var advisor = new FrameAdvisor(m_app);
     advisor.Do(FrameAdvisor.Event.GotoPreviousFrame);
 }
Пример #4
0
 protected void OnAddActionActivated(object sender, EventArgs e)
 {
     var advisor = new FrameAdvisor(m_app);
     advisor.Do(FrameAdvisor.Event.AddNewFrame);
 }
Пример #5
0
 protected void OnRemoveActionActivated(object sender, EventArgs e)
 {
     var advisor = new FrameAdvisor(m_app);
     advisor.Do(FrameAdvisor.Event.DeleteSelectedFrame);
 }