Exemplo n.º 1
0
        /// <summary>
        /// windowのホームタブが選択されたときのイベントハンドラです.
        /// </summary>
        private void windowHomeTab_Selected(object sender, RibbonTabEventArgs e)
        {
            ViewerMouseDownAction       = null;
            emulsionViewerCanvas.Cursor = Cursors.Arrow;

            StageContent = new TrackStageControl(window);
        }
Exemplo n.º 2
0
        private void windowrefollowTab_Selected(object sender, RibbonTabEventArgs e)
        {
            StageContent = new CoordControl(window);

            // エマルションビュワー上でマウスのクリックイベントに,グリッドマークを
            // 決定する処理を行うイベントを追加
            emulsionViewerCanvas.Cursor = Cursors.Pen;
            ViewerMouseDownAction       = delegate(object s, MouseButtonEventArgs e2) {
                // レンズタイプが10倍でなければメッセージを表示して中止

                /*if (parameterManager.Magnification != ParameterManager.LensMagnificationOfGridMarkSearch) {
                 *  string message = Properties.Strings.LensTypeException01
                 + string.Format(Properties.Strings.CorrectLens,
                 +          ParameterManager.LensMagnificationOfGridMarkSearch.ToString());
                 +  MessageBox.Show(message, Properties.Strings.Error);
                 +  return;
                 + }
                 */
                // クリックされた座標にバツ印を表示して,グリッドマークを定義するダイ
                // アログボックスを表示
                double clickedX = e2.GetPosition(emulsionViewerCanvas).X;
                double clickedY = e2.GetPosition(emulsionViewerCanvas).Y;
                ShowReFollowTrackDifinitionUi(clickedX, clickedY);
            };
        }
Exemplo n.º 3
0
        void toolbarsWorkspace_AfterRibbonTabSelected(object sender, RibbonTabEventArgs e)
        {
            Application.UseWaitCursor = true;            

            // Loop through the RootWorkItem's ILaytonWorkItems to find the WorkItem of this Tab
            ICollection<LaytonWorkItem> workItems = WorkItem.RootWorkItem.WorkItems.FindByType<LaytonWorkItem>();
            foreach (LaytonWorkItem workItem in workItems)
            {
                if (workItem.ToolbarsController.RibbonTab != null &&
                    workItem.ToolbarsController.RibbonTab == e.Tab &&
                    WorkItem.RootWorkItem.Status != WorkItemStatus.Terminated &&
                    workItem.Status != WorkItemStatus.Terminated)
                {
                    // found the LaytonWorkItem for this Tab...now Activate it
                    workItem.Controller.ActivateWorkItem();
                }
            }

            Application.UseWaitCursor = false;
        }
Exemplo n.º 4
0
        /// <summary>
        /// windowのタブが選択されたときのイベントハンドラです.
        /// </summary>
        private void windowRibbonTab_Selected(object sender, RibbonTabEventArgs e)
        {
            switch (e.SelectedTabName)
            {
            case "HomeTab":
                windowHomeTab_Selected(sender, e);
                break;

            case "coordTab":
                windowCoordTab_Selected(sender, e);
                break;

            case "overallscanTab":
                break;

            case "imageEnhanceTab":
                windowImageEnhanceTab_Selected(sender, e);
                break;

            case "retrackfollowTab":
                windowrefollowTab_Selected(sender, e);
                break;
            }
        }
Exemplo n.º 5
0
 private void windowImageEnhanceTab_Selected(object sender, RibbonTabEventArgs e)
 {
 }