private void saveOptionstfXelas_Offline()
        {
            try
            {
                double yungXelas;
                string stryungXelas = tfXelas.Text.Replace(',', '.');
                bool   isN          = Double.TryParse(stryungXelas, out yungXelas);

                if (isN == false)
                {
                    System.Windows.Forms.MessageBox.Show("Trebate uneti broj u polje Xelas!");
                }
                else
                {
                    if (yungXelas < 0)
                    {
                        System.Windows.Forms.MessageBox.Show("Vrednost Xelas treba biti veća od nule!");
                        OptionsInPlottingMode.ReEqualsRp = 0.05;
                    }
                    OptionsInPlottingMode.ReEqualsRp = yungXelas;
                }


                _graphicPlotting.WriteXMLFileOffline();
            }
            catch (Exception ex)
            {
                Logger.WriteNode(ex.Message.ToString() + "[OptionsForYungModuo.xaml.cs] {public void SaveOptionstfXelas_Offline()}", System.DateTime.Now);
            }
        }
Ejemplo n.º 2
0
        //private void rbtnOriginal_Checked(object sender, RoutedEventArgs e)
        //{
        //    _graphicPlotting.IsReHActive = false;
        //    _graphicPlotting.IsReLActive = false;
        //    _graphicPlotting.IsRp02Active = false;
        //    _graphicPlotting.IsRmActive = false;
        //    _graphicPlotting.IsAActive = false;
        //    _graphicPlotting.IsT1Active = false;
        //    _graphicPlotting.IsT2Active = false;
        //    _graphicPlotting.IsT3Active = false;
        //    _graphicPlotting.IsR2R4Active = false;
        //    _graphicPlotting.IsOriginalActive = true;
        //    this.Close();
        //}

        //private void rbtnOriginal_Unchecked(object sender, RoutedEventArgs e)
        //{

        //}

        private void chbOriginal_Checked(object sender, RoutedEventArgs e)
        {
            try
            {
                chbOriginal.IsChecked             = true;
                _graphicPlotting.IsReHActive      = false;
                _graphicPlotting.IsReLActive      = false;
                _graphicPlotting.IsRp02Active     = false;
                _graphicPlotting.IsRmActive       = false;
                _graphicPlotting.IsAActive        = false;
                _graphicPlotting.IsT1Active       = false;
                _graphicPlotting.IsT2Active       = false;
                _graphicPlotting.IsT3Active       = false;
                _graphicPlotting.IsR2R4Active     = false;
                _graphicPlotting.IsOriginalActive = true;
                _graphicPlotting.IsChangeRatio    = false;

                OptionsInPlottingMode.isOriginalCheckBoxChecked = true;
                _graphicPlotting.WriteXMLFileOffline();
                if (isOriginalCheckboxCheckedProgramally == false)
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                Logger.WriteNode(ex.Message.ToString() + "[WindowForChosingPoints.xaml.cs] {private void chbOriginal_Checked(object sender, RoutedEventArgs e)}", System.DateTime.Now);
            }
        }