public MaterialForTesting(OnlineFileHeader onlineHeader)
        {
            try
            {
                InitializeComponent();

                onHeader = onlineHeader;

                //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                if (onHeader.OnlineModeInstance.Plotting.Printscreen.IsPrintScreenEmpty == true)
                {
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst;
                    this.Top  = yconst;
                }
                else
                {
                    //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst_InPrintScreenMode;
                    this.Top  = yconst_InPrintScreenMode;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteNode(ex.Message.ToString() + "[MaterialForTesting.xaml.cs] {public MaterialForTesting(OnlineFileHeader onlineHeader)}", System.DateTime.Now);
            }
        }
Beispiel #2
0
        public PositionOfTube(OnlineFileHeader onlineHeader)
        {
            try
            {
                InitializeComponent();

                string customDegree = "\xB0";
                tlbCustomPravacValjanja.Text = customDegree;

                onHeader = onlineHeader;


                //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                if (onHeader.OnlineModeInstance.Plotting.Printscreen.IsPrintScreenEmpty == true)
                {
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst;
                    this.Top  = yconst;
                }
                else
                {
                    //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst_InPrintScreenMode;
                    this.Top  = yconst_InPrintScreenMode;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteNode(ex.Message.ToString() + "[PositionOfTube.xaml.cs] {public PositionOfTube(OnlineFileHeader onlineHeader)}", System.DateTime.Now);
            }
        }
Beispiel #3
0
        public PDFSumReport(double h, double w, OnlineFileHeader onHeader, GraphicPlotting plott, ResultsInterface resInterface)
        {
            PageHeight = h;
            PageWidth  = w;

            onlineHeader     = onHeader;
            plotting         = plott;
            resultsInterface = resInterface;



            DispWidth  = PageWidth - 2 * Margin;
            DispHeight = PageHeight - 2 * Margin - HeadingHeight;

            AreaWidth  = DispWidth / 4;
            AreaHeight = DispHeight / 3;
            AreaX1     = Margin;
            AreaX2     = Margin + 3 * AreaWidth;
            AreaX3     = Margin + AreaWidth;
            AreaY1     = Margin;
            AreaY2     = Margin + AreaHeight;
            AreaY3     = Margin + 2 * AreaHeight;
            AreaY4     = Margin + 3 * AreaHeight;
            AreaY5     = Margin + 4 * AreaHeight;
        }
Beispiel #4
0
        public ConditionsOfTesting(OnlineFileHeader onlineHeader, ForceRanges fr)
        {
            try
            {
                InitializeComponent();

                var celzijusStepeni = "\xB0 C - ";//oznaka za celzijusov stepen // or "unit\xB2"


                var celzijusStepeni2 = "\xB0 C";


                tlbTemperaturaStepeni1.Text = celzijusStepeni2;

                onHeader    = onlineHeader;
                forceRanges = fr;
                loadXMLFileForceRanges2();
                //rbtnNo.IsChecked = true;
                //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                if (onHeader.OnlineModeInstance.Plotting.Printscreen.IsPrintScreenEmpty == true)
                {
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst;
                    this.Top  = yconst;
                }
                else
                {
                    //WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                    this.WindowStartupLocation = WindowStartupLocation.Manual;
                    this.Left = xconst_InPrintScreenMode;
                    this.Top  = yconst_InPrintScreenMode;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteNode(ex.Message.ToString() + "[ConditionsOfTesting.xaml.cs] {public ConditionsOfTesting(OnlineFileHeader onlineHeader)}", System.DateTime.Now);
            }
        }