Пример #1
0
        public ChartsForm(OuterForm outerForm)
        {
            InitializeComponent();
            this.OuterForm = outerForm;
            // histogram 1
            double[] sampleData = new double[500];
            Random   rnd        = new Random();

            int[] test = { 1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9 };

            for (int i = 0; i < sampleData.Length; i++)
            {
                sampleData[i] = rnd.NextDouble() * 100.0;
            }

            Series series = new Series();

            series.DataSource = sampleData;
            chartControlhistogram.Series.Add(series);
            var diagram = (XYDiagram)chartControlhistogram.Diagram;

            diagram.EnableAxisXZooming   = true;
            diagram.EnableAxisYZooming   = true;
            diagram.EnableAxisXScrolling = true;
            diagram.EnableAxisYScrolling = true;
            var scaleOptions = diagram.AxisX.NumericScaleOptions;

            scaleOptions.AggregateFunction = AggregateFunction.Histogram;
            scaleOptions.ScaleMode         = ScaleMode.Interval;
        }
Пример #2
0
        public DeliveryForm(OuterForm outer, bool del)
        {
            InitializeComponent();
            this.outer        = outer;
            this.deliveryForm = del;
            if (deliveryForm)
            {
                dataSource = CreateCategoryData();
            }
            else
            {
                dataSource = CreateMovingData();
                this.checkBoxAddLabourFee.Visible = false;
                this.addLabourFee                      = true;
                this.labelTitle.Text                   = "Moving Quote Calculator";
                this.labelLabourCost.Visible           = true;
                this.textEditLabourCostPerHour.Visible = true;
                this.labelLabourHours.Visible          = true;
                this.textEditNoOfHours.Visible         = true;
            }

            this.lookUpEditCategory.Properties.DataSource    = dataSource;
            this.lookUpEditCategory.Properties.DisplayMember = "Category";
            this.comboBoxProvinces.SelectedIndex             = 0;

            var weights = CreateWeightData();

            this.LookUpEditItemWeight.Properties.DataSource    = weights;
            this.LookUpEditItemWeight.Properties.DisplayMember = "Weight (lbs)";
            this.textEditServiceFee.Properties.Mask.EditMask   = "c";
            this.textEditServiceFee.Properties.Mask.MaskType   = DevExpress.XtraEditors.Mask.MaskType.Numeric;
        }
Пример #3
0
        public ParametersForm(OuterForm outerForm)
        {
            InitializeComponent();
            this.outer = outerForm;

            // load keyphrase.csv to gridview
            this.deliveryFile = Application.StartupPath + "\\data_values\\Delivery.csv";
            int[]      numlist = { 1, 2, 3 };
            List <int> numList = new List <int>(numlist);

            this.DeliveryTbl = Backend.CustomUtil.LoadCsvToDataTable(deliveryFile, numlist);
            this.gridControlDeliveryRates.DataSource = this.DeliveryTbl;
        }
Пример #4
0
 public Homeform(OuterForm outerForm)
 {
     this.outer       = outerForm;
     this.WindowState = FormWindowState.Maximized;
     InitializeComponent();
 }
Пример #5
0
 public Charts(OuterForm outer)
 {
     InitializeComponent();
     this.OuterForm = outer;
 }
Пример #6
0
 public AboutForm(OuterForm outerForm)
 {
     InitializeComponent();
     this.outer = outerForm;
 }