Example #1
0
        public PeriodConfigDlg(BaseConfiguration baseConf)
            : base(baseConf)
        {
            InitializeComponent();
            Text                = MultiLang.PeriodicComparison + " " + MultiLang.Filter;
            Btn_Close.Text      = MultiLang.Close;
            groupControl1.Text  = MultiLang.OperationPeriod;
            groupControl2.Text  = MultiLang.TypeOfMeasurement;
            groupControl3.Text  = "Y " + MultiLang.Scale;
            Gr_Machine.Text     = MultiLang.PlantMap;
            Gr_Measurement.Text = MultiLang.Measurement;
            DateEdit_Start.Properties.DisplayFormat.FormatString = "yyyy " + MultiLang.Years;

            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            MimicNodeTree.ExpandAll();
            MimicNodeTree.CollapseAll();
            DateEdit_Start.DateTime = BaseConfig.StartDate;
        }
Example #2
0
        public MultiPointConfigDlg(BaseConfiguration baseConf)
            : base(baseConf)
        {
            InitializeComponent();
            Text                = MultiLang.TrendOfMeasurements + " " + MultiLang.Filter;
            Btn_Close.Text      = MultiLang.Close;
            groupControl1.Text  = MultiLang.OperationPeriod;
            groupControl2.Text  = MultiLang.TypeOfMeasurement;
            groupControl3.Text  = MultiLang.Unit;
            groupControl4.Text  = "Y " + MultiLang.Scale;
            Gr_Machine.Text     = MultiLang.PlantMap;
            Gr_Measurement.Text = MultiLang.Measurement;
            Radio_Day.Text      = MultiLang.Day;
            Radio_Week.Text     = MultiLang.Week;
            Radio_Month.Text    = MultiLang.Month;

            MimicNodeTree.DataSource = baseConf.MimicNodes;
            MimicNodeTree.BestFitColumns();
            MimicNodeTree.ExpandAll();
            MimicNodeTree.CollapseAll();
            DateEdit_Start.DateTime = BaseConfig.StartDate;
            DateEdit_End.DateTime   = BaseConfig.EndDate;

            cbe_alarmScale.DataBindings.Add(new Binding("EditValue", MultiPointConf, "AlarmReferenceName")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            radioGroupScale.DataBindings.Add(new Binding("SelectedIndex", MultiPointConf, "ScaleTypeIdx")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
            te_Scale.DataBindings.Add(new Binding("EditValue", MultiPointConf, "MaxScale")
            {
                DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged
            });
        }