예제 #1
0
		private void ClientAddWindow_GroupImageOpen(object sender, RoutedEventArgs e)
		{
			OpenFileDialog dlg = new OpenFileDialog()
			{
				Title = "Browse For Image",
				FileName = GroupPath.Text,
				Filter = "BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpeg)|*.jpeg|JPG Files (*.jpg)|*.jpg|GIF Files (*.gif)|*.gif|ICO Files (*.ico)|*.ico|PNG Files (*.png)|*.png|All files (*.*)|*.*",
				FilterIndex = 7
			};

			if (dlg.ShowDialog() == true)
			{
				GroupPath.Text = dlg.FileName;
				GroupPath.Focus();
				SetGroupImage();
			}
		}
예제 #2
0
		private void ClientAddWindow_GroupImageClear(object sender, RoutedEventArgs e)
		{
			GroupPath.Text = "";
			SetGroupImage();
			GroupPath.Focus();
		}