コード例 #1
0
        public GeneratorWindow()
        {
            this.InitializeComponent();
            this.ResizeMode = ResizeMode.NoResize;

            this.m_renderHandler = new NewDataSetRenderHandler(this.cnv_dataSet);

            this.cbx_classType.ItemsSource   = this.m_renderHandler.Colors;
            this.cbx_classType.SelectedIndex = 1;

            this.btn_clear.Click += Btn_clear_Click;
            this.btn_save.Click  += Btn_save_Click;

            this.cnv_dataSet.MouseDown  += Cnv_dataSet_MouseDown;
            this.cnv_dataSet.MouseMove  += Cnv_dataSet_MouseMove;
            this.cnv_dataSet.MouseLeave += Cnv_dataSet_MouseLeave;

            this.UpdateStatus(double.NaN, double.NaN);
        }
コード例 #2
0
        public GeneratorForm()
        {
            this.InitializeComponent();

            this.DoubleBuffered  = true;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;

            this.m_renderHandler = new NewDataSetRenderHandler(this.pbx_dataSet);

            this.cbx_classType.Items.AddRange(this.m_renderHandler.Colors);
            this.cbx_classType.SelectedIndex         = 1;
            this.cbx_classType.SelectedIndexChanged += this.Cbx_classType_SelectedIndexChanged;
            this.m_selectedClass = this.cbx_classType.Items[this.cbx_classType.SelectedIndex] as string;

            this.btn_clear.Click       += Btn_clear_Click;
            this.btn_saveDataSet.Click += Btn_saveDataSet_Click;

            this.pbx_dataSet.MouseDown  += Pbx_dataSet_MouseDown;
            this.pbx_dataSet.MouseMove  += Pbx_dataSet_MouseMove;
            this.pbx_dataSet.MouseLeave += Pbx_dataSet_MouseLeave;

            this.UpdateStatus(double.NaN, double.NaN);
        }