void ReleaseDesignerOutlets()
        {
            if (btnCancel != null)
            {
                btnCancel.Dispose();
                btnCancel = null;
            }

            if (btnSave != null)
            {
                btnSave.Dispose();
                btnSave = null;
            }

            if (btnSaveAndClose != null)
            {
                btnSaveAndClose.Dispose();
                btnSaveAndClose = null;
            }

            if (MainPane != null)
            {
                MainPane.Dispose();
                MainPane = null;
            }

            if (SourceList != null)
            {
                SourceList.Dispose();
                SourceList = null;
            }
        }
        private void hScrollBar_Scroll(object sender, ScrollEventArgs e)
        {
            RectangleF actualDrawingSpaceView = mainChartPane.GraphicsWrapper.ActualSpaceToDrawingSpace(mainChartPane.ActualDrawingSpaceArea);

            int xLocation = (int)(actualDrawingSpaceView.X - mainChartPane.DrawingSpaceDisplayLimit.X);
            int xValue    = hScrollBar.Value - xLocation;

            MainPane.HandlePan(true, new PointF(-xValue, 0));
            MainPane.Invalidate();
        }
        private void vScrollBar_Scroll(object sender, ScrollEventArgs e)
        {
            RectangleF actualDrawingSpaceView = mainChartPane.GraphicsWrapper.ActualSpaceToDrawingSpace(mainChartPane.ActualDrawingSpaceArea);

            int yLocation = (int)(actualDrawingSpaceView.Y - mainChartPane.DrawingSpaceDisplayLimit.Y);
            int yValue    = (vScrollBar.Value + yLocation) - vScrollBar.Maximum;

            MainPane.HandlePan(true, new PointF(0, yValue));
            MainPane.Invalidate();
        }
Exemplo n.º 4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //_fileSettingsViewControl = (FileSettingsViewController)this.Storyboard.InstantiateControllerWithIdentifier("FileSettingsViewController");

            _fileSettingsViewControl = AlphaDrive.Mac.FileSettings.FileSettingsViewController.CreateController();
            _diagnosisViewControl    = AlphaDrive.Mac.Diagnostics.DiagnosisViewController.CreateController();
            //NSStoryboard.FromName("DiagnosisStoryboard")

            //_diagnosisViewControl = (AlphaDrive.Mac.Diagnostics.DiagnosisViewController)this.Storyboard.InstantiateControllerWithIdentifier("DiagnosisViewController");

            MainPane.AddSubview(_fileSettingsViewControl.View);
        }
Exemplo n.º 5
0
 private void OnItemClicked(object sender)
 {
     if (sender is SourceListItem item)
     {
         MainPane.Subviews.FirstOrDefault()?.RemoveFromSuperview();
         if (item.Tag == "0")
         {
             MainPane.AddSubview(_fileSettingsViewControl.View);
         }
         else if (item.Tag == "8")
         {
             MainPane.AddSubview(_diagnosisViewControl.View);
         }
     }
 }
Exemplo n.º 6
0
        void Load()
        {
            screen = new Screen(webPart.Outer);
            user   = HtmlWindow.Current.Get <JObject>("_spPageContextInfo")?.Get <string>("userLoginName")?.Replace(".", "_")?.Replace("@", "_");
            LoadConfiguration();
            this.deepLink = new DeepLinkViewModel(Navigate);
            DeepLink deepLink = DeepLink;

            mainPane = new MainPane(this)
            {
                Element = screen.Outer
            };
            if (deepLink != null)
            {
                Navigate(new DeepLink(deepLink));
            }
        }
 private void GraphicControl_Load(object sender, EventArgs e)
 {
     MainPane.FitDrawingSpaceToScreen(false, true);
     UpdateMainChartPaneToolbar();
 }
 public void InitializePages()
 {
     MainScreen   = new MainPane(session);
     AddPane      = new AddPane(session);
     SettingsPane = new SettingsPane(session);
 }