Exemplo n.º 1
0
		/// <summary>
		/// Returns true if the operation is OK, returns false if the operation is Canceled.
		/// </summary>
		private bool EditProjectOptions()
		{
			using(ProjectOptionsDialog form = new ProjectOptionsDialog(collection.Config))
			{
				if(form.ShowDialog(this) != DialogResult.OK)
					return false;
				collection.SetPaletteOption(form.PaletteOption, palettePanel.ColorPalette, palettePanel.PaletteFileName);
			}
			return true;
		}
Exemplo n.º 2
0
 /// <summary>
 /// Returns true if the operation is OK, returns false if the operation is Canceled.
 /// </summary>
 private bool EditProjectOptions()
 {
     using (ProjectOptionsDialog form = new ProjectOptionsDialog(masterImage.Project.Config))
     {
         if (form.ShowDialog(this) != DialogResult.OK)
         {
             return(false);
         }
         masterImage.Project.SetPaletteOption(form.PaletteOption, palettePanel.ColorPalette, palettePanel.PaletteFileName);
     }
     return(true);
 }