示例#1
0
        //void applyButton_MouseButtonClick(Widget source, EventArgs e)
        //{
        //    int numImagesToUpdate;
        //    if (int.TryParse(numToUpdateEdit.Caption, out numImagesToUpdate))
        //    {
        //        LiveThumbnailUpdater.NumImagesToUpdate = numImagesToUpdate;
        //    }
        //    double secondsToSleep;
        //    if (double.TryParse(secondsToSleepEdit.Caption, out secondsToSleep))
        //    {
        //        LiveThumbnailUpdater.SecondsToSleep = secondsToSleep;
        //    }
        //}

        void addButton_MouseButtonClick(Widget source, EventArgs e)
        {
            SceneViewWindow activeWindow = sceneViewController.ActiveWindow;
            LayerState      layers       = new LayerState();

            layers.captureState();

            ButtonGridItem item = buttonGrid.addItem("Main", count++.ToString());

            buttonGrid.resizeAndLayout(window.ClientWidget.Width);
            liveThumbHost.itemAdded(item, layers, activeWindow.Translation, activeWindow.LookAt);
        }
 protected override void layoutUpdated()
 {
     sceneFileGrid.resizeAndLayout(sceneFileGrid.Width);
 }
 public void resizeAndLayout()
 {
     documentGrid.resizeAndLayout(documentScroller.ViewCoord.width);
 }
 void window_WindowChangedCoord(Widget source, EventArgs e)
 {
     imageGrid.resizeAndLayout(gridScroll.ViewCoord.width);
 }
 public override void topLevelResized()
 {
     base.topLevelResized();
     presetListView.resizeAndLayout();
 }