예제 #1
0
 public FormSelectSession(FormContainer p, GASettings s, ILog l)
 {
     InitializeComponent();
     parent   = p;
     settings = s;
     log      = l;
 }
예제 #2
0
        public FormROITable(GASettings s, ILog l)
        {
            InitializeComponent();

            settings = s;
            log      = l;
        }
예제 #3
0
        public FormROIHist(GASettings s, ILog l, Session sess)
        {
            InitializeComponent();

            settings = s;
            log      = l;
            session  = sess;
        }
예제 #4
0
        public FormMain(FormContainer p, GASettings s, ILog l)
        {
            InitializeComponent();

            MdiParent = parent = p;
            settings  = s;
            log       = l;
        }
예제 #5
0
        public FormROI(FormContainer p, GASettings s, ILog l)
        {
            InitializeComponent();

            DoubleBuffered = true;
            MdiParent      = parent = p;
            settings       = s;
            log            = l;
        }
예제 #6
0
        public FormSessionInfo(GASettings s, ILog l, Session sess, string title)
        {
            InitializeComponent();

            settings = s;
            log      = l;
            session  = sess;
            Text     = "Gamma Analyzer - " + title;
        }
예제 #7
0
        public void LoadSettings()
        {
            try
            {
                if (!File.Exists(GAEnvironment.SettingsFile))
                {
                    SaveSettings();
                }

                // Deserialize settings from file
                using (StreamReader sr = new StreamReader(GAEnvironment.SettingsFile))
                {
                    XmlSerializer x = new XmlSerializer(settings.GetType());
                    settings = x.Deserialize(sr) as GASettings;
                }
            }
            catch (Exception ex)
            {
                log.Error(ex.Message, ex);
            }
        }