コード例 #1
0
ファイル: Main.cs プロジェクト: Zaffin/RotatedViews
        /// <summary> The main entry point for your RotatedViews. </summary>
        ///
        /// <param name="param"> System parameter. </param>
        ///
        /// <returns> A <c>MCamReturn</c> return type representing the outcome of your NetHook application. </returns>
        public override MCamReturn Run(int param)
        {
            var view = new MainView();

            _ = new ModelessDialogTabs.ModelessDialogTabs(view);

            var windowInteropHelper = new WindowInteropHelper(view)
            {
                Owner = MastercamWindow.GetHandle().Handle
            };

            view.Show();

            return(MCamReturn.NoErrors);
        }
コード例 #2
0
        /// <summary> The main entry point for your NethookPlay. </summary>
        ///
        /// <param name="param"> System parameter. </param>
        ///
        /// <returns> A <c>MCamReturn</c> return type representing the outcome of your NetHook application. </returns>
        public override MCamReturn Run(int param)
        {
            // Create our view
            var winView = new MainView {
                TopLevel = true
            };

            // Set the dialog as modeless to Mastercam, always on top
            var handle = Control.FromHandle(MastercamWindow.GetHandle().Handle);

            _ = new ModelessDialogTabsHandler(winView);

            winView.StartPosition = FormStartPosition.CenterScreen;
            winView.Show(handle);
            //.SetupId.Text = Mastercam.Support.GroupManager.GetCurrentGroupName();

            this.GetToolData();


            return(MCamReturn.NoErrors);
        }