Ejemplo n.º 1
0
 public override void OnSelected(TextBoxResEditor textBoxDefault, TextBoxResEditor textBoxLocal, PictureBoxResEditor pictureBoxDefault, PictureBoxResEditor pictureBoxLocal, CultureInfo c)
 {
     textBoxDefault.SetResourceOwner(this, null);
     textBoxDefault.ReadOnly = (c != null);
     textBoxDefault.Visible  = true;
     if (c == null)
     {
         textBoxLocal.SetResourceOwner(null, c);
     }
     else
     {
         textBoxLocal.SetResourceOwner(this, c);
     }
     textBoxLocal.ReadOnly     = (c == null);
     textBoxLocal.Visible      = true;
     pictureBoxDefault.Visible = false;
     pictureBoxLocal.Visible   = false;
 }
        public override void OnSelected(TextBoxResEditor textBoxDefault, TextBoxResEditor textBoxLocal, PictureBoxResEditor pictureBoxDefault, PictureBoxResEditor pictureBoxLocal, CultureInfo c)
        {
            pictureBoxDefault.SetResourceOwner(this, null);
            pictureBoxDefault.Visible = true;
            pictureBoxDefault.SetReadOnly(c != null);
            if (c == null)
            {
                //for default, disable local
                pictureBoxLocal.SetResourceOwner(null, null);
            }
            else
            {
                //for local
                pictureBoxLocal.SetResourceOwner(this, c);
            }
            pictureBoxLocal.Visible = true;
            pictureBoxLocal.SetReadOnly(c == null);

            textBoxDefault.Visible = false;
            textBoxLocal.Visible   = false;
        }
 public abstract void OnSelected(TextBoxResEditor textBoxDefault, TextBoxResEditor textBoxLocal, PictureBoxResEditor pictureBoxDefault, PictureBoxResEditor pictureBoxLocal, CultureInfo c);
 public void OnSelected(TextBoxResEditor textBoxDefault, TextBoxResEditor textBoxLocal, PictureBoxResEditor pictureBoxDefault, PictureBoxResEditor pictureBoxLocal, CultureInfo c)
 {
     Pointer.OnSelected(textBoxDefault, textBoxLocal, pictureBoxDefault, pictureBoxLocal, c);
 }