public SoundItemTree(KnackForm knackForm,PropertyGrid propertyGrid) : base() 
		{ 
			this.knackForm = knackForm;
			this.propertyGrid = propertyGrid;
			this.BackColor = System.Drawing.SystemColors.AppWorkspace;
			this.Size = new System.Drawing.Size(64*10, 64*10);
			this.AutoScroll = true;
			this.AutoScrollMargin = new Size(21,21);

			this.SetStyle(ControlStyles.AllPaintingInWmPaint |
			              ControlStyles.UserPaint |
			              ControlStyles.DoubleBuffer,true);
			onePixelBitmap.SetPixel(0,0,Color.Black);
		}
Example #2
0
		public void Run(string[] args)
		{
			Console.WriteLine();
			Console.WriteLine("Knack - v." + Assembly.GetExecutingAssembly().GetName().Version.ToString());
			Console.WriteLine("------------------------------");
			Console.WriteLine();
			
			KnackForm mainForm = new KnackForm();
			
			Settings.Instance.ToString(); // Temporary solution to load settings immediately
	
			if (args.Length == 1) {
				Console.WriteLine("Loading "+args[0]);
				mainForm.FileLoad(args[0]);
			}
			Console.WriteLine("Close the main window to quit");
			Console.WriteLine();
			
			Application.Run(mainForm);
		}