예제 #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;
         }
     }
 }
예제 #2
0
파일: Room.cs 프로젝트: ChrisPC/trizbort
 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;
         }
     }
 }
예제 #3
0
파일: Room.cs 프로젝트: Tymian/trizbort
        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;
                }
            }
        }