Exemplo n.º 1
0
        /*
         * private void LineLength_MouseWheel(object sender, MouseEventArgs e)
         * {
         *  lineLength.Text =
         *      Funcs.Clamp((Funcs.ToInt(lineLength.Text) + 4 * Funcs.Force(Funcs.ToInt(e.Delta))),
         *                  1, Config.MaxLineSize).ToString();
         * }
         */

        private void LoadParameters()
        {
            LivePreview.SuspendUpdates();

            Target.SaveFlags();

            tb_name.Text = this.Target.Name;
            tb_name.Tag  = this.Target.Name;

            tb_key.Text = this.Target.Key;
            tb_key.Tag  = this.Target.Key;

            LoadColor();
            lab_color.Tag = Target.LineColor;

            radioHorizontal.Checked = !Target.IsVertical;
            radioVertical.Checked   = Target.IsVertical;

            SetLineRanges();
            lineLength.Text = Target.Length.ToString();
            lineLength.Tag  = Target.Length;

            lineThickness.Value = Target.Thickness;
            lineThickness.Tag   = Target.Thickness;

            tbDashPattern.Text = Target.DashPattern;
            tbDashPattern.Tag  = Target.DashPattern;

            ShowSizeMode();

            LivePreview.ResumeUpdates();
        }
Exemplo n.º 2
0
        private void Lab_size_Click(object sender, EventArgs e)
        {
            bool tempLinkStat = cb_link.Checked;

            LivePreview.SuspendUpdates();

            // Disable Link Temporarily
            cb_link.Checked = false;

            if (!Target.IsVertical)
            {
                tb_width.Text  = imageFrame.BackgroundImage.Width.ToString();
                tb_height.Text = imageFrame.BackgroundImage.Height.ToString();
            }
            else
            {
                tb_width.Text  = imageFrame.BackgroundImage.Height.ToString();
                tb_height.Text = imageFrame.BackgroundImage.Width.ToString();
            }

            cb_link.Checked = tempLinkStat;

            LivePreview.ResumeUpdates();
            LivePreview.Update();
        }
Exemplo n.º 3
0
        private void LoadParameters()
        {
            LivePreview.SuspendUpdates();

            Target.SaveFlags();

            tb_name.Text = Target.Name;
            tb_name.Tag  = Target.Name;

            tb_key.Text = Target.Key;
            tb_key.Tag  = Target.Key;

            LoadColor();
            lab_color.Tag = Target.TextColor;

            fontSize.Value = Target.FontSize;
            fontSize.Tag   = Target.FontSize;

            LoadFontList();
            fontList.Tag = Target.FontID;

            ShowFontStyle();
            pan_FontStyle.Tag = Target.FontStyle;

            ShowRotation();
            LoadTextTable();

            LivePreview.ResumeUpdates();
        }
Exemplo n.º 4
0
        private void LoadParameters()
        {
            LivePreview.SuspendUpdates();

            Target.SaveFlags();

            tb_name.Text = Target.Name;
            tb_name.Tag  = Target.Name;

            tb_key.Text = Target.Key;
            tb_key.Tag  = Target.Key;

            SetSizeRanges();

            tb_width.Text = Target.Width.ToString();
            tb_width.Tag  = Target.Width;

            tb_height.Text = Target.Height.ToString();
            tb_height.Tag  = Target.Height;

            cb_link.Checked = Target.LinkedSize;

            resourceComboList.Tag           = Target.ResourceID;
            resourceComboList.DataSource    = Resources.resourceList;
            resourceComboList.SelectedIndex = Resources.resourceList.IndexOf(Target.ResourceID);

            drawingModeCombo.DataSource    = Enum.GetNames(typeof(ImageObject.DrawingTypes));
            drawingModeCombo.SelectedIndex = (int)Target.drawingType;
            drawingModeCombo.Tag           = Target.drawingType;

            //EmployeeType empType = (EmployeeType)Enum.Parse(typeof(EmployeeType), ddl.SelectedValue);

            ShowSizeMode();
            ShowRotation();

            editorReady = true;
            LivePreview.ResumeUpdates();
        }