public BrailleBuilderMainWindow()
			: base(690, 340)
		{
			Title = "MatterControl: Braille Builder";

			BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

			double buildHeight = ActiveSliceSettings.Instance.BuildHeight;

			part3DView = new View3DBrailleBuilder(
				new Vector3(ActiveSliceSettings.Instance.BedSize, buildHeight),
				ActiveSliceSettings.Instance.BedCenter,
				ActiveSliceSettings.Instance.BedShape);

#if __ANDROID__
			this.AddChild(new SoftKeyboardContentOffset(part3DView));
#else
			this.AddChild(part3DView);
#endif

			this.AnchorAll();

			part3DView.Closed += (sender, e) =>
			{
				Close();
			};

			Width = 640;
			Height = 480;

			ShowAsSystemWindow();
			MinimumSize = new Vector2(400, 300);
		}
		public BrailleBuilderMainWindow()
			: base(690, 340)
		{
			Title = "MatterControl: Braille Builder";

			BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

			double buildHeight = ActiveSliceSettings.Instance.GetValue<double>(SettingsKey.build_height);

			part3DView = new View3DBrailleBuilder(
				new Vector3(ActiveSliceSettings.Instance.GetValue<Vector2>(SettingsKey.bed_size), buildHeight),
				ActiveSliceSettings.Instance.GetValue<Vector2>(SettingsKey.print_center),
				ActiveSliceSettings.Instance.GetValue<BedShape>(SettingsKey.bed_shape));

			this.AddChild(part3DView);

			this.AnchorAll();

			part3DView.Closed += (sender, e) =>
			{
				Close();
			};

			Width = 640;
			Height = 480;

			ShowAsSystemWindow();
			MinimumSize = new Vector2(400, 300);
		}
示例#3
0
        public BrailleBuilderMainWindow()
            : base(690, 340)
        {
            Title = "MatterControl: Braille Builder";

            BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

            double buildHeight = ActiveSliceSettings.Instance.BuildHeight;

            part3DView = new View3DBrailleBuilder(
                new Vector3(ActiveSliceSettings.Instance.BedSize, buildHeight),
                ActiveSliceSettings.Instance.BedCenter,
                ActiveSliceSettings.Instance.BedShape);

#if __ANDROID__
            this.AddChild(new SoftKeyboardContentOffset(part3DView, SoftKeyboardContentOffset.AndroidKeyboardOffset));
#else
            this.AddChild(part3DView);
#endif

            this.AnchorAll();

            part3DView.Closed += (sender, e) =>
            {
                Close();
            };

            Width  = 640;
            Height = 480;

            ShowAsSystemWindow();
            MinimumSize = new Vector2(400, 300);
        }
        public BrailleBuilderMainWindow()
            : base(690, 340)
        {
            Title = "MatterControl: Braille Builder";

            BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;

            double buildHeight = ActiveSliceSettings.Instance.GetValue <double>(SettingsKey.build_height);

            part3DView = new View3DBrailleBuilder(
                new Vector3(ActiveSliceSettings.Instance.GetValue <Vector2>(SettingsKey.bed_size), buildHeight),
                ActiveSliceSettings.Instance.GetValue <Vector2>(SettingsKey.print_center),
                ActiveSliceSettings.Instance.GetValue <BedShape>(SettingsKey.bed_shape));

            this.AddChild(part3DView);

            this.AnchorAll();

            part3DView.Closed += (sender, e) =>
            {
                Close();
            };

            Width  = 640;
            Height = 480;

            ShowAsSystemWindow();
            MinimumSize = new Vector2(400, 300);
        }