Exemplo n.º 1
0
 private void PaintingObject_MouseUp(PaintingObject sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         PaintingControl1.Refresh();
         CM_Cmd.Popup(Cursor.Position);
     }
 }
Exemplo n.º 2
0
        private void EditHex()
        {
            var po = PaintingControl1.SelectedObjects.FirstOrDefault();

            if (po is object)
            {
                SM64Lib.Script.ICommand cmd = dicCommands[po.Name];
                General.OpenHexEditor(cmd);
                po.Text = cmd.ToString();
                PaintingControl1.Refresh();
            }
        }