Exemplo n.º 1
0
 public override void ShowDialog()
 {
     using (var dialog = new RoomPropertiesDialog())
     {
         dialog.RoomName        = Name;
         dialog.Description     = PrimaryDescription;
         dialog.IsDark          = IsDark;
         dialog.Objects         = Objects;
         dialog.ObjectsPosition = ObjectsPosition;
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             Name = dialog.RoomName;
             if (PrimaryDescription != dialog.Description)
             {
                 ClearDescriptions();
                 AddDescription(dialog.Description);
             }
             IsDark          = dialog.IsDark;
             Objects         = dialog.Objects;
             ObjectsPosition = dialog.ObjectsPosition;
         }
     }
 }
Exemplo n.º 2
0
 public override void ShowDialog()
 {
     using (var dialog = new RoomPropertiesDialog())
     {
         dialog.RoomName = Name;
         dialog.Description = PrimaryDescription;
         dialog.IsDark = IsDark;
         dialog.Objects = Objects;
         dialog.ObjectsPosition = ObjectsPosition;
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             Name = dialog.RoomName;
             if (PrimaryDescription != dialog.Description)
             {
                 ClearDescriptions();
                 AddDescription(dialog.Description);
             }
             IsDark = dialog.IsDark;
             Objects = dialog.Objects;
             ObjectsPosition = dialog.ObjectsPosition;
         }
     }
 }
Exemplo n.º 3
0
        public override void ShowDialog()
        {
            using (var dialog = new RoomPropertiesDialog())
            {
                dialog.RoomName = Name;
                dialog.Description = PrimaryDescription;
                dialog.IsDark = IsDark;
                dialog.Objects = Objects;
                dialog.ObjectsPosition = ObjectsPosition;
                // Added for Room specific colors
                dialog.RoomFillColor = RoomFill;
                // Added for Room specific colors
                dialog.SecondFillColor = SecondFill;
                // Added for Room specific colors
                dialog.SecondFillLocation = SecondFillLocation;
                // Added for Room specific colors
                dialog.RoomBorderColor = RoomBorder;
                // Added for Room specific colors
                dialog.RoomTextColor = RoomLargeText;
                // Added for Room specific colors
                dialog.ObjectTextColor = RoomSmallText;

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    Name = dialog.RoomName;
                    if (PrimaryDescription != dialog.Description)
                    {
                        ClearDescriptions();
                        AddDescription(dialog.Description);
                    }
                    IsDark = dialog.IsDark;
                    Objects = dialog.Objects;
                    ObjectsPosition = dialog.ObjectsPosition;
                    // Added for Room specific colors
                    RoomFill = dialog.RoomFillColor;
                    // Added for Room specific colors
                    SecondFill = dialog.SecondFillColor;
                    // Added for Room specific colors
                    SecondFillLocation = dialog.SecondFillLocation;
                    // Added for Room specific colors
                    RoomBorder = dialog.RoomBorderColor;
                    // Added for Room specific colors
                    RoomLargeText = dialog.RoomTextColor;
                    // Added for Room specific colors
                    RoomSmallText = dialog.ObjectTextColor;
                }
            }
        }