Ejemplo n.º 1
0
        void tsbColours_Click(object sender, EventArgs e)
        {
            var dlg = new FormColours();

            dlg.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);

            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                dlg.Dispose();
                return;
            }

            Colours.I.Pairs = new Dictionary <Tuple <PacketInfo.Daemon, PacketInfo.Daemon>, Tuple <Color, Color> >(dlg.Pairs);
            Colours.I.Save();
            flvPackets.Refresh();

            dlg.Dispose();
        }
Ejemplo n.º 2
0
		void tsbColours_Click(object sender, EventArgs e) {
			var dlg = new FormColours();
			dlg.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);

			if (dlg.ShowDialog() == DialogResult.Cancel) {
				dlg.Dispose();
				return;
			}

			Colours.I.Pairs = new Dictionary<Tuple<PacketInfo.Daemon, PacketInfo.Daemon>, Tuple<Color, Color>>(dlg.Pairs);
			Colours.I.Save();
			flvPackets.Refresh();

			dlg.Dispose();
		}